diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
commit | bbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch) | |
tree | c58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/iconv-lite/README.md | |
parent | 003fb34971cf63466184351b4db5f7c67df4f444 (diff) |
update packages
Diffstat (limited to 'node_modules/iconv-lite/README.md')
-rw-r--r-- | node_modules/iconv-lite/README.md | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/node_modules/iconv-lite/README.md b/node_modules/iconv-lite/README.md index 767daedef..c981c3708 100644 --- a/node_modules/iconv-lite/README.md +++ b/node_modules/iconv-lite/README.md @@ -20,7 +20,7 @@ var iconv = require('iconv-lite'); // Convert from an encoded buffer to js string. -str = iconv.decode(new Buffer([0x68, 0x65, 0x6c, 0x6c, 0x6f]), 'win1251'); +str = iconv.decode(Buffer.from([0x68, 0x65, 0x6c, 0x6c, 0x6f]), 'win1251'); // Convert from js string to an encoded buffer. buf = iconv.encode("Sample input string", 'win1251'); @@ -154,7 +154,3 @@ $ # To view test coverage: $ npm run coverage $ open coverage/lcov-report/index.html ``` - -## Adoption -[](https://nodei.co/npm/iconv-lite/) -[](https://www.codeship.com/projects/29053) |