{"_id":"node-buffer-encoding","_rev":"3-82069e26ba709cd6a6d4ebbae26bc6e4","name":"node-buffer-encoding","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"node-buffer-encoding","version":"1.0.0","keywords":["node","buffer","encoding"],"_id":"node-buffer-encoding@1.0.0","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/node-buffer-encoding#readme","bugs":{"url":"https://github.com/fabiospampinato/node-buffer-encoding/issues"},"dist":{"shasum":"7fc491c137bd0d4aef079f7368544fe02beb3471","tarball":"https://registry.npmjs.org/node-buffer-encoding/-/node-buffer-encoding-1.0.0.tgz","fileCount":12,"integrity":"sha512-pWu1cu1+rWMTKjlahG4HXEc0Ng46eMQ9gaVUUzt+JdzpQAQIsBj8FbusD5ofEMgM3PiYzd8JVdwYh0ItHc8ydg==","signatures":[{"sig":"MEQCIEdmp/svAKRRprUZqQEJ6HzHXuDdQqe7IetK2g5WOp2qAiBb4VvrYt9TfuwvCCvbZPg0TRP1A/eXqaZiVHpAI3UnSQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5960,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiUMzgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoN1w/9GBLW0HhGX964u6Uq1SbTjN/RdWuvQsQEAgQEzsBsGq+HoS4k\r\nff/E0ECxGq3wG4KHYij93tg/Fiiri9xs8Qm8LxwebDvLusaQT+EPzPnYKVvi\r\noYh0i4Nu0Xly0oZshMsJun4xkQBSO2kuMgzzCopyhYu84qLwxzaiWOgyTDJz\r\nbD0c3wG1QGmdKeqAdE55A6otmr2Sb1wZ59dma7j6oFmIF4iP+2hukSUYYJuz\r\nerIZsTLVJqz6G+C7HxAuSgEWhu6zJxnbhBcQyv/LT+C8OfwFUCPtiMlDhW+Q\r\nzg2IXQkB3rqcZuLgnZyKJZtN52JDQ7GPhxYRDEBfJGuwVfEMcCY3yzsBWVXs\r\nZtMgKZmawxX++dq+mvBiYA9sN96zLhMaJTdXh3ld4sKdseiKyEK/YdfMJR0s\r\nIFc6au2b7dRFbTZlRef8SXfmgz5KBNeHuO7LWRdr+ixbClFSK7D32fd/xaOD\r\nz6QveYbFnyXrDqeGxq7opB8BVaXOIdMWJSCncqjfk8pdQST2BJCAS1zYKnJ5\r\nb5//N2EyKLuPhvycCf7OuQEaN+q/U4QkIcrLrnVbBMQ/CEWMNBF7WWhB3dg0\r\n/qlp9nSPgExzXIHspe4dEvLyi/i4r+aBGBlc14x6cALxdJEO9NrMxUrJ5j5s\r\nHY0qO1MhIVEQj6cyUQtFzdXWa4Jx4BhbfvI=\r\n=BC7b\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"2ca6522f48c85072f98e987cba12360552f702aa","scripts":{"test":"tsex test","clean":"tsex clean","compile":"tsex compile","test:watch":"tsex test --watch","compile:watch":"tsex compile --watch","prepublishOnly":"npm run clean && npm run compile && npm run test"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/node-buffer-encoding.git","type":"git"},"_npmVersion":"8.1.0","description":"A little wrapper around Node's Buffer that provides encoding/decoding for all supported encodings.","directories":{},"_nodeVersion":"16.13.0","_hasShrinkwrap":false,"devDependencies":{"fava":"^0.0.6","tsex":"^1.1.1","typescript":"^4.6.3","@types/node":"^17.0.23"},"_npmOperationalInternal":{"tmp":"tmp/node-buffer-encoding_1.0.0_1649462496522_0.5839651088491362","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"node-buffer-encoding","version":"1.0.1","keywords":["node","buffer","encoding"],"_id":"node-buffer-encoding@1.0.1","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/node-buffer-encoding#readme","bugs":{"url":"https://github.com/fabiospampinato/node-buffer-encoding/issues"},"dist":{"shasum":"a51ca742190084b9b35a33a672b9021f46560358","tarball":"https://registry.npmjs.org/node-buffer-encoding/-/node-buffer-encoding-1.0.1.tgz","fileCount":12,"integrity":"sha512-eklg9A4yXOlIZOIeV8D33gHZjw2g61TREuhucTM+/OR/xn4MXTZaV60fEYP+Lsa7C9bliJvvNrgkC6igafgKrw==","signatures":[{"sig":"MEUCIHBaGLJT5vAb0ceIZRlorc5nnUb15FruRLxZj1YQ3FNGAiEAoJYuPhv8SCGjxQw503YbsthPK4K6bQyDekUeWgX/sI0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiUM8qACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqOIg//fbLvreuUJDt/gM6WjMdNWgDup3j2/kl5y2Vl6esVy699XNqS\r\n9QWHmUO5nSLOo82SVwNzzqIz3UR7iZuDQWzQdvD+OfnOGB+dpRCMfwVebNJS\r\n7SmH0Foh2AAViVvRcCPI8iiBVS5lPTv5unddL6GmjDB2oe/p7uEA50jphg+L\r\nC232Wuvymw50t8WBUj/3Ezzshi2s2xyKof1djdlewxzHGrpfrB/alrhQxZl+\r\nj4RThaWyQYdK82ty7U4wc+9bxRN9AjUnceTqBFIDxEfo33KXjn2ch+4Ma5NU\r\nN9pMq5hK3edvCDIaq6kkBmY2/Xq5A3/8znLHDwAtsF3VQ0IadjxsR9rK8oOe\r\nnOWk/4c2vMLYCwQqEZCE/Fw55bMK1QYjpciIPDbaeNLLpffOi6FEVLdTrZMZ\r\nV4AioMgmM9x6CwR9vWcKXJxTYmIhRVskX7Txk8yidwfRtXyaZVWbF+hw7+zG\r\neHerrcG/ACRlRztTy6I2fDokYJqaVMC0VR+vtBUlq+s+YMSzEctAI7fnfFKj\r\nRkxMtxvPZSrsR8jE7BS4uNxQarii0sWNNC/ck9v1H1FgaEGrlEaia9OYCsri\r\n/UD+r7RHMLCZg1dbxF8o5kJ0x+L05tAokt5ujNPv2vU5TWuN+aBp8wvW8NAs\r\nrI+vrgeiq28BwuJOHCcs5OlYfX4aCHH47GQ=\r\n=Qe3r\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"9b57e9b615b4655d99ef6e3ee7f452e6ecaf05e0","scripts":{"test":"tsex test","clean":"tsex clean","compile":"tsex compile","test:watch":"tsex test --watch","compile:watch":"tsex compile --watch","prepublishOnly":"npm run clean && npm run compile && npm run test"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/node-buffer-encoding.git","type":"git"},"_npmVersion":"8.1.0","description":"A little wrapper around Node's Buffer that provides encoding/decoding for all supported encodings.","directories":{},"_nodeVersion":"16.13.0","_hasShrinkwrap":false,"devDependencies":{"fava":"^0.0.6","tsex":"^1.1.1","typescript":"^4.6.3","@types/node":"^17.0.23"},"_npmOperationalInternal":{"tmp":"tmp/node-buffer-encoding_1.0.1_1649463082330_0.7236893534578897","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"node-buffer-encoding","version":"1.0.2","keywords":["node","buffer","encoding"],"_id":"node-buffer-encoding@1.0.2","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/node-buffer-encoding#readme","bugs":{"url":"https://github.com/fabiospampinato/node-buffer-encoding/issues"},"dist":{"shasum":"48a2d5be72b87e01e783736fa4ca4abc2591b509","tarball":"https://registry.npmjs.org/node-buffer-encoding/-/node-buffer-encoding-1.0.2.tgz","fileCount":12,"integrity":"sha512-v2QFjf04xWb5Q7cyzbi8qEwe2vw2xJBXT7+pMOLA02+KJZlcJ/6syFYiH96ClXKfOG/kyBeysAuewJ7zfAUYKQ==","signatures":[{"sig":"MEYCIQCM3qcmJ4Xe0KNfBsS/AtglMABwSMUewQTUZiwkNK4DjQIhAPTVsXf+4F6vGfYUQS3j4qTOWaD+p3YRmQGCJSr8JqSu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6037},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"af358eba72983180a0821b5dbac9c4b6aeb6dde1","scripts":{"test":"tsex test","clean":"tsex clean","compile":"tsex compile","test:watch":"tsex test --watch","compile:watch":"tsex compile --watch","prepublishOnly":"tsex prepare"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/node-buffer-encoding.git","type":"git"},"_npmVersion":"10.2.3","description":"A little wrapper around Node's Buffer that provides encoding/decoding for all supported encodings.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"fava":"^0.2.1","tsex":"^3.0.1","typescript":"^5.1.6","@types/node":"^20.4.7"},"_npmOperationalInternal":{"tmp":"tmp/node-buffer-encoding_1.0.2_1712271423678_0.043781380726598984","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"node-buffer-encoding","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/node-buffer-encoding.git"},"description":"A little wrapper around Node's Buffer that provides encoding/decoding for all supported encodings.","license":"MIT","version":"1.0.3","type":"module","main":"dist/index.js","exports":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","test":"tsex test","test:watch":"tsex test --watch","prepublishOnly":"tsex prepare"},"keywords":["node","buffer","encoding"],"devDependencies":{"@types/node":"^18.19.70","fava":"^0.3.4","tsex":"^4.0.2","typescript":"^5.7.3"},"_id":"node-buffer-encoding@1.0.3","gitHead":"9a40efcfb70847cbb0bf87c83598b8a4c8b8b5de","bugs":{"url":"https://github.com/fabiospampinato/node-buffer-encoding/issues"},"homepage":"https://github.com/fabiospampinato/node-buffer-encoding#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-9hJZNChhQoCN1rCFScJiEwtzvWEJw2wSnu2nhDLD/YOYl1Ce8GbtnorsnjwwjpSk4sWE7zSp2etX6j7+bO7fVA==","shasum":"94bab4c82e8ace9e69c17771f9fe8269f9469ddd","tarball":"https://registry.npmjs.org/node-buffer-encoding/-/node-buffer-encoding-1.0.3.tgz","fileCount":7,"unpackedSize":4009,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCImZKgVSNdJMz5V+ObcwEKPgGsgnOICS4biiXabu0Y9AIhAMSA4On5wYqCzfDln3RVkrWQ3RZWez2dNHkTB9eBi+Tm"}]},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/node-buffer-encoding_1.0.3_1736905789355_0.8705410099188255"},"_hasShrinkwrap":false}},"time":{"created":"2022-04-09T00:01:36.521Z","modified":"2025-01-15T01:49:49.720Z","1.0.0":"2022-04-09T00:01:36.693Z","1.0.1":"2022-04-09T00:11:22.560Z","1.0.2":"2024-04-04T22:57:03.839Z","1.0.3":"2025-01-15T01:49:49.530Z"},"bugs":{"url":"https://github.com/fabiospampinato/node-buffer-encoding/issues"},"homepage":"https://github.com/fabiospampinato/node-buffer-encoding#readme","keywords":["node","buffer","encoding"],"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/node-buffer-encoding.git"},"description":"A little wrapper around Node's Buffer that provides encoding/decoding for all supported encodings.","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"readme":"# Node Buffer Encoding\n\nA little wrapper around Node's Buffer that provides encoding/decoding for all supported encodings.\n\nIf you have access to Node's Buffer you probably just want to use it directly instead. This module provides a unified API to some of my other modules, and allows me not to import \"@types/node\" everywhere.\n\n## Install\n\n```sh\nnpm install node-buffer-encoding\n```\n\n## Usage\n\n```ts\nimport Encoding from 'node-buffer-encoding';\n\n// Encode an Uint8Array with the given encoding\n\nEncoding.encode ( new Uint8Array ([ 0, 255 ]), 'hex' ); // => '00ff'\n\n// Encode a string with the given encoding\n\nEncoding.encodeStr ( 'hello', 'base64' ); // => 'aGVsbG8='\n\n// Decode a string with the given encoding to an Uint8Array\n\nEncoding.decode ( '00ff', 'hex' ); // => Uint8Array(2) [ 0, 255 ]\n\n// Decode a string with the given encoding to a string\n\nEncoding.decodeStr ( 'aGVsbG8=', 'base64' ); // => 'hello'\n```\n\n## License\n\nMIT © Fabio Spampinato\n","readmeFilename":"readme.md","license":"MIT"}