Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.223.122.53
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
node_modules /
npm /
node_modules /
encoding /
Delete
Unzip
Name
Size
Permission
Date
Action
lib
[ DIR ]
drwxr-xr-x
2022-01-26 16:43
.npmignore
12
B
-rw-r--r--
2022-01-10 12:20
.travis.yml
505
B
-rw-r--r--
2022-01-10 12:20
LICENSE
935
B
-rw-r--r--
2021-10-14 05:50
README.md
1.36
KB
-rw-r--r--
2022-01-10 12:20
package.json
1.39
KB
-rw-r--r--
2022-01-10 12:20
Save
Rename
# Encoding **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, iconv-lite will be used instead of it as a fallback. [](http://travis-ci.org/andris9/Nodemailer) [](http://badge.fury.io/js/encoding) ## Install Install through npm npm install encoding ## Usage Require the module var encoding = require("encoding"); Convert with encoding.convert() var resultBuffer = encoding.convert(text, toCharset, fromCharset); Where * **text** is either a Buffer or a String to be converted * **toCharset** is the characterset to convert the string * **fromCharset** (*optional*, defaults to UTF-8) is the source charset Output of the conversion is always a Buffer object. Example var result = encoding.convert("ÕÄÖÜ", "Latin_1"); console.log(result); //<Buffer d5 c4 d6 dc> ## iconv support By default only iconv-lite is bundled. If you need node-iconv support, you need to add it as an additional dependency for your project: ..., "dependencies":{ "encoding": "*", "iconv": "*" }, ... ## License **MIT**