{ "_args": [ [ { "raw": "chardet@^0.4.0", "scope": null, "escapedName": "chardet", "name": "chardet", "rawSpec": "^0.4.0", "spec": ">=0.4.0 <0.5.0", "type": "range" }, "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/external-editor" ] ], "_from": "chardet@>=0.4.0 <0.5.0", "_id": "chardet@0.4.2", "_inCache": true, "_location": "/chardet", "_nodeVersion": "7.6.0", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/chardet-0.4.2.tgz_1511730123536_0.8843515114858747" }, "_npmUser": { "name": "runk", "email": "deadrunk@gmail.com" }, "_npmVersion": "4.1.2", "_phantomChildren": {}, "_requested": { "raw": "chardet@^0.4.0", "scope": null, "escapedName": "chardet", "name": "chardet", "rawSpec": "^0.4.0", "spec": ">=0.4.0 <0.5.0", "type": "range" }, "_requiredBy": [ "/external-editor" ], "_resolved": "https://registry.npmjs.org/chardet/-/chardet-0.4.2.tgz", "_shasum": "b5473b33dc97c424e5d98dc87d55d4d8a29c8bf2", "_shrinkwrap": null, "_spec": "chardet@^0.4.0", "_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/external-editor", "author": { "name": "Dmitry Shirokov", "email": "deadrunk@gmail.com" }, "bugs": { "url": "http://github.com/runk/node-chardet/issues" }, "contributors": [ { "name": "@spikying" } ], "dependencies": {}, "description": "Character detector", "devDependencies": { "github-publish-release": "^4.0.0", "mocha": "^4.0.1" }, "directories": { "test": "test" }, "dist": { "shasum": "b5473b33dc97c424e5d98dc87d55d4d8a29c8bf2", "tarball": "https://registry.npmjs.org/chardet/-/chardet-0.4.2.tgz" }, "engine": { "node": ">=4" }, "gitHead": "06ef1021ea35e1615e1641655cc405b2ba74e0c2", "homepage": "https://github.com/runk/node-chardet", "keywords": [ "encoding", "character", "utf8", "detector", "chardet", "icu" ], "license": "MIT", "main": "index.js", "maintainers": [ { "name": "runk", "email": "deadrunk@gmail.com" } ], "name": "chardet", "optionalDependencies": {}, "readme": "\nchardet [![Build Status](https://travis-ci.org/runk/node-chardet.png)](https://travis-ci.org/runk/node-chardet)\n=====\n\nChardet is a character detection module for NodeJS written in pure Javascript.\nModule is based on ICU project http://site.icu-project.org/, which uses character\noccurency analysis to determine the most probable encoding.\n\n## Installation\n\n```\nnpm i chardet\n```\n\n## Usage\n\n```javascript\nvar chardet = require('chardet');\nchardet.detect(new Buffer('hello there!'));\n// or\nchardet.detectFile('/path/to/file', function(err, encoding) {});\n// or\nchardet.detectFileSync('/path/to/file');\n```\n\n## Working with large data sets\n\nSometimes, when data set is huge and you want to optimize performace (in tradeoff of less accuracy), \nyou can sample only first N bytes of the buffer:\n\n```javascript\nchardet.detectFile('/path/to/file', { sampleSize: 32 }, function(err, encoding) {});\n```\n\n## Supported Encodings:\n\n* UTF-8\n* UTF-16 LE\n* UTF-16 BE\n* UTF-32 LE\n* UTF-32 BE\n* ISO-2022-JP\n* ISO-2022-KR\n* ISO-2022-CN\n* Shift-JIS\n* Big5\n* EUC-JP\n* EUC-KR\n* GB18030\n* ISO-8859-1\n* ISO-8859-2\n* ISO-8859-5\n* ISO-8859-6\n* ISO-8859-7\n* ISO-8859-8\n* ISO-8859-9\n* windows-1250\n* windows-1251\n* windows-1252\n* windows-1253\n* windows-1254\n* windows-1255\n* windows-1256\n* KOI8-R\n\nCurrently only these encodings are supported, more will be added soon.\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+ssh://git@github.com/runk/node-chardet.git" }, "scripts": { "release": "scripts/release", "test": "mocha -R spec --recursive" }, "version": "0.4.2" }