{"_id":"urlsafe-base64","_rev":"16-82e0ac2eb8c9310ccfc4da275cb09282","name":"urlsafe-base64","description":"URL Safe Base64 encoding","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.1":{"name":"urlsafe-base64","version":"0.0.1","description":"URL Safe Base64 encoding","keywords":["base64","encoding","url","util"],"author":{"name":"RGBboy","email":"me@rgbboy.com"},"repository":{"type":"git","url":"http://github.com/RGBboy/urlsafe-base64"},"main":"index","engines":{"node":"0.8.x"},"dependencies":{},"devDependencies":{"mocha":"1.5.x","should":"1.2.x"},"scripts":{"test":"make test","unit":"make unit","spec":"make spec"},"_id":"urlsafe-base64@0.0.1","dist":{"shasum":"7cd3ffb6fc5f6f0577fe99c4c1468a41d006479c","tarball":"https://registry.npmjs.org/urlsafe-base64/-/urlsafe-base64-0.0.1.tgz","integrity":"sha512-exav0xNqvnsBvtU3eKWcOkgzSAJ9eX9IKFlrsEPWaHyJgmlQvWv61JsiCEucDXvGeCNdkrho9P1I+pSlBXPhtQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkyg4t10N2fbcSKgpWDRyXQ+XnDl96PlB0HE9q9JtWJAIgViE9CmnmcIoKGv/bM+IJAi4A+aHkx4uBSNaOigETn1I="}]},"_npmVersion":"1.1.61","_npmUser":{"name":"rgbboy","email":"me@rgbboy.com"},"maintainers":[{"name":"rgbboy","email":"me@rgbboy.com"}],"directories":{}},"0.0.2":{"name":"urlsafe-base64","version":"0.0.2","description":"URL Safe Base64 encoding","keywords":["base64","encoding","url","util"],"author":{"name":"RGBboy","email":"me@rgbboy.com"},"repository":{"type":"git","url":"http://github.com/RGBboy/urlsafe-base64"},"main":"index","engines":{"node":"0.8.x"},"dependencies":{},"devDependencies":{"mocha":"1.5.x","should":"1.2.x"},"scripts":{"test":"make test","unit":"make unit","spec":"make spec"},"_id":"urlsafe-base64@0.0.2","dist":{"shasum":"f95aa679d5ea6fce9142d63cb5709de31eebed42","tarball":"https://registry.npmjs.org/urlsafe-base64/-/urlsafe-base64-0.0.2.tgz","integrity":"sha512-Cttc4NBdGLc2I2kOBIRc7wtS9j3wFpvEje3dDEfpNN0OjADBNzTJP59miHGNXGAmufxC2odiYTBV1V61En+DuQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXBdIqRAnUYq9+5J+78lJRjGnzK/2yY2RzGE+9PymKiwIhANslO4LRFSmxAuHX6o4JcEivpyv7qc4Hpa949QOjc5/F"}]},"maintainers":[{"name":"rgbboy","email":"me@rgbboy.com"}],"directories":{}},"1.0.0":{"name":"urlsafe-base64","version":"1.0.0","description":"URL Safe Base64 encoding","keywords":["base64","encoding","url","util"],"author":{"name":"RGBboy","email":"l-_-l@rgbboy.com"},"repository":{"type":"git","url":"http://github.com/RGBboy/urlsafe-base64"},"main":"index","dependencies":{},"devDependencies":{"mocha":"1.5.x","should":"1.2.x"},"scripts":{"test":"make test","unit":"make unit"},"gitHead":"4438da5b18040af1c1789dd3c53b6595b3bea512","bugs":{"url":"https://github.com/RGBboy/urlsafe-base64/issues"},"homepage":"https://github.com/RGBboy/urlsafe-base64","_id":"urlsafe-base64@1.0.0","_shasum":"23f89069a6c62f46cf3a1d3b00169cefb90be0c6","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"rgbboy","email":"l-_-l@rgbboy.com"},"maintainers":[{"name":"rgbboy","email":"me@rgbboy.com"}],"dist":{"shasum":"23f89069a6c62f46cf3a1d3b00169cefb90be0c6","tarball":"https://registry.npmjs.org/urlsafe-base64/-/urlsafe-base64-1.0.0.tgz","integrity":"sha512-RtuPeMy7c1UrHwproMZN9gN6kiZ0SvJwRaEzwZY0j9MypEkFqyBaKv176jvlPtg58Zh36bOkS0NFABXMHvvGCA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDby60+fdOV68cWTwj5ZSqj7214fJbOQqDRDCe9Wh0nmQIhAOYRLnXHZgJQ3wWq1XLcT1s5Q7mEFZw8EblGF/vcARzw"}]},"directories":{}}},"readme":"# URL Safe Base64\n\nURL Safe Base64 util module for Node.js applications\n\n[![Build Status](https://secure.travis-ci.org/RGBboy/urlsafe-base64.png)](http://travis-ci.org/RGBboy/urlsafe-base64)\n\n## Installation\n\nWith [npm](http://npmjs.org) do:\n\n```\nnpm install urlsafe-base64\n```\n\n## Usage\n\nRequire it within your module:\n\n``` javascript\n  var URLSafeBase64 = require('urlsafe-base64');\n```\n\n### .encode(buffer)\n\nEncodes a buffer as a URL Safe Base64 string. This function encodes to \nthe RFC 4648 Spec where '+' is encoded as '-' and '/' is encoded as '_'. \nThe padding character '=' is removed.\n\n``` javascript\n  var randomURLSafeBase64;\n  crypto.randomBytes(32, function(err, buf) {\n    if (err) {\n      throw err;\n      return;\n    };\n    randomURLSafeBase64 = URLSafeBase64.encode(buf);\n  });\n```\n\n### .decode(string)\n\nDecodes a URL Safe Base64 string as a buffer.\n\n``` javascript\nvar someURLSafeBase64 = '';\nURLSafeBase64.decode(someURLSafeBase64); // returns a buffer\n```\n\n### .validate(string)\n\nValidates a string if it is URL Safe Base64 encoded.\n\n``` javascript\n  var validURLSafeBase64 = '';\n  URLSafeBase64.validate(validURLSafeBase64); // returns true\n\n  var invalidURLSafeBase64 = '/+=='\n  URLSafeBase64.validate(invalidURLSafeBase64); // returns false\n```\n\n## License \n\n(The MIT License)\n\nCopyright (c) 2014 RGBboy &lt;l-_-l@rgbboy.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","maintainers":[{"name":"rgbboy","email":"me@rgbboy.com"}],"time":{"modified":"2022-06-28T06:30:49.584Z","created":"2013-02-20T16:54:50.151Z","0.0.1":"2013-02-20T16:54:51.202Z","0.0.2":"2013-05-16T01:37:19.666Z","1.0.0":"2014-12-18T21:27:34.394Z"},"author":{"name":"RGBboy","email":"l-_-l@rgbboy.com"},"repository":{"type":"git","url":"http://github.com/RGBboy/urlsafe-base64"},"users":{"dweinstein":true,"mikend":true,"nickeljew":true,"hugojosefson":true,"sn0wdr1am":true},"homepage":"https://github.com/RGBboy/urlsafe-base64","keywords":["base64","encoding","url","util"],"bugs":{"url":"https://github.com/RGBboy/urlsafe-base64/issues"},"readmeFilename":"readme.md"}