{"_id":"any-base","_rev":"359187","name":"any-base","description":"Converter from any base to other any base","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"mifczu","email":"mifczu@gmail.com"}],"time":{"modified":"2021-07-13T08:44:54.000Z","created":"2015-05-28T20:44:52.243Z","1.1.0":"2017-10-09T12:12:05.984Z","1.0.1":"2016-11-30T20:29:57.135Z","1.0.0":"2015-05-28T20:44:52.243Z"},"users":{"nemolo":true},"author":{"name":"Kamil Harasimowicz","email":"mifczu@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/HarasimowiczKamil/any-base.git"},"versions":{"1.1.0":{"name":"any-base","version":"1.1.0","description":"Converter from any base to other any base","main":"index.js","scripts":{"start":"watchify . -s AnyBase -o dist/any-base.js -v -d","build":"browserify . -s AnyBase | ./node_modules/.bin/uglifyjs -cm > dist/any-base.min.js","test":"node tests/test.js"},"keywords":["number","convert","base","alphabet","short number","long numbers","dec","hex","bin","oct","any"],"repository":{"type":"git","url":"git+https://github.com/HarasimowiczKamil/any-base.git"},"author":{"name":"Kamil Harasimowicz","email":"mifczu@gmail.com"},"license":"MIT","dependencies":{},"devDependencies":{"browserify":"^13.1.1","punycode":"^2.1.0","uglify-js":"^2.7.4","watchify":"^3.7.0"},"gitHead":"7595a7398959618a93cb4edef0bae3e035eb3ce0","bugs":{"url":"https://github.com/HarasimowiczKamil/any-base/issues"},"homepage":"https://github.com/HarasimowiczKamil/any-base#readme","_id":"any-base@1.1.0","_npmVersion":"5.4.2","_nodeVersion":"8.4.0","_npmUser":{"name":"mifczu","email":"mifczu@gmail.com"},"dist":{"shasum":"ae101a62bc08a597b4c9ab5b7089d456630549fe","size":5340,"noattachment":false,"key":"/any-base/-/any-base-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/any-base/download/any-base-1.1.0.tgz"},"maintainers":[{"name":"mifczu","email":"mifczu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/any-base-1.1.0.tgz_1507551125125_0.33573661162517965"},"directories":{},"publish_time":1507551125984,"_hasShrinkwrap":false,"_cnpm_publish_time":1507551125984},"1.0.1":{"name":"any-base","version":"1.0.1","description":"Converter from any base to other any base","main":"index.js","scripts":{"start":"watchify . -s AnyBase -o dist/any-base.js -v -d","build":"browserify . -s AnyBase | ./node_modules/.bin/uglifyjs -cm > dist/any-base.min.js","test":"node tests/test.js"},"keywords":["number","convert","base","alphabet","short number","long numbers","dec","hex","bin","oct","any"],"repository":{"type":"git","url":"git+https://github.com/HarasimowiczKamil/any-base.git"},"author":{"name":"Kamil Harasimowicz","email":"mifczu@gmail.com"},"license":"MIT","dependencies":{},"devDependencies":{"browserify":"^13.1.1","uglify-js":"^2.7.4","watchify":"^3.7.0"},"gitHead":"e646b6e874ee5d4c2677c8f40e07831662bfe0bb","bugs":{"url":"https://github.com/HarasimowiczKamil/any-base/issues"},"homepage":"https://github.com/HarasimowiczKamil/any-base#readme","_id":"any-base@1.0.1","_shasum":"feace48fda1aa42f2b7546f2caae4cc26704a3de","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.2.0","_npmUser":{"name":"mifczu","email":"mifczu@gmail.com"},"dist":{"shasum":"feace48fda1aa42f2b7546f2caae4cc26704a3de","size":6528,"noattachment":false,"key":"/any-base/-/any-base-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/any-base/download/any-base-1.0.1.tgz"},"maintainers":[{"name":"mifczu","email":"mifczu@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/any-base-1.0.1.tgz_1480537796453_0.1595956759992987"},"directories":{},"publish_time":1480537797135,"_cnpm_publish_time":1480537797135,"_hasShrinkwrap":false},"1.0.0":{"name":"any-base","version":"1.0.0","description":"Converter from any base to other any base","main":"index.js","scripts":{"test":"node tests/test.js"},"keywords":["number","convert","base","alphabet","short number","long numbers","dec","hex","bin","oct","any"],"repository":{"type":"git","url":"https://github.com/HarasimowiczKamil/any-base.git"},"author":{"name":"Kamil Harasimowicz","email":"mifczu@gmail.com"},"license":"MIT","gitHead":"6e19e3c330df14992f907578f84e07dce1dcac6e","bugs":{"url":"https://github.com/HarasimowiczKamil/any-base/issues"},"homepage":"https://github.com/HarasimowiczKamil/any-base","_id":"any-base@1.0.0","_shasum":"76446561cb1fa36670e4aac4d139a48d7644314b","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"mifczu","email":"mifczu@gmail.com"},"maintainers":[{"name":"mifczu","email":"mifczu@gmail.com"}],"dist":{"shasum":"76446561cb1fa36670e4aac4d139a48d7644314b","size":3830,"noattachment":false,"key":"/any-base/-/any-base-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/any-base/download/any-base-1.0.0.tgz"},"directories":{},"publish_time":1432845892243,"_cnpm_publish_time":1432845892243,"_hasShrinkwrap":false}},"readme":"# README #\n\nThe library allows you to convert any large numbers in any number base to another number base. The base is determined by specifying the alphabet. So is full freedom\n\n[![NPM](https://nodei.co/npm/any-base.png?downloads=true&stars=true)](https://nodei.co/npm/any-base/)\n\n## Installation ##\n\n```\nnpm install any-base --save\n```\n\n## API ##\n\n### AnyBase() ###\n\n```\nconverterFunction = anyBase(sourceAlphabet, destinationAlphabet);\n```\n\n#### Parameters ####\n\n* {String} __sourceAlphabet__      digits from smallest to the largest\n* {String} __destinationAlphabet__ digits from smallest to the largest\n\n#### Return Values ####\n\nReturns __function__ that converts the number of source base to the destination\n\n### Convert() ###\n\n```\nconverterFunction(number)\n```\n\n#### Parameters ####\n\n* {String} __number__ number of source base\n\n#### Return Values ####\n\nReturns number of destonation base\n\n## Example ##\n\n```js\nvar anyBase = require('any-base'),\ndec2hex = anyBase(anyBase.DEC, anyBase.HEX),\nshortId = anyBase(anyBase.DEC, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-+!@#$^'),\nlongId  = anyBase('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-+!@#$^', anyBase.DEC);\n\ndec2hex('123456'); // return: '1E240'\nshortId('1234567890'); // return: 'PtmIa'\nlongId('PtmIa'); // return: '1234567890'\n```\n","_attachments":{},"homepage":"https://github.com/HarasimowiczKamil/any-base#readme","bugs":{"url":"https://github.com/HarasimowiczKamil/any-base/issues"},"license":"MIT"}