{
  "name": "encoding",
  "version": "0.1.7",
  "description": "Convert encodings, uses iconv by default and fallbacks to iconv-lite if needed",
  "main": "index.js",
  "scripts": {
    "test": "nodeunit test.js"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/andris9/encoding.git"
  },
  "author": {
    "name": "Andris Reinman"
  },
  "license": "MIT",
  "dependencies": {
    "iconv-lite": "~0.2.11"
  },
  "devDependencies": {
    "nodeunit": "~0.8.1"
  },
  "readme": "# Encoding\n\n**encoding** is a simple wrapper around [node-iconv](https://github.com/bnoordhuis/node-iconv) and [iconv-lite](https://github.com/ashtuchkin/iconv-lite/) to convert strings from one encoding to another. If node-iconv is not available for some reason,\niconv-lite will be used instead of it as a fallback.\n\n## Install\n\nInstall through npm\n\n    npm install encoding\n\n## Usage\n\nRequire the module\n\n    var encoding = require(\"encoding\");\n\nConvert with encoding.convert()\n\n    var resultBuffer = encoding.convert(text, toCharset, fromCharset);\n\nWhere\n\n  * **text** is either a Buffer or a String to be converted\n  * **toCharset** is the characterset to convert the string\n  * **fromCharset** (*optional*, defaults to UTF-8) is the source charset\n\nOutput of the conversion is always a Buffer object.\n\nExample\n\n    var result = encoding.convert(\"ÕÄÖÜ\", \"Latin_1\");\n    console.log(result); //<Buffer d5 c4 d6 dc>\n\n## iconv support\n\nBy default only iconv-lite is bundled. If you need node-iconv support, you need to add it\nas an additional dependency for your project:\n\n    ...,\n    \"dependencies\":{\n        \"encoding\": \"*\",\n        \"iconv\": \"*\"\n    },\n    ...\n\n## License\n\n**MIT**",
  "readmeFilename": "README.md",
  "bugs": {
    "url": "https://github.com/andris9/encoding/issues"
  },
  "_id": "encoding@0.1.7",
  "dist": {
    "shasum": "e003db7d4acb5b3613abc1b9db8223cf018e81b8"
  },
  "_from": "encoding@~0.1",
  "_resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.7.tgz"
}
