1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00
denoland-deno/tests/registry/npm/encoding/registry.json
Nathan Whitaker ce7dc2be92
feat(node): Support executing npm package lifecycle scripts (preinstall/install/postinstall) (#24487)
Adds support for running npm package lifecycle scripts, opted into via a
new `--allow-scripts` flag.

With this PR, when running `deno cache` (or `DENO_FUTURE=1 deno
install`) you can specify the `--allow-scripts=pkg1,pkg2` flag to run
lifecycle scripts attached to the given packages.

Note at the moment this only works when `nodeModulesDir` is true (using
the local resolver).

When a package with un-run lifecycle scripts is encountered, we emit a
warning suggesting things may not work and to try running lifecycle
scripts. Additionally, if a package script implicitly requires
`node-gyp` and it's not found on the system, we emit a warning.

Extra things in this PR:
- Extracted out bits of `task.rs` into a separate module for reuse
- Added a couple fields to `process.config` in order to support
`node-gyp` (it relies on a few variables being there)
- Drive by fix to downloading new npm packages to test registry

---

TODO:
- [x] validation for allow-scripts args (make sure it looks like an npm
package)
- [x] make allow-scripts matching smarter
- [ ] figure out what issues this closes

---
Review notes:
- This adds a bunch of deps to our test registry due to using
`node-gyp`, so it's pretty noisy
2024-07-10 03:06:08 +00:00

1 line
No EOL
17 KiB
JSON

{"_id":"encoding","_rev":"43-1130dd47564f69b45656993ac91b1b11","name":"encoding","description":"Convert encodings, uses iconv-lite","dist-tags":{"latest":"0.1.13"},"versions":{"0.1.1":{"name":"encoding","version":"0.1.1","description":"Remove accents from international characters","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/andris9/encoding.git"},"author":{"name":"Andris Reinman"},"license":"MIT","dependencies":{"iconv-lite":"*","iconv":"*"},"optionalDependencies":{"iconv":"*"},"_id":"encoding@0.1.1","dist":{"shasum":"f5dfa57009a0f81ce63c966b9cdb4f12a3f14e05","tarball":"http://localhost:4260/encoding/encoding-0.1.1.tgz","integrity":"sha512-qDBp7J0yvti519twBf5YT6XMufxg+5HiHq8mVkY3NB5K8fkzF6IeEDOJMe16NO4DZuQM8FGJJQtOBMKO1Xcpig==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCt/weboQ7t7kDblRGrsapGj4RPha6EDByf0agDJRcmjAIgHyXRB0IJdgwnORhG0+8/RJZmZEElbbpEvJm9nKBW2zM="}]},"maintainers":[{"name":"andris","email":"andris@node.ee"}],"directories":{}},"0.1.2":{"name":"encoding","version":"0.1.2","description":"Remove accents from international characters","main":"index.js","scripts":{"test":"nodeunit test.js"},"repository":{"type":"git","url":"git://github.com/andris9/encoding.git"},"author":{"name":"Andris Reinman"},"license":"MIT","dependencies":{"iconv-lite":"*","iconv":"*"},"optionalDependencies":{"iconv":"*"},"devDependencies":{"nodeunit":"*"},"_id":"encoding@0.1.2","dist":{"shasum":"6827a60632997ed27001d805dcdd2b925de9a913","tarball":"http://localhost:4260/encoding/encoding-0.1.2.tgz","integrity":"sha512-0IwQRh3ur9eTp0H4EA932OO9+aqQxVHCGUcD/tD5G/sv7Z31ioc1MDFYZmjvVVlKY3OJk3D7XzLAg+sTNYMxNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCK+31QJmrcMqedw5fMbSjq2WyZUD0yZU0OzY9tnb/eCgIhAIgZizJVYxqikfo9BcXPqdgWPSN0KBQuzQf4TfofRHb7"}]},"maintainers":[{"name":"andris","email":"andris@node.ee"}],"directories":{}},"0.1.3":{"name":"encoding","version":"0.1.3","description":"Remove accents from international characters","main":"index.js","scripts":{"test":"nodeunit test.js"},"repository":{"type":"git","url":"git://github.com/andris9/encoding.git"},"author":{"name":"Andris Reinman"},"license":"MIT","dependencies":{"iconv-lite":"*","iconv":"*"},"optionalDependencies":{"iconv":"*"},"devDependencies":{"nodeunit":"*"},"_id":"encoding@0.1.3","dist":{"shasum":"0fdde7af970a729afe948227f174f3f79f524cd7","tarball":"http://localhost:4260/encoding/encoding-0.1.3.tgz","integrity":"sha512-x9ziVneSUf0cUdNL/L1z5VJPmQDVS80cKy7yydxa/M0pyc2vUhr6IjhUgFkMVXQ0MUZdqs2bifnRHdIVPi44Ww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFMnb4qxsHDP9wwMv1HMy2KBUHvcabT6cBLqpQ18xLJnAiEAptRFSRZOMbUrgqadOX8QYi/uvCSZR7PRQw1o0QjLjuk="}]},"maintainers":[{"name":"andris","email":"andris@node.ee"}],"directories":{}},"0.1.4":{"name":"encoding","version":"0.1.4","description":"Remove accents from international characters","main":"index.js","scripts":{"test":"nodeunit test.js"},"repository":{"type":"git","url":"git://github.com/andris9/encoding.git"},"author":{"name":"Andris Reinman"},"license":"MIT","dependencies":{"iconv-lite":"*","iconv":"*"},"optionalDependencies":{"iconv":"*"},"devDependencies":{"nodeunit":"*"},"_id":"encoding@0.1.4","dist":{"shasum":"dcd860c75975259d4159c840153d6ccdf82b899e","tarball":"http://localhost:4260/encoding/encoding-0.1.4.tgz","integrity":"sha512-xmD95psWYCwGM+jL+Nmh02+ImFyuuq1cbPEk4mIY/R0w3UlKdrlTit+eDRanEclfdHIcC6RqVGkRfTpe++I8Dg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCaQGA/oUmIvbNyDRmtRdebbBUiTwGZD0xGuMNlIPXEJwIhAPJNI2QOeJcQWFKv2EbKQ35QfyzKi9GqS9Bz+97VQGNI"}]},"maintainers":[{"name":"andris","email":"andris@node.ee"}],"directories":{}},"0.1.5":{"name":"encoding","version":"0.1.5","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":"git://github.com/andris9/encoding.git"},"author":{"name":"Andris Reinman"},"license":"MIT","dependencies":{"iconv-lite":"*"},"devDependencies":{"nodeunit":"*"},"_id":"encoding@0.1.5","dist":{"shasum":"3900ac48e4eb6b2885efe050fe74883287b7f33e","tarball":"http://localhost:4260/encoding/encoding-0.1.5.tgz","integrity":"sha512-zOHkgDbrmPgJbNilpwlh21dy+5qQs+qMp21KAJgnqD4yngHbvPQ9RTecdZH3v+OV3fR4bcofhEyMEf/+hxa5WQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQyW3vXWeyvzDrKIkSQB/o7pDjGKjUau1Nbwp+UbC7GAIhALK4d0fKhzitIZFx9t+Uzvpfg731ujJFm4gS6BP74Wd7"}]},"_npmVersion":"1.1.61","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@node.ee"}],"directories":{}},"0.1.6":{"name":"encoding","version":"0.1.6","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":"git://github.com/andris9/encoding.git"},"author":{"name":"Andris Reinman"},"license":"MIT","dependencies":{"iconv-lite":"0.2.7"},"devDependencies":{"nodeunit":"*"},"_id":"encoding@0.1.6","dist":{"shasum":"fec66b6d1c6b8cc554aa78c05ece35bef11a913f","tarball":"http://localhost:4260/encoding/encoding-0.1.6.tgz","integrity":"sha512-t4QcGhz74Tlj1iiko3iVHH26WFj/UhZA+f+h3+5n4gvmNiq3N7fVslKKchHWlS0T6CEdqL858n+KPVJzQJTxNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCA4qXgg9pkLgNvA1a3O3joB3+zFajNPfZ2zzqPL/FROQIgAMhF/OM+sRD0RTEpqnDkiUtFi7/14bFC8NgkNiy6ioQ="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@node.ee"}],"directories":{}},"0.1.7":{"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"},"_id":"encoding@0.1.7","dist":{"shasum":"25cc19b34e9225d120c2ea769f9136c91cecc908","tarball":"http://localhost:4260/encoding/encoding-0.1.7.tgz","integrity":"sha512-TiG6vj7ii7T/IcqPDdzKwbNMdvfZM4gzLvgvJuJQrRLOFnfYHzYjB2ixkjKJN6Wdoda1QGo6E06a6fbisv/wYg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCiHBDg/sqbMGGnCqYf6BCbSVgX4YiKb9c6nDAW3byzbAIhAJLcBM7rQdQoEnxjlhWDzkMsZ5u3uYIJ2Yef3d1x+ZND"}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@node.ee"}],"directories":{}},"0.1.8":{"name":"encoding","version":"0.1.8","description":"Convert encodings, uses iconv by default and fallbacks to iconv-lite if needed","main":"lib/encoding.js","scripts":{"test":"nodeunit test"},"repository":{"type":"git","url":"https://github.com/andris9/encoding.git"},"author":{"name":"Andris Reinman"},"license":"MIT","dependencies":{"iconv-lite":"~0.4.3"},"devDependencies":{"nodeunit":"~0.8.1"},"bugs":{"url":"https://github.com/andris9/encoding/issues"},"homepage":"https://github.com/andris9/encoding","_id":"encoding@0.1.8","dist":{"shasum":"3c48d355f6f4da0545de88c6f2673ccf70df11e7","tarball":"http://localhost:4260/encoding/encoding-0.1.8.tgz","integrity":"sha512-5XtPTUaD3sbLr8Czd5/Ji0Vv6xTQTuxvcLSUqd0NQ4xUyGsDvx9PZUb7f0K5A6Kg8Q2JyAF98qqq3javv9b6qg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGpbHxTxjO0V/4RWCV75bqel2Ip69xAsF1s8uVHd2MK8AiEAkIuPdPt0KwAwAGrhhqJPXLJfzoDkiOCDYM6ESvb9d0I="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@node.ee"}],"directories":{}},"0.1.9":{"name":"encoding","version":"0.1.9","description":"Convert encodings, uses iconv by default and fallbacks to iconv-lite if needed","main":"lib/encoding.js","scripts":{"test":"nodeunit test"},"repository":{"type":"git","url":"https://github.com/andris9/encoding.git"},"author":{"name":"Andris Reinman"},"license":"MIT","dependencies":{"iconv-lite":"^0.4.4"},"devDependencies":{"nodeunit":"~0.8.1"},"gitHead":"f75db3780405bb979508cd57c318cf605a0580c8","bugs":{"url":"https://github.com/andris9/encoding/issues"},"homepage":"https://github.com/andris9/encoding","_id":"encoding@0.1.9","_shasum":"0e082880ac477b79714dce4a78c699efcdd99c18","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@node.ee"}],"dist":{"shasum":"0e082880ac477b79714dce4a78c699efcdd99c18","tarball":"http://localhost:4260/encoding/encoding-0.1.9.tgz","integrity":"sha512-9Skjslf0GXbMD2wJVpSXOezAiyIusW0UZIeyx39lMd+PlNrw5yc36GrfHG6L3QsiER5DsXRmUwXteprtuST8Mg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcKdabMNRkta2+S5Z+fwNHph0WdU4PUq4PHj0peRxtawIhAKJMHiwYcmxGwDWZUvCxj4KRQYAC1XIasb2CGmM1WFHi"}]},"directories":{}},"0.1.10":{"name":"encoding","version":"0.1.10","description":"Convert encodings, uses iconv by default and fallbacks to iconv-lite if needed","main":"lib/encoding.js","scripts":{"test":"nodeunit test"},"repository":{"type":"git","url":"https://github.com/andris9/encoding.git"},"author":{"name":"Andris Reinman"},"license":"MIT","dependencies":{"iconv-lite":"~0.4.4"},"devDependencies":{"nodeunit":"~0.8.1"},"gitHead":"2a8f2139370e469435b0b71dc29583ba061376a5","bugs":{"url":"https://github.com/andris9/encoding/issues"},"homepage":"https://github.com/andris9/encoding","_id":"encoding@0.1.10","_shasum":"4463122033a7e3fdae4e81bf306f675dd8e4612c","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@node.ee"}],"dist":{"shasum":"4463122033a7e3fdae4e81bf306f675dd8e4612c","tarball":"http://localhost:4260/encoding/encoding-0.1.10.tgz","integrity":"sha512-Mk5OWxUft6BQhaDreioXQEeVRkb6TbDpYmJuIRAY3EkSznK3i3u/k+k/UQD8PihDf7548AHV1xB180eZQ9i+Vw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxz88aTA8nhdTU8u0ptgtBDBv02F9YYy+0OxDIxPl3QAIgIXvmHIZhzhKrwB27T3QXaroAnFFVB4/IUclRVaqxxsc="}]},"directories":{}},"0.1.11":{"name":"encoding","version":"0.1.11","description":"Convert encodings, uses iconv by default and fallbacks to iconv-lite if needed","main":"lib/encoding.js","scripts":{"test":"nodeunit test"},"repository":{"type":"git","url":"https://github.com/andris9/encoding.git"},"author":{"name":"Andris Reinman"},"license":"MIT","dependencies":{"iconv-lite":"~0.4.4"},"devDependencies":{"nodeunit":"~0.8.1"},"gitHead":"b1f9ea063c33c70daa4b66662ef8374117306645","bugs":{"url":"https://github.com/andris9/encoding/issues"},"homepage":"https://github.com/andris9/encoding","_id":"encoding@0.1.11","_shasum":"52c65ac15aab467f1338451e2615f988eccc0258","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@node.ee"}],"dist":{"shasum":"52c65ac15aab467f1338451e2615f988eccc0258","tarball":"http://localhost:4260/encoding/encoding-0.1.11.tgz","integrity":"sha512-LIe27CSSmc7XIJ24RkxFKR0ILYbp6dZ/Um/fd9Gho0gGJVxGsSU44FsueFVl+pJV6Vzlmg0CKOLbhaskGjGr8w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAhY7dI54fKD9hwS6vloPSyBLd6KqyDHz1B3QWnKycIEAiEArRS4KHIaX79pyTW+xp1srwc5KNn/rkAP3wyUdHAmlqQ="}]},"directories":{}},"0.1.12":{"name":"encoding","version":"0.1.12","description":"Convert encodings, uses iconv by default and fallbacks to iconv-lite if needed","main":"lib/encoding.js","scripts":{"test":"nodeunit test"},"repository":{"type":"git","url":"git+https://github.com/andris9/encoding.git"},"author":{"name":"Andris Reinman"},"license":"MIT","dependencies":{"iconv-lite":"~0.4.13"},"devDependencies":{"iconv":"~2.1.11","nodeunit":"~0.9.1"},"gitHead":"91ae950aaa854a119122c27cdbabd8c5585106f7","bugs":{"url":"https://github.com/andris9/encoding/issues"},"homepage":"https://github.com/andris9/encoding#readme","_id":"encoding@0.1.12","_shasum":"538b66f3ee62cd1ab51ec323829d1f9480c74beb","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"andris","email":"andris@kreata.ee"},"dist":{"shasum":"538b66f3ee62cd1ab51ec323829d1f9480c74beb","tarball":"http://localhost:4260/encoding/encoding-0.1.12.tgz","integrity":"sha512-bl1LAgiQc4ZWr++pNYUdRe/alecaHFeHxIJ/pNciqGdKXghaTCOwKkbKp6ye7pKZGu/GcaSXFk8PBVhgs+dJdA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPrWOq+JiSr2WDrl73wWuAC1d/EDlxtSTcVH3TIY9LIwIhALW9+ZxA8dkzWHsE1muKGsZN9Uo6XZU+PdYuRy6l2i8M"}]},"maintainers":[{"name":"andris","email":"andris@node.ee"}],"directories":{}},"0.1.13":{"name":"encoding","version":"0.1.13","description":"Convert encodings, uses iconv-lite","main":"lib/encoding.js","scripts":{"test":"nodeunit test"},"repository":{"type":"git","url":"git+https://github.com/andris9/encoding.git"},"author":{"name":"Andris Reinman"},"license":"MIT","dependencies":{"iconv-lite":"^0.6.2"},"devDependencies":{"nodeunit":"0.11.3"},"gitHead":"a7554ca9083bab4847705d562d02f0924271cbaa","bugs":{"url":"https://github.com/andris9/encoding/issues"},"homepage":"https://github.com/andris9/encoding#readme","_id":"encoding@0.1.13","_nodeVersion":"14.5.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==","shasum":"56574afdd791f54a8e9b2785c0582a2d26210fa9","tarball":"http://localhost:4260/encoding/encoding-0.1.13.tgz","fileCount":7,"unpackedSize":7123,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfCBJzCRA9TVsSAnZWagAANNcP/i1TY309HKXYl74I0RJz\noqFuwSxgoWXNnJ3ugBuNbz7U9DjcEhbbaYEHuc26lwkYV0HMiDZGgVDKaZzy\nWPxU6cO+Cm1/Dy9UrevCe78O34+Koaymhi69i9MWHlcAIfbCcp/qcm2EOdeI\nJ2usvmzGXxnwWQQVb+Sw7H9/eQFuYUlSXAbE/1kSDZyDq5McCdMBySEIE0fa\niS+dQBVdLJl2sFwL7DgoT+QWt2v53svwJbR1ZQbfySaLJVVMvoFrs21pt3Td\nlwJ8j1lz2ADxI/9WX0faYxKCJNtVDXDpnBA4hnYzDPFbmX8skKXLabus2mUZ\nO9Mh7zTRzvIOm0c8meKLq/RVIYODOX/eEvegvJcdNTpCd3K/GWOqF/28+vCH\nD45K6J/vTcwku1cZdX+MO1GBX5A8iV1JISKzjXyycjV50PfB8dZ2YanKQGjA\nmkmYzBPssaA+/dVtrdlpl2L03sUae9YUPI8x2dwHstZ+BlMZ/or9/EIH5rOj\nCxqc0KeUDsMD/mtzjCeWdxA4POamYNMJsU0ewluzKYZrSH9L1yccCULVUuJn\nh1XL2H8EOABR7A0PnZhGfIsL2K+TpT47ieOHragZ2c7LnO9kVfKetdAhoR4L\nQVNHr6zLnA5scWfk68sBNXgWKJvdPnCz4vZLQhDzhfx5PAL/OSHm7WHGOhH0\nsLJK\r\n=Xp+Q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjEJ8zoQO4Tth6hxEHL+G4uUHRf5vm6GQ6WPo4LxbWXwIgJqM+w7XPr2CJSxOqTYe4/A6Xo4a64Oius0PaOi/0M08="}]},"maintainers":[{"name":"andris","email":"andris@node.ee"}],"_npmUser":{"name":"andris","email":"andris@kreata.ee"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/encoding_0.1.13_1594364531517_0.31350544316084505"},"_hasShrinkwrap":false}},"readme":"# Encoding\n\n**encoding** is a simple wrapper around [iconv-lite](https://github.com/ashtuchkin/iconv-lite/) to convert strings from one encoding to another.\n\n[![Build Status](https://secure.travis-ci.org/andris9/encoding.svg)](http://travis-ci.org/andris9/Nodemailer)\n[![npm version](https://badge.fury.io/js/encoding.svg)](http://badge.fury.io/js/encoding)\n\nInitially _encoding_ was a wrapper around _node-iconv_ (main) and _iconv-lite_ (fallback) and was used as the encoding layer for Nodemailer/mailparser. Somehow it also ended up as a dependency for a bunch of other project, none of these actually using _node-iconv_. The loading mechanics caused issues for front-end projects and Nodemailer/malparser had moved on, so _node-iconv_ was removed.\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## License\n\n**MIT**\n","maintainers":[{"name":"andris","email":"andris@node.ee"}],"time":{"modified":"2023-05-28T20:10:24.672Z","created":"2012-08-16T08:36:04.275Z","0.1.1":"2012-08-16T08:36:05.770Z","0.1.2":"2012-08-16T08:48:07.540Z","0.1.3":"2012-09-04T09:56:33.049Z","0.1.4":"2012-09-14T13:13:45.852Z","0.1.5":"2012-11-07T09:24:38.001Z","0.1.6":"2013-03-23T06:20:47.925Z","0.1.7":"2013-09-03T10:45:22.834Z","0.1.8":"2014-06-17T12:13:45.482Z","0.1.9":"2014-10-13T06:44:03.588Z","0.1.10":"2014-10-16T12:37:21.638Z","0.1.11":"2014-11-08T19:41:18.146Z","0.1.12":"2015-12-23T09:06:30.764Z","0.1.13":"2020-07-10T07:02:11.638Z"},"author":{"name":"Andris Reinman"},"repository":{"type":"git","url":"git+https://github.com/andris9/encoding.git"},"homepage":"https://github.com/andris9/encoding#readme","bugs":{"url":"https://github.com/andris9/encoding/issues"},"license":"MIT","readmeFilename":"README.md","users":{"326060588":true,"boustanihani":true,"robermac":true,"itonyyo":true,"malenki":true,"markthethomas":true,"wangnan0610":true,"alimaster":true,"vanioinformatika":true,"m80126colin":true,"usex":true,"koreyhan":true,"flumpus-dev":true}}