{"maintainers":[{"name":"andrewnez","email":"andrewnez@gmail.com"}],"keywords":["base-62","encoder","decoder"],"dist-tags":{"latest":"1.2.0"},"author":{"name":"Andrew Nesbitt","email":"andrewnez@gmail.com","url":"http://nesbitt.io"},"description":"Javascript Base62 encode/decoder","readme":"# [Base62.js](http://libraries.io/npm/base62)\n[![build status](https://secure.travis-ci.org/andrew/base62.js.svg)](http://travis-ci.org/andrew/base62.js)\n[![npm version](https://badge.fury.io/js/base62.svg)](http://badge.fury.io/js/base62)\n[![devDependency Status](https://david-dm.org/andrew/base62.js/dev-status.svg?theme=shields.io)](https://david-dm.org/andrew/base62.js#info=devDependencies)\n[![Gitter chat](http://img.shields.io/badge/gitter-andrew/base62.js-brightgreen.svg)](https://gitter.im/andrew/base62.js)\n\nA javascript Base62 encode/decoder for node.js\n\n## What is Base62 encoding?\n\nFrom [wikipedia](https://de.wikipedia.org/wiki/Base62):\n\n> Base62 is a priority system to the base 62, which for encoding large numbers using ASCII is character. The digits 0-9 (value 0-9), uppercase letters A-Z (value 10-35) and lowercase letters a-z (value 36-61) are used.\n\n> Due to the high number of base formed shorter strings than with the decimal or hexadecimal system , which mainly offers two advantages:\n\n> - They can be entered by a human being faster and with a smaller risk of error. In this case, a font should be selected in which characters that can be confused, such as small L and large i, or zero, and large O, are distinguishable.\n> - Length restrictions, eg when a number is to be used as part of an identifier or file name, can be bypassed. However, it should be noted that the processing system is case-sensitive.\n\n## Install\n\n```bash\nnpm install base62\n```\nor for yarn:\n```bash\nyarn add base62\n```\n\n\n## Usage\n\n### Default Character Set Example\n\n```javascript\nBase62 = require('base62')\nBase62.encode(999)  // 'g7'\nBase62.decode('g7') // 999\n```\n\n### Custom Character Set Example\n\nThe default character set is `0-9a-zA-Z`. This can be updated to a custom character set. Naturally, it must be 62 characters long.\n\nInstead of the character set `0-9a-zA-Z` you want to use `0-9A-Za-z`, call the `setCharacterSet()` method on the Base62 object passing in the string `\"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\"`. Note that all characters must be unique.\n\n```javascript\nBase62 = require('base62')\nBase62.setCharacterSet(\"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\");\nBase62.encode(999)  // 'G7'\nBase62.decode('G7') // 999\n```\n\n## Development\n\nSource hosted at [GitHub](http://github.com/andrew/base62.js).\nReport Issues/Feature requests on [GitHub Issues](http://github.com/andrew/base62.js).\n\n### Note on Patches/Pull Requests\n\n * Fork the project.\n * Make your feature addition or bug fix.\n * Add tests for it. This is important so I don't break it in a future version unintentionally.\n * Send me a pull request. Bonus points for topic branches.\n\n## Copyright\n\nCopyright (c) 2016 Andrew Nesbitt. See [LICENSE](https://github.com/andrew/base62.js/blob/master/LICENSE) for details.\n","repository":{"type":"git","url":"git+https://github.com/andrew/base62.js.git"},"users":{"iolo":true,"scottfreecode":true,"xmarcos":true},"bugs":{"url":"https://github.com/andrew/base62.js/issues"},"license":"MIT","versions":{"0.1.0":{"author":{"name":"Andrew Nesbitt","email":"andrewnez@gmail.com","url":"http://andrew-nesbitt.com/"},"name":"base62","description":"Javascript Base62 encode/decoder","version":"0.1.0","repository":{"type":"git","url":"git://github.com/andrew/base62.js.git"},"main":"base62.js","engines":{"node":"*"},"_npmUser":{"name":"andrewnez","email":"andrewnez@gmail.com"},"_id":"base62@0.1.0","dependencies":{},"devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-2","_nodeVersion":"v0.6.8","_defaultsLoaded":true,"dist":{"shasum":"03b8bde71477f095dff3455ccd5f8e0fd6bf91fa","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/base62/-/base62-0.1.0.tgz"},"maintainers":[{"name":"andrewnez","email":"andrewnez@gmail.com"}],"directories":{}},"0.1.1":{"author":{"name":"Andrew Nesbitt","email":"andrewnez@gmail.com","url":"http://andrew-nesbitt.com/"},"name":"base62","description":"Javascript Base62 encode/decoder","keywords":["base-62"],"version":"0.1.1","repository":{"type":"git","url":"git://github.com/andrew/base62.js.git"},"main":"base62.js","engines":{"node":"*"},"scripts":{"test":"mocha test"},"devDependencies":{"mocha":"1.7.x"},"_id":"base62@0.1.1","dist":{"shasum":"7b4174c2f94449753b11c2651c083da841a7b084","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/base62/-/base62-0.1.1.tgz"},"_npmVersion":"1.1.65","_npmUser":{"name":"andrewnez","email":"andrewnez@gmail.com"},"maintainers":[{"name":"andrewnez","email":"andrewnez@gmail.com"}],"directories":{}},"0.1.2":{"author":{"name":"Andrew Nesbitt","email":"andrewnez@gmail.com","url":"http://andrew.github.io"},"name":"base62","description":"Javascript Base62 encode/decoder","keywords":["base-62"],"version":"0.1.2","repository":{"type":"git","url":"git://github.com/andrew/base62.js.git"},"main":"base62.js","engines":{"node":"*"},"scripts":{"test":"mocha test"},"devDependencies":{"mocha":"1.7.x"},"bugs":{"url":"https://github.com/andrew/base62.js/issues"},"homepage":"https://github.com/andrew/base62.js","_id":"base62@0.1.2","dist":{"shasum":"6f0d1b71d7cbc18234fa6f86928c08d3923f547b","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/base62/-/base62-0.1.2.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"andrewnez","email":"andrewnez@gmail.com"},"maintainers":[{"name":"andrewnez","email":"andrewnez@gmail.com"}],"directories":{}},"1.0.0":{"author":{"name":"Andrew Nesbitt","email":"andrewnez@gmail.com","url":"http://nesbitt.io"},"name":"base62","description":"Javascript Base62 encode/decoder","keywords":["base-62"],"licenses":[{"type":"MIT","url":"https://github.com/andrew/base62.js/blob/master/LICENSE"}],"version":"1.0.0","repository":{"type":"git","url":"git://github.com/andrew/base62.js.git"},"main":"base62.js","engines":{"node":"*"},"scripts":{"test":"mocha test"},"devDependencies":{"mocha":"~1.21.4"},"bugs":{"url":"https://github.com/andrew/base62.js/issues"},"homepage":"https://github.com/andrew/base62.js","_id":"base62@1.0.0","dist":{"shasum":"47e25e40e841597877807a3a459a6b1f3f8a88a1","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/base62/-/base62-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"andrewnez","email":"andrewnez@gmail.com"},"maintainers":[{"name":"andrewnez","email":"andrewnez@gmail.com"}],"directories":{}},"1.1.0":{"author":{"name":"Andrew Nesbitt","email":"andrewnez@gmail.com","url":"http://nesbitt.io"},"name":"base62","description":"Javascript Base62 encode/decoder","keywords":["base-62"],"licenses":[{"type":"MIT","url":"https://github.com/andrew/base62.js/blob/master/LICENSE"}],"version":"1.1.0","repository":{"type":"git","url":"git://github.com/andrew/base62.js.git"},"main":"base62.js","engines":{"node":"*"},"scripts":{"test":"mocha test"},"devDependencies":{"mocha":"~2.1.0"},"gitHead":"7a37860056bdf139b8886eac1376327c02282dc8","bugs":{"url":"https://github.com/andrew/base62.js/issues"},"homepage":"https://github.com/andrew/base62.js","_id":"base62@1.1.0","_shasum":"4659de866558906d43fec61e07abd4397da74c19","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"andrewnez","email":"andrewnez@gmail.com"},"maintainers":[{"name":"andrewnez","email":"andrewnez@gmail.com"}],"dist":{"shasum":"4659de866558906d43fec61e07abd4397da74c19","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/base62/-/base62-1.1.0.tgz"},"directories":{}},"1.1.1":{"author":{"name":"Andrew Nesbitt","email":"andrewnez@gmail.com","url":"http://nesbitt.io"},"name":"base62","description":"Javascript Base62 encode/decoder","keywords":["base-62","encoder","decoder"],"license":"MIT","version":"1.1.1","repository":{"type":"git","url":"git+https://github.com/andrew/base62.js.git"},"bugs":{"url":"https://github.com/andrew/base62.js/issues"},"homepage":"https://github.com/andrew/base62.js","main":"base62.js","engines":{"node":"*"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"~2.4.5"},"gitHead":"8d5757251b468efa1f5bc9e1716577219d7788c6","_id":"base62@1.1.1","_shasum":"974e82c11bd5e00816b508a7ed9c7b9086c9db6b","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.0","_npmUser":{"name":"andrewnez","email":"andrewnez@gmail.com"},"maintainers":[{"name":"andrewnez","email":"andrewnez@gmail.com"}],"dist":{"shasum":"974e82c11bd5e00816b508a7ed9c7b9086c9db6b","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/base62/-/base62-1.1.1.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/base62-1.1.1.tgz_1460670920673_0.4959259112365544"},"directories":{}},"1.1.2":{"author":{"name":"Andrew Nesbitt","email":"andrewnez@gmail.com","url":"http://nesbitt.io"},"name":"base62","description":"Javascript Base62 encode/decoder","keywords":["base-62","encoder","decoder"],"license":"MIT","version":"1.1.2","repository":{"type":"git","url":"git+https://github.com/andrew/base62.js.git"},"bugs":{"url":"https://github.com/andrew/base62.js/issues"},"homepage":"https://github.com/andrew/base62.js","main":"base62.js","engines":{"node":"*"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"~3.1.0"},"gitHead":"8366b6fe380de0c4c5fd33a52b1df7e675d5a3db","_id":"base62@1.1.2","_shasum":"22ced6a49913565bc0b8d9a11563a465c084124c","_from":".","_npmVersion":"3.10.8","_nodeVersion":"7.0.0","_npmUser":{"name":"andrewnez","email":"andrewnez@gmail.com"},"maintainers":[{"name":"andrewnez","email":"andrewnez@gmail.com"}],"dist":{"shasum":"22ced6a49913565bc0b8d9a11563a465c084124c","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/base62/-/base62-1.1.2.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/base62-1.1.2.tgz_1479084230594_0.952026053564623"},"directories":{}},"1.2.0":{"author":{"name":"Andrew Nesbitt","email":"andrewnez@gmail.com","url":"http://nesbitt.io"},"name":"base62","description":"Javascript Base62 encode/decoder","keywords":["base-62","encoder","decoder"],"license":"MIT","version":"1.2.0","repository":{"type":"git","url":"git+https://github.com/andrew/base62.js.git"},"bugs":{"url":"https://github.com/andrew/base62.js/issues"},"homepage":"https://github.com/andrew/base62.js","main":"base62.js","engines":{"node":"*"},"scripts":{"test":"mocha","benchmark":"node benchmark/benchmarks.js"},"devDependencies":{"mocha":"~3.4.1"},"gitHead":"a18e44e483a320a14225de116f7d05db612b73e3","_id":"base62@1.2.0","_shasum":"31e7e560dc846c9f44c1a531df6514da35474157","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"andrewnez","email":"andrewnez@gmail.com"},"maintainers":[{"name":"andrewnez","email":"andrewnez@gmail.com"}],"dist":{"shasum":"31e7e560dc846c9f44c1a531df6514da35474157","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/base62/-/base62-1.2.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/base62-1.2.0.tgz_1494847559126_0.7587315780110657"},"directories":{}}},"name":"base62","time":{"modified":"2017-05-15T11:26:01.056Z","created":"2012-02-24T18:04:05.588Z","0.1.0":"2012-02-24T18:04:06.916Z","0.1.1":"2012-12-09T05:11:27.662Z","0.1.2":"2014-07-15T21:24:45.597Z","1.0.0":"2014-10-11T07:22:23.512Z","1.1.0":"2015-02-23T09:52:54.646Z","1.1.1":"2016-04-14T21:55:22.812Z","1.1.2":"2016-11-14T00:43:51.131Z","1.2.0":"2017-05-15T11:26:01.056Z"},"readmeFilename":"Readme.md","homepage":"https://github.com/andrew/base62.js"}