{"_id":"libbase64","_rev":"252273","name":"libbase64","description":"Encode and decode base64 encoded strings","dist-tags":{"latest":"1.2.1"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"time":{"modified":"2021-06-03T16:15:44.000Z","created":"2014-06-18T13:27:18.378Z","1.2.1":"2019-08-07T18:22:36.410Z","1.2.0":"2019-08-06T12:45:09.125Z","1.1.0":"2019-07-28T18:09:26.796Z","1.0.3":"2018-07-24T06:43:53.313Z","1.0.2":"2017-12-15T12:50:07.303Z","1.0.1":"2017-11-26T21:38:55.691Z","1.0.0":"2017-11-23T11:52:04.837Z","0.2.0":"2017-06-06T12:23:28.294Z","0.1.0":"2014-06-18T13:27:18.378Z"},"users":{"mojaray2k":true,"trackds":true},"author":{"name":"Andris Reinman"},"repository":{"type":"git","url":"git://github.com/nodemailer/libbase64.git"},"versions":{"1.2.1":{"name":"libbase64","version":"1.2.1","description":"Encode and decode base64 encoded strings","main":"lib/libbase64.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git://github.com/nodemailer/libbase64.git"},"keywords":["base64","mime"],"author":{"name":"Andris Reinman"},"license":"MIT","bugs":{"url":"https://github.com/nodemailer/libbase64/issues"},"homepage":"https://github.com/nodemailer/libbase64","devDependencies":{"chai":"4.2.0","eslint-config-nodemailer":"1.2.0","eslint-config-prettier":"6.0.0","grunt":"1.0.4","grunt-cli":"1.3.2","grunt-eslint":"22.0.0","grunt-mocha-test":"0.13.3","mocha":"6.2.0"},"dependencies":{},"gitHead":"bc8207abd06a9eb1c4873ad7aa8566b4637ba108","_id":"libbase64@1.2.1","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"shasum":"fb93bf4cb6d730f29b92155b6408d1bd2176a8c8","size":3801,"noattachment":false,"key":"/libbase64/-/libbase64-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/libbase64/download/libbase64-1.2.1.tgz"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"_npmUser":{"name":"andris","email":"andris@kreata.ee"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/libbase64_1.2.1_1565202156276_0.5942009792181895"},"_hasShrinkwrap":false,"publish_time":1565202156410,"_cnpm_publish_time":1565202156410},"1.2.0":{"name":"libbase64","version":"1.2.0","description":"Encode and decode base64 encoded strings","main":"lib/libbase64.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git://github.com/nodemailer/libbase64.git"},"keywords":["base64","mime"],"author":{"name":"Andris Reinman"},"license":"MIT","bugs":{"url":"https://github.com/nodemailer/libbase64/issues"},"homepage":"https://github.com/nodemailer/libbase64","devDependencies":{"chai":"4.2.0","eslint-config-nodemailer":"1.2.0","eslint-config-prettier":"6.0.0","grunt":"1.0.4","grunt-cli":"1.3.2","grunt-eslint":"22.0.0","grunt-mocha-test":"0.13.3","mocha":"6.2.0"},"dependencies":{},"gitHead":"86ee2a60e5782528ad58f25a42573a2293f0f2c4","_id":"libbase64@1.2.0","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"shasum":"4a9a04f34bacd621a5971f7106ad5317db40c055","size":3794,"noattachment":false,"key":"/libbase64/-/libbase64-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/libbase64/download/libbase64-1.2.0.tgz"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"_npmUser":{"name":"andris","email":"andris@kreata.ee"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/libbase64_1.2.0_1565095508945_0.4151232495036947"},"_hasShrinkwrap":false,"publish_time":1565095509125,"_cnpm_publish_time":1565095509125},"1.1.0":{"name":"libbase64","version":"1.1.0","description":"Encode and decode base64 encoded strings","main":"lib/libbase64.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git://github.com/nodemailer/libbase64.git"},"keywords":["base64","mime"],"author":{"name":"Andris Reinman"},"license":"MIT","bugs":{"url":"https://github.com/nodemailer/libbase64/issues"},"homepage":"https://github.com/nodemailer/libbase64","devDependencies":{"chai":"^4.2.0","eslint-config-nodemailer":"^1.2.0","eslint-config-prettier":"^6.0.0","grunt":"^1.0.4","grunt-cli":"^1.3.2","grunt-eslint":"^22.0.0","grunt-mocha-test":"^0.13.3","mocha":"^6.2.0"},"dependencies":{},"gitHead":"cd8813a90f941b7c0fb76e47ba17272895e4d481","_id":"libbase64@1.1.0","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"shasum":"4c4cdb12cb4b49dc0cb35fbb061e640483456450","size":3648,"noattachment":false,"key":"/libbase64/-/libbase64-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/libbase64/download/libbase64-1.1.0.tgz"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"_npmUser":{"name":"andris","email":"andris@kreata.ee"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/libbase64_1.1.0_1564337366645_0.07397458198284967"},"_hasShrinkwrap":false,"publish_time":1564337366796,"_cnpm_publish_time":1564337366796},"1.0.3":{"name":"libbase64","version":"1.0.3","description":"Encode and decode base64 encoded strings","main":"lib/libbase64.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git://github.com/nodemailer/libbase64.git"},"keywords":["base64","mime"],"author":{"name":"Andris Reinman"},"license":"MIT","bugs":{"url":"https://github.com/nodemailer/libbase64/issues"},"homepage":"https://github.com/nodemailer/libbase64","devDependencies":{"chai":"^4.1.2","eslint-config-nodemailer":"^1.2.0","grunt":"^1.0.3","grunt-cli":"^1.2.0","grunt-eslint":"^21.0.0","grunt-mocha-test":"^0.13.3","mocha":"^5.2.0"},"dependencies":{},"gitHead":"eddbb21ed6beeed77812bfb1fba5e1ba96308c95","_id":"libbase64@1.0.3","_npmVersion":"6.1.0","_nodeVersion":"10.3.0","_npmUser":{"name":"andris","email":"andris@kreata.ee"},"dist":{"shasum":"de3023234abeefeb9d49378804c8a94404f5c98c","size":3255,"noattachment":false,"key":"/libbase64/-/libbase64-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/libbase64/download/libbase64-1.0.3.tgz"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/libbase64_1.0.3_1532414632878_0.24886181661457285"},"_hasShrinkwrap":false,"publish_time":1532414633313,"_cnpm_publish_time":1532414633313},"1.0.2":{"name":"libbase64","version":"1.0.2","description":"Encode and decode base64 encoded strings","main":"lib/libbase64.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git://github.com/nodemailer/libbase64.git"},"keywords":["base64","mime"],"author":{"name":"Andris Reinman"},"license":"MIT","bugs":{"url":"https://github.com/nodemailer/libbase64/issues"},"homepage":"https://github.com/nodemailer/libbase64","devDependencies":{"chai":"^4.1.2","eslint-config-nodemailer":"^1.2.0","grunt":"^1.0.1","grunt-cli":"^1.2.0","grunt-eslint":"^20.1.0","grunt-mocha-test":"^0.13.3","mocha":"^4.0.1"},"dependencies":{},"gitHead":"f5133f881cdf4f46107e01c109a4f8cb6a6e2f20","_id":"libbase64@1.0.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"andris","email":"andris@kreata.ee"},"dist":{"shasum":"2ff13ffe69b1e40159f49368e30d0dd8bb1635b5","size":3279,"noattachment":false,"key":"/libbase64/-/libbase64-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/libbase64/download/libbase64-1.0.2.tgz"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/libbase64-1.0.2.tgz_1513342206532_0.5182748252991587"},"directories":{},"publish_time":1513342207303,"_hasShrinkwrap":false,"_cnpm_publish_time":1513342207303},"1.0.1":{"name":"libbase64","version":"1.0.1","description":"Encode and decode base64 encoded strings","main":"lib/libbase64.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git://github.com/nodemailer/libbase64.git"},"keywords":["base64","mime"],"author":{"name":"Andris Reinman"},"license":"MIT","bugs":{"url":"https://github.com/nodemailer/libbase64/issues"},"homepage":"https://github.com/nodemailer/libbase64","devDependencies":{"chai":"^4.1.2","eslint-config-nodemailer":"^1.2.0","grunt":"^1.0.1","grunt-cli":"^1.2.0","grunt-eslint":"^20.1.0","grunt-mocha-test":"^0.13.3","mocha":"^4.0.1"},"dependencies":{},"gitHead":"4f92d24a1ea7e361c060b660bc31dc7e8f6f5fad","_id":"libbase64@1.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"andris","email":"andris@kreata.ee"},"dist":{"shasum":"79c0b28222c3f510fe51d19ba465d6eca19211d6","size":3294,"noattachment":false,"key":"/libbase64/-/libbase64-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/libbase64/download/libbase64-1.0.1.tgz"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/libbase64-1.0.1.tgz_1511732334726_0.612858448876068"},"directories":{},"publish_time":1511732335691,"_hasShrinkwrap":false,"_cnpm_publish_time":1511732335691},"1.0.0":{"name":"libbase64","version":"1.0.0","description":"Encode and decode base64 encoded strings","main":"lib/libbase64.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git://github.com/nodemailer/libbase64.git"},"keywords":["base64","mime"],"author":{"name":"Andris Reinman"},"license":"MIT","bugs":{"url":"https://github.com/nodemailer/libbase64/issues"},"homepage":"https://github.com/nodemailer/libbase64","devDependencies":{"chai":"^4.1.2","eslint-config-nodemailer":"^1.2.0","grunt":"^1.0.1","grunt-cli":"^1.2.0","grunt-eslint":"^20.1.0","grunt-mocha-test":"^0.13.3","mocha":"^4.0.1"},"dependencies":{},"gitHead":"9cb52e6e34144a3d4a23a59626c31d220f7f6fcf","_id":"libbase64@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"andris","email":"andris@kreata.ee"},"dist":{"shasum":"5511bdb89895842b9cbc7b9f189fe4b94b215c04","size":3197,"noattachment":false,"key":"/libbase64/-/libbase64-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/libbase64/download/libbase64-1.0.0.tgz"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/libbase64-1.0.0.tgz_1511437924755_0.8411105452105403"},"directories":{},"publish_time":1511437924837,"_hasShrinkwrap":false,"_cnpm_publish_time":1511437924837},"0.2.0":{"name":"libbase64","version":"0.2.0","description":"Encode and decode base64 encoded strings","main":"lib/libbase64.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git://github.com/andris9/libbase64.git"},"keywords":["base64","mime"],"author":{"name":"Andris Reinman"},"license":"MIT","bugs":{"url":"https://github.com/andris9/libbase64/issues"},"homepage":"https://github.com/andris9/libbase64","devDependencies":{"chai":"~1.8.1","grunt":"~0.4.1","grunt-contrib-jshint":"~0.8.0","grunt-mocha-test":"~0.10.0"},"gitHead":"c4545f0f19c52e74991019528b72bc58d8817239","_id":"libbase64@0.2.0","_shasum":"b72ece3c8c5162158ab01c9c73be9498736b29c9","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"andris","email":"andris@kreata.ee"},"dist":{"shasum":"b72ece3c8c5162158ab01c9c73be9498736b29c9","size":3139,"noattachment":false,"key":"/libbase64/-/libbase64-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/libbase64/download/libbase64-0.2.0.tgz"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/libbase64-0.2.0.tgz_1496751807425_0.037411344004794955"},"directories":{},"publish_time":1496751808294,"_hasShrinkwrap":false,"_cnpm_publish_time":1496751808294},"0.1.0":{"name":"libbase64","version":"0.1.0","description":"Encode and decode base64 encoded strings","main":"lib/libbase64.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git://github.com/andris9/libbase64.git"},"keywords":["base64","mime"],"author":{"name":"Andris Reinman"},"license":"MIT","bugs":{"url":"https://github.com/andris9/libbase64/issues"},"homepage":"https://github.com/andris9/libbase64","devDependencies":{"chai":"~1.8.1","grunt":"~0.4.1","grunt-contrib-jshint":"~0.8.0","grunt-mocha-test":"~0.10.0"},"_id":"libbase64@0.1.0","dist":{"shasum":"62351a839563ac5ff5bd26f12f60e9830bb751e6","size":3149,"noattachment":false,"key":"/libbase64/-/libbase64-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/libbase64/download/libbase64-0.1.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"directories":{},"publish_time":1403098038378,"_cnpm_publish_time":1403098038378,"_hasShrinkwrap":false}},"readme":"# libbase64\n\nEncode and decode base64 strings.\n\n## Usage\n\nInstall with npm\n\n    npm install libbase64\n\nRequire in your script\n\n```javascript\nconst libbase64 = require('libbase64');\n```\n\n### Encode values\n\nEncode Buffer objects or unicode strings with\n\n    libbase64.encode(val) → String\n\nWhere\n\n-   **val** is a Buffer or an unicode string\n\n**Example**\n\n```javascript\nlibbase64.encode('jõgeva');\n// asO1Z2V2YQ==\n```\n\n### Wrap encoded values\n\nTo enforce soft line breaks on lines longer than selected amount of characters, use `wrap`\n\n    libbase64.wrap(str[, lineLength]) → String\n\nWhere\n\n-   **str** is a base64 encoded string\n-   **lineLength** (defaults to 76) is the maximum allowed line length\n\n**Example**\n\n```javascript\nlibbase64.wrap('asO1Z2V2asO1Z2V2asO1Z2V2YQ==', 10);\n// asO1Z2V2as\\r\\n\n// O1Z2V2asO1\\r\\n\n// Z2V2YQ==\n```\n\n### Transform Streams\n\n`libbase64` makes it possible to encode and decode streams with `libbase64.Encoder` and `libbase64.Decoder` constructors.\n\n### Encoder Stream\n\nCreate new Encoder Stream with\n\n    const encoder = new libbase64.Encoder([options])\n\nWhere\n\n-   **options** is the optional stream options object\n-   **options.lineLength** (Number) if you want to use any other line length than the default 76\n    characters (or set to `false` to turn the soft wrapping off completely)\n-   **options.skipStartBytes** (Number) Optional. How many bytes to skip from output (default to 0)\n-   **options.limitOutbutBytes** (Number) Optional. How many bytes to return (defaults to all bytes)\n-   **options.startPadding** (String) Optional. Fills first line with provided padding string. Usually goes together with skipStartBytes to get line folding correct.\n\n**Example**\n\nThe following example script reads in a file, encodes it to base64 and saves the output to a file.\n\n```javascript\nconst libbase64 = require('libbase64');\nconst fs = require('fs');\nconst source = fs.createReadStream('source.txt');\nconst encoded = fs.createReadStream('encoded.txt');\nconst encoder = new libbase64.Encoder();\n\nsource.pipe(encoder).pipe(encoded);\n```\n\n### Decoder Stream\n\nCreate new Decoder Stream with\n\n    const decoder = new libbase64.Decoder([options])\n\nWhere\n\n-   **options** is the optional stream options object\n\n**Example**\n\nThe following example script reads in a file in base64 encoding, decodes it and saves the output to a file.\n\n```javascript\nconst libbase64 = require('libbase64');\nconst fs = require('fs');\nconst encoded = fs.createReadStream('encoded.txt');\nconst dest = fs.createReadStream('dest.txt');\nconst decoder = new libbase64.Decoder();\n\nencoded.pipe(decoder).pipe(dest);\n```\n\n## License\n\n**MIT**\n","_attachments":{},"homepage":"https://github.com/nodemailer/libbase64","bugs":{"url":"https://github.com/nodemailer/libbase64/issues"},"license":"MIT"}