165 lines
11 KiB
JSON
165 lines
11 KiB
JSON
|
{
|
||
|
"_args": [
|
||
|
[
|
||
|
{
|
||
|
"raw": "iconv-lite@^0.4.17",
|
||
|
"scope": null,
|
||
|
"escapedName": "iconv-lite",
|
||
|
"name": "iconv-lite",
|
||
|
"rawSpec": "^0.4.17",
|
||
|
"spec": ">=0.4.17 <0.5.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/external-editor"
|
||
|
]
|
||
|
],
|
||
|
"_from": "iconv-lite@>=0.4.17 <0.5.0",
|
||
|
"_id": "iconv-lite@0.4.19",
|
||
|
"_inCache": true,
|
||
|
"_location": "/iconv-lite",
|
||
|
"_nodeVersion": "8.1.0",
|
||
|
"_npmOperationalInternal": {
|
||
|
"host": "s3://npm-registry-packages",
|
||
|
"tmp": "tmp/iconv-lite-0.4.19.tgz_1505015801484_0.10463660513050854"
|
||
|
},
|
||
|
"_npmUser": {
|
||
|
"name": "ashtuchkin",
|
||
|
"email": "ashtuchkin@gmail.com"
|
||
|
},
|
||
|
"_npmVersion": "5.0.3",
|
||
|
"_phantomChildren": {},
|
||
|
"_requested": {
|
||
|
"raw": "iconv-lite@^0.4.17",
|
||
|
"scope": null,
|
||
|
"escapedName": "iconv-lite",
|
||
|
"name": "iconv-lite",
|
||
|
"rawSpec": "^0.4.17",
|
||
|
"spec": ">=0.4.17 <0.5.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"_requiredBy": [
|
||
|
"/body-parser",
|
||
|
"/encoding",
|
||
|
"/external-editor",
|
||
|
"/raw-body"
|
||
|
],
|
||
|
"_resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz",
|
||
|
"_shasum": "f7468f60135f5e5dad3399c0a81be9a1603a082b",
|
||
|
"_shrinkwrap": null,
|
||
|
"_spec": "iconv-lite@^0.4.17",
|
||
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/external-editor",
|
||
|
"author": {
|
||
|
"name": "Alexander Shtuchkin",
|
||
|
"email": "ashtuchkin@gmail.com"
|
||
|
},
|
||
|
"browser": {
|
||
|
"./extend-node": false,
|
||
|
"./streams": false
|
||
|
},
|
||
|
"bugs": {
|
||
|
"url": "https://github.com/ashtuchkin/iconv-lite/issues"
|
||
|
},
|
||
|
"contributors": [
|
||
|
{
|
||
|
"name": "Jinwu Zhan",
|
||
|
"url": "https://github.com/jenkinv"
|
||
|
},
|
||
|
{
|
||
|
"name": "Adamansky Anton",
|
||
|
"url": "https://github.com/adamansky"
|
||
|
},
|
||
|
{
|
||
|
"name": "George Stagas",
|
||
|
"url": "https://github.com/stagas"
|
||
|
},
|
||
|
{
|
||
|
"name": "Mike D Pilsbury",
|
||
|
"url": "https://github.com/pekim"
|
||
|
},
|
||
|
{
|
||
|
"name": "Niggler",
|
||
|
"url": "https://github.com/Niggler"
|
||
|
},
|
||
|
{
|
||
|
"name": "wychi",
|
||
|
"url": "https://github.com/wychi"
|
||
|
},
|
||
|
{
|
||
|
"name": "David Kuo",
|
||
|
"url": "https://github.com/david50407"
|
||
|
},
|
||
|
{
|
||
|
"name": "ChangZhuo Chen",
|
||
|
"url": "https://github.com/czchen"
|
||
|
},
|
||
|
{
|
||
|
"name": "Lee Treveil",
|
||
|
"url": "https://github.com/leetreveil"
|
||
|
},
|
||
|
{
|
||
|
"name": "Brian White",
|
||
|
"url": "https://github.com/mscdex"
|
||
|
},
|
||
|
{
|
||
|
"name": "Mithgol",
|
||
|
"url": "https://github.com/Mithgol"
|
||
|
},
|
||
|
{
|
||
|
"name": "Nazar Leush",
|
||
|
"url": "https://github.com/nleush"
|
||
|
}
|
||
|
],
|
||
|
"dependencies": {},
|
||
|
"description": "Convert character encodings in pure javascript.",
|
||
|
"devDependencies": {
|
||
|
"async": "*",
|
||
|
"errto": "*",
|
||
|
"iconv": "*",
|
||
|
"istanbul": "*",
|
||
|
"mocha": "*",
|
||
|
"request": "*",
|
||
|
"semver": "*",
|
||
|
"unorm": "*"
|
||
|
},
|
||
|
"directories": {},
|
||
|
"dist": {
|
||
|
"integrity": "sha512-oTZqweIP51xaGPI4uPa56/Pri/480R+mo7SeU+YETByQNhDG55ycFyNLIgta9vXhILrxXDmF7ZGhqZIcuN0gJQ==",
|
||
|
"shasum": "f7468f60135f5e5dad3399c0a81be9a1603a082b",
|
||
|
"tarball": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz"
|
||
|
},
|
||
|
"engines": {
|
||
|
"node": ">=0.10.0"
|
||
|
},
|
||
|
"gitHead": "5255c1b3c81a0f276619cce3151a1923cba90431",
|
||
|
"homepage": "https://github.com/ashtuchkin/iconv-lite",
|
||
|
"keywords": [
|
||
|
"iconv",
|
||
|
"convert",
|
||
|
"charset",
|
||
|
"icu"
|
||
|
],
|
||
|
"license": "MIT",
|
||
|
"main": "./lib/index.js",
|
||
|
"maintainers": [
|
||
|
{
|
||
|
"name": "ashtuchkin",
|
||
|
"email": "ashtuchkin@gmail.com"
|
||
|
}
|
||
|
],
|
||
|
"name": "iconv-lite",
|
||
|
"optionalDependencies": {},
|
||
|
"readme": "## Pure JS character encoding conversion [![Build Status](https://travis-ci.org/ashtuchkin/iconv-lite.svg?branch=master)](https://travis-ci.org/ashtuchkin/iconv-lite)\n\n * Doesn't need native code compilation. Works on Windows and in sandboxed environments like [Cloud9](http://c9.io).\n * Used in popular projects like [Express.js (body_parser)](https://github.com/expressjs/body-parser), \n [Grunt](http://gruntjs.com/), [Nodemailer](http://www.nodemailer.com/), [Yeoman](http://yeoman.io/) and others.\n * Faster than [node-iconv](https://github.com/bnoordhuis/node-iconv) (see below for performance comparison).\n * Intuitive encode/decode API\n * Streaming support for Node v0.10+\n * [Deprecated] Can extend Node.js primitives (buffers, streams) to support all iconv-lite encodings.\n * In-browser usage via [Browserify](https://github.com/substack/node-browserify) (~180k gzip compressed with Buffer shim included).\n * Typescript [type definition file](https://github.com/ashtuchkin/iconv-lite/blob/master/lib/index.d.ts) included.\n * React Native is supported (need to explicitly `npm install` two more modules: `buffer` and `stream`).\n * License: MIT.\n\n[![NPM Stats](https://nodei.co/npm/iconv-lite.png?downloads=true&downloadRank=true)](https://npmjs.org/packages/iconv-lite/)\n\n## Usage\n### Basic API\n```javascript\nvar iconv = require('iconv-lite');\n\n// Convert from an encoded buffer to js string.\nstr = iconv.decode(new Buffer([0x68, 0x65, 0x6c, 0x6c, 0x6f]), 'win1251');\n\n// Convert from js string to an encoded buffer.\nbuf = iconv.encode(\"Sample input string\", 'win1251');\n\n// Check if encoding is supported\niconv.encodingExists(\"us-ascii\")\n```\n\n### Streaming API (Node v0.10+)\n```javascript\n\n// Decode stream (from binary stream to js strings)\nhttp.createServer(function(req, res) {\n var converterStream = iconv.decodeStream('win1251');\n req.pipe(converterStream);\n\n converterStream.on('data', function(str) {\n console.log(str); // Do something with decoded strings, chunk-by-chunk.\n });\n});\n\n// Convert encoding streaming example\nfs.createReadStream('file-in-win1251.txt')\n .pipe(iconv.decodeStream('win1251'))\n .pipe(iconv.encodeStream('ucs2'))\n .pipe(fs.createWriteStream('file-in-ucs2.txt'));\n\n// Sugar: all encode/decode streams have .collect(cb) method to accumulate data.\nhttp.createServer(function(req, res) {\n req.pipe(iconv.decodeStream('win1251')).collect(function(err, body) {\n assert(typeof body == 'string');\n console.log(body); // full request body string\n });\n});\n```\n\n### [Deprecated] Extend Node.js own encodings\n> NOTE: This doesn't work on latest Node versions. See [details](https://github.com/ashtuchkin/iconv-lite/wiki/Node-v4-compatibility).\n\n```javascript\n// After this call all Node basic primitives will understand iconv-lite encodings.\niconv.extendNodeEncodings();\n\n// Examples:\nbuf = new Buffer(str, 'win1251');\nbuf.write(str, 'gbk');\nstr = buf.toString('latin1');\nassert(Buffer.isEncoding('iso-8859-15'));\nBuffer.byteLength(str, 'us-ascii');\n\nhttp.createServer(function(req, res) {\n req.setEncoding('big5');\n req.collect(function(err, body) {\n console.log(body);\n });\n});\n\nfs.createReadStream(\"file.txt\", \"shift_jis\");\n\n// External modules are also supported (if they use Node primitives, which they probably do).\nrequest = require('request');\nrequest({\n url: \"http://github.com/\", \n encoding: \"cp932\"\n});\n\n// To remove extensions\niconv.undoExtendNodeEncodings();\n```\n\n## Supported encodings\n\n * All node.js native encodings: utf8, ucs2 / utf16-le, ascii, binary, base64, hex.\n * Additional unicode encodings: utf16, utf16-be, utf-7, utf-7-imap.\n * All widespread singlebyte encodings: Windows 125x family, ISO-8859 family, \n IBM/DOS codepages, Macintosh family, KOI8 family, all others supported by iconv library. \n Aliases like 'latin1', 'us-ascii' also supported.\n * All widespread multibyte encodings: CP932, CP936, CP949, CP950, GB2312, GBK, GB18
|
||
|
"readmeFilename": "README.md",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "git://github.com/ashtuchkin/iconv-lite.git"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"coverage": "istanbul cover _mocha -- --grep .",
|
||
|
"coverage-open": "open coverage/lcov-report/index.html",
|
||
|
"test": "mocha --reporter spec --grep ."
|
||
|
},
|
||
|
"typings": "./lib/index.d.ts",
|
||
|
"version": "0.4.19"
|
||
|
}
|