{"_id":"uuid-encoder","_rev":"3-7810eba6f497f45e2fad4d17cf7384d1","name":"uuid-encoder","description":"Encode UUIDs into Base36 or any other system","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"uuid-encoder","version":"1.0.0","description":"Encode UUIDs into Base36 or any other system","main":"lib/index.js","scripts":{"test":"mocha --recursive test/"},"repository":{"type":"git","url":"git+https://github.com/franksrevenge/uuid-encoder.git"},"keywords":["uuid","compress","compressor","compact","encode","encoder","encoding","base36","base32"],"files":["lib"],"author":{"name":"Aleksi Asikainen","email":"aleksi.asikainen@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/franksrevenge/uuid-encoder/issues"},"homepage":"https://github.com/franksrevenge/uuid-encoder#readme","dependencies":{"big-integer":"^1.6.26"},"devDependencies":{"chai":"^4.1.2","coveralls":"^3.0.0","eslint":"^4.9.0","eslint-config-airbnb-base":"^12.1.0","eslint-plugin-import":"^2.7.0","istanbul":"^0.4.5","lodash":"^4.17.4","mocha":"^4.0.1","mocha-istanbul":"^0.3.0","mocha-lcov-reporter":"^1.3.0","should":"^13.1.3"},"gitHead":"b22a5e6847c5e92fe878764c6f78080eff639067","_id":"uuid-encoder@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"franksrevenge","email":"aleksi.asikainen@gmail.com"},"dist":{"integrity":"sha512-KPx1GY1Exxw010pCbfjtg9Qn5Yf/Xdw2VOVHCatDnijL4mk4lYWScsSR62sRqOlSUE+mPFMaK4F1jKJWIJ5bHg==","shasum":"f569fe0f0781c99205b6587ed4279dd44d2cfe6f","tarball":"https://registry.npmjs.org/uuid-encoder/-/uuid-encoder-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOET50RvlUHvfSDOzDqmPAijsuiT0Hy+X5zBo/3Qp6vAIhAMXczMFNO2tpJeUrfAgF+UuJ608wQpNbU0U/Hl2je1s5"}]},"maintainers":[{"name":"franksrevenge","email":"aleksi.asikainen@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/uuid-encoder-1.0.0.tgz_1512951403011_0.9166249274276197"},"directories":{}},"1.1.0":{"name":"uuid-encoder","version":"1.1.0","description":"Encode UUIDs into Base36 or any other system","main":"lib/index.js","scripts":{"test":"mocha --recursive test/"},"repository":{"type":"git","url":"git+https://github.com/franksrevenge/uuid-encoder.git"},"keywords":["uuid","compress","compressor","compact","encode","encoder","encoding","base36","base32","base58","base62"],"files":["lib"],"author":{"name":"Aleksi Asikainen","email":"aleksi.asikainen@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/franksrevenge/uuid-encoder/issues"},"homepage":"https://github.com/franksrevenge/uuid-encoder#readme","dependencies":{"big-integer":"^1.6.26"},"devDependencies":{"chai":"^4.1.2","coveralls":"^3.0.0","eslint":"^4.9.0","eslint-config-airbnb-base":"^12.1.0","eslint-plugin-import":"^2.7.0","istanbul":"^0.4.5","lodash":"^4.17.4","mocha":"^4.0.1","mocha-istanbul":"^0.3.0","mocha-lcov-reporter":"^1.3.0","should":"^13.1.3"},"gitHead":"49c29d88590c99ab2634c1657694b0685d5728a5","_id":"uuid-encoder@1.1.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"franksrevenge","email":"aleksi.asikainen@gmail.com"},"dist":{"integrity":"sha512-7KQlrUHkAYGA8bA4N1VX7C+PIaCuub8qG93S6s1Te/I78CwLiSnID+3WaCeNYKb6uj1Lqwjsf1EhBVXHZY64tQ==","shasum":"c3c4cea7689e9abaf843f22651b677d4ef11679f","tarball":"https://registry.npmjs.org/uuid-encoder/-/uuid-encoder-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJVP+vxeKVNlOXD0VaJsk3zdlBLHgShOKIWTdBobx87wIhAOIJ8U3lT51FV2MmHwwYVKEVeUD5wnnmKGK4gyRTAzbp"}]},"maintainers":[{"name":"franksrevenge","email":"aleksi.asikainen@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/uuid-encoder-1.1.0.tgz_1512954890785_0.45885792933404446"},"directories":{}},"1.2.0":{"name":"uuid-encoder","version":"1.2.0","description":"Encode UUIDs into Base36 or any other system","main":"lib/index.js","scripts":{"test":"mocha --recursive test/"},"repository":{"type":"git","url":"git+https://github.com/salieri/uuid-encoder.git"},"keywords":["uuid","compress","compressor","compact","encode","encoder","encoding","base36","base32","base58","base62"],"author":{"name":"Aleksi Asikainen","email":"aleksi.asikainen@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/salieri/uuid-encoder/issues"},"homepage":"https://github.com/salieri/uuid-encoder#readme","dependencies":{"big-integer":"^1.6.46"},"devDependencies":{"chai":"^4.2.0","coveralls":"^3.0.6","eslint":"^6.5.1","eslint-config-airbnb-base":"^14.0.0","eslint-plugin-import":"^2.18.2","istanbul":"^0.4.5","lodash":"^4.17.15","mocha":"^6.2.1","mocha-istanbul":"^0.3.0","mocha-lcov-reporter":"^1.3.0","should":"^13.2.3"},"gitHead":"1bae7be437b625bf433fccdf362c6a2f442acc29","_id":"uuid-encoder@1.2.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"franksrevenge","email":"aleksi.asikainen@gmail.com"},"dist":{"integrity":"sha512-uL/aXk+EFP0wxDjOuPulXo5LV8y6jqFX3yCGxm0qN041bJZ1jfOgqagkkOzZ4h5atYdezhyQuw6CWt6+og0pmQ==","shasum":"5ee1585b6edb4c56d5a65e3439e602baeff43cc2","tarball":"https://registry.npmjs.org/uuid-encoder/-/uuid-encoder-1.2.0.tgz","fileCount":4,"unpackedSize":7620,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdlWdtCRA9TVsSAnZWagAA8LsP/RPOINQCkrUlOHiGO8Bz\n7UtgdIuEUoilkVlBvG332VxE5qucUaDOPk+RRFcUfT8Fh2mDN/YThnXKjPl6\nrfDWnBcgdnTUGgiAqc6fYJLf/6L5cM3eDYJgLYK6QxU4KA8xq5b5Q70uy6ip\nlS8xIbMxv3HmaQITHyE2nP77u3cYP4wnvY1blG3vJWeligFcksACyH47fuxi\nt96j0p8jiDeXXwEov/D1L7g3UrEk69KgAlOYYUuPt7Kw0EXnOL4XI0VWTmsW\npNCyAm3St7VW1l5xdA5TA7kT/A2WgVIhR/laKPZ8VFZ7NnO07EPUwRR1XsoM\n2Fluwtw75bNIe4J4RQ2Q733m2Ht26Xeqx3d3wp6n3xutdMWxefABxT7aUC6p\naredYAzKtimklveuN+ih5BhqCVUqvQDq87g+TEi//k2hDitiJM+7s6re4YcC\nQBZnhnzpQgccQEiJbWVOsbb1l1snIGDeLXW51RPFRdcI4ImOWofd9BjA6HlM\nbT8AVSNx9cI5Z1seAymF9KZ/Ma+ePI0Obu5PKXhhlivJtHdB48hLZkzPMIj5\nYZtmOvtJF+O7i3Rs7zBJTOJnk8olGdkGUXhCghLUA3VwHpIG0MUgOdZjkoIq\n3EXGxHIiZnsatse9ZmQ0KxX0hyJ4HH+3up9R1IGqaKg+zTvkeRxy/5FmsjNT\nVF7t\r\n=uLOZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1aongVLvUXibYWSdlNtnrIdi39e4u5GPapL9ID3VoBQIhANRltFDH/eyDM4taONWbK95NxHVfKb2cNlazEtScay+U"}]},"maintainers":[{"name":"franksrevenge","email":"aleksi.asikainen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/uuid-encoder_1.2.0_1570072429347_0.9851234896982874"},"_hasShrinkwrap":false}},"readme":"# UUID Encoder\n\nConvert UUIDs into Base32, Base36, or any other encoding of your choice.\n\n[![Build Status](https://travis-ci.org/salieri/uuid-encoder.svg?branch=master)](https://travis-ci.org/salieri/uuid-encoder) [![Coverage Status](https://coveralls.io/repos/github/salieri/uuid-encoder/badge.svg?branch=master)](https://coveralls.io/github/salieri/uuid-encoder?branch=master) [![Dependency Status](https://david-dm.org/salieri/uuid-encoder/status.svg)](https://david-dm.org/salieri/uuid-encoder#info=dependencies&view=table) [![Dev Dependency Status](https://david-dm.org/salieri/uuid-encoder/dev-status.svg)](https://david-dm.org/salieri/uuid-encoder#info=devDependencies&view=table)\n\n\n## Usage\n\n```js\nconst UuidEncoder = require('uuid-encoder');\n\n// Create Base 36 encoder\nconst encoder = new UuidEncoder('base36');\n\n// Encode an UUID\nconst encodedUuid = encoder.encode('38b9823d-fa1a-48e7-91fc-ee16ad091cf2');\n\n// Decode an encoded UUID\nconst decodedUuid = encoder.decode(encodedUuid);\n```\n\n\n## API\n\n### UuidEncoder([baseEncodingStr = 'base36'])\n\nInstantiate a new encoder using the specified base encoder.\n\n### string encode(string uuid)\n\nReturns a string containing the encoded version of the `uuid`.\n\n### string decode(string str)\n\nReturns a string containing the decoded UUID from `str`.\n\n\n## Encoding\n\n### Built-In Encodings\n\n| Type       | Charset  | Description |\n| :--------- | :------- | :----------------------- |\n| `'base2'`  | 0-1      | Binary encoding |\n| `'base10'` | 0-9      | Decimal encoding |\n| `'base16'` | 0-9, a-f | Hexadecimal encoding |\n| `'base32'` | _Custom_ | Crockford's Base 32 |\n| `'base36'` | 0-9, a-z | Base 36 (default) |\n| `'base58'` | _Custom_ | Bitcoin Base 58 |\n| `'base62'` | 0-9, A-Z, a-z | Base 62 |\n| `'base64'` | 0-9, A-Z, a-z, +, / | Base 64 |\n| `'base64url'` | 0-9, A-Z, a-z, -, _ | Base 64 URL encoding (RFC 4648) |\n\n\n\n## Custom Encoding\n\nTo use a different set or count of encoding characters, simply pass a string\ncontaining every desired letter to the constructor.\n\nAll custom encoding sets are **case sensitive**.\n\n```js\nconst encoder = new UuidEncoder('02468ACEGI'); // weird base10\n```\n","maintainers":[{"name":"franksrevenge","email":"aleksi.asikainen@gmail.com"}],"time":{"modified":"2022-05-23T00:31:12.191Z","created":"2017-12-11T00:16:43.909Z","1.0.0":"2017-12-11T00:16:43.909Z","1.1.0":"2017-12-11T01:14:50.851Z","1.2.0":"2019-10-03T03:13:49.475Z"},"homepage":"https://github.com/salieri/uuid-encoder#readme","keywords":["uuid","compress","compressor","compact","encode","encoder","encoding","base36","base32","base58","base62"],"repository":{"type":"git","url":"git+https://github.com/salieri/uuid-encoder.git"},"author":{"name":"Aleksi Asikainen","email":"aleksi.asikainen@gmail.com"},"bugs":{"url":"https://github.com/salieri/uuid-encoder/issues"},"license":"MIT","readmeFilename":"README.md"}