{"_id":"@agc93/privatebin","_rev":"3-c3b7293a9507dc659556df57e5546e9d","name":"@agc93/privatebin","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@agc93/privatebin","version":"0.0.1","description":"A super-simple PrivateBin upload library","main":"./dist/index.js","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc -p ."},"author":{"name":"agc93"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/agc93/privatebin.git"},"devDependencies":{"@types/bs58":"^4.0.1","@types/node":"^14.10.1","@types/pako":"^1.0.1"},"dependencies":{"bs58":"^4.0.1","axios":"^0.20.0","pako":"^1.0.11"},"bugs":{"url":"https://github.com/agc93/privatebin/issues"},"homepage":"https://github.com/agc93/privatebin#readme","gitHead":"098f02c3648273c79dd03a2a3e4b319cf560af90","_id":"@agc93/privatebin@0.0.1","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-20tbXh+beo3YUqb0jidT9zDt1i2cOJKfQW/XZMCjYqkGmDaigcCvgGBvVMwO040FBa0xKU0KHKuiJfihqA++og==","shasum":"15452e9f56390180c134705e3dd582ec652797c9","tarball":"https://registry.npmjs.org/@agc93/privatebin/-/privatebin-0.0.1.tgz","fileCount":13,"unpackedSize":24912,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYEr+CRA9TVsSAnZWagAAjnoP/j5GCd8P2RDDMW7/UJLM\nzN/KWUcJLJgi1NusgkDP+XdMZSYWT9+GwcWDKKHlQqcJRi3jzIEL95Rt0oOD\nJBPIbq1EJ2ZnYV2ne6YRIGO/P0iNrJ0c6QEmSgyTsSYCPqSXW9X2Xo9pwIcG\nFDZ4ltP4eAnFbUyhfzrmqGNOrF54CuqCwafVjB50jf9G4RuzvPsrMOSJ6olJ\n1T7Xvzseh0BnyyG2G7yh3JFXk+f2vyRJmhXA6YqVconGfs8sTdeeOhunTBiP\n62mVM5yvrVYbQJtbUh2/jeQ0ozZX/8Mik5EYJsb0cCuahIJX/V+vf7G/O2zY\nWWIUrrmBkYHubzcRyp8OEws3A8sKm8LYv8zTiXz9OHZGLMAfkv2Ok8Ffn3p0\njq29tizWcubHFuMyacE9+9SlkBmD0AwkcOieWbrKlG2BWhqUDtkthDrkSvNg\nxM8x16xpcd2DaowtYwIs2tuM7TQpTP57KL6pEGcv3q2JIyz6lAKGrphW3s4V\n3NsYAiQkTKPLIl8tuZreDqojSGfZ+Pcl2mwTt0iKgXnsp0kRg8+jrTNCggsd\nk3g2K/7pc1uLUDimR5t7XCjY0dXzxwHcmhz6fTudDSAVf0Hao7+PRwU0CzTG\nLP00IPc3b7IiU11+L1IIXUX428t5b9v83lpBR0N/DvCJNAqUiKorgRAjWrW3\n4/C4\r\n=gYxp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBVTsnHunU9SoisOq6oxnZjXAFGUSNHZL2jC/hJ9R4zcAiAr4WQ/7yI8KPLFFCZYNvn7+iAARRfNKZaxJe2FnPQofw=="}]},"maintainers":[{"name":"agc93","email":"alistair@agchapman.com"}],"_npmUser":{"name":"agc93","email":"alistair@agchapman.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/privatebin_0.0.1_1600146174329_0.7839453124919522"},"_hasShrinkwrap":false},"0.0.2":{"name":"@agc93/privatebin","version":"0.0.2","description":"A super-simple PrivateBin upload library","main":"./dist/index.js","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc -p ."},"engines":{"node":">=12.9.0"},"author":{"name":"agc93"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/agc93/privatebin.git"},"devDependencies":{"@types/bs58":"^4.0.1","@types/node":"^14.10.1","@types/pako":"^1.0.1"},"dependencies":{"bs58":"^4.0.1","axios":"^0.20.0","pako":"^1.0.11"},"bugs":{"url":"https://github.com/agc93/privatebin/issues"},"homepage":"https://github.com/agc93/privatebin#readme","gitHead":"7c72632c1f1d6881ee054b9e62f81afb156117cd","_id":"@agc93/privatebin@0.0.2","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-qyRe+eaEipSu+cOhzMIVvWlG/sXtqc/Zt6xEIvwSRx7MejcPTy5YZhorfjP/sS73K0sm4HKi7pqhXwefhkmcCQ==","shasum":"c825329b5c1709b7719e9b7f9bb070bfbeebc0f9","tarball":"https://registry.npmjs.org/@agc93/privatebin/-/privatebin-0.0.2.tgz","fileCount":13,"unpackedSize":25136,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYE+oCRA9TVsSAnZWagAA6rsP/ie5MoAsgxpQoWGPhODP\nmU/gxX2ilA4eJc8bw7ktBQXYUa8k1C4V8Mo05QiKiDA36s7IFnG1H0avFzpH\nZtOhxnhfMjGe1xYMK8QJcgeDlr6DPf3UqsKyZk+rNb+cyWTi+Uzjr9cPz5qp\nhMbmTuaOoH/vWfS966DOAplEYpOronBR2XktQglGUXAyYR3w3JetNwzXLDcU\n1vnKN68anZKlyYP3DCfotXjRdRyb2N/CRUbcMBrfXLBlAaQy0KSSPT47xaHL\ntezDv3jwJot/ysikisZ5Ix/KiPzkZKWSv+it7chZsBCj1ZnqhDZatbJR21q1\nvf1d85V2VIgwxl/084WzTC/e17tnvr3ESq5262cpWKtjEKD9c5sPYCphScNv\nqA7k1Z9tfcZRe00IKB1LKigZG0+3KxVy07iyhZI50OhmlXxmQPP1jqT6uJBb\ngiXG6r4JlrmZyFBYy1N33gIdoVqZK0IfZWevNHxPvgpWH7XRFWUQRySxd9bW\nL5E01kvLrA4vipV9ZvvfZTE80ycio36upj4t70nf9C+imjOLoxotBNYzEYBG\nPkD31kHMd+M6HoY5hoAYQ6EzXKMi2x8Ah+tWpcevFa1vVyloaSe6GFjYkJtC\nlH4ABDpNBV/e6Dwm+x8yIQyPf781dsCA+iuqpYxWyPd41oWuumdjzdWk57bf\nZdaI\r\n=kxl0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3E73+BnrX6Omo0+JsQyRj5c4fBmn26FZd2JPn86ez5gIhAI2kg4tVUBI8i4YSn8FrC9+WwAPBHYB7owVCgjKeVILd"}]},"maintainers":[{"name":"agc93","email":"alistair@agchapman.com"}],"_npmUser":{"name":"agc93","email":"alistair@agchapman.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/privatebin_0.0.2_1600147368273_0.3321320011085396"},"_hasShrinkwrap":false},"0.0.3":{"name":"@agc93/privatebin","version":"0.0.3","description":"A super-simple PrivateBin upload library","main":"./dist/index.js","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc -p ."},"engines":{"node":">=12.9.0"},"author":{"name":"agc93"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/agc93/privatebin.git"},"devDependencies":{"@types/bs58":"^4.0.1","@types/node":"^16.6.2","@types/pako":"^1.0.3","typescript":"^4.6.3"},"dependencies":{"axios":"^0.26.1","bs58":"^5.0.0","pako":"^2.0.4"},"bugs":{"url":"https://github.com/agc93/privatebin/issues"},"homepage":"https://github.com/agc93/privatebin#readme","gitHead":"aebbc18af1d83489ae478ce75c8db2f97df1008d","_id":"@agc93/privatebin@0.0.3","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-QL8VkIcsyHYt/+RI9hdMzUlPLd+foTbXxVR/SGLUeOJ4mJqceQX3dxyPo6IZDfEeSbBIm+ykZbG3+M6TqGzB5g==","shasum":"b87b84110e21325292d9ee6e5c886b5aaee043e5","tarball":"https://registry.npmjs.org/@agc93/privatebin/-/privatebin-0.0.3.tgz","fileCount":13,"unpackedSize":25396,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCO0fqUvroHcrmTdQ1bErv/8CeG7BXyqV8gOwM+qun3wAIgBIESC1xS9ZOx7MSxCcvlaE5clXArQ8DcdUt74M1fQPQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJib+yjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp1QRAAjMZATV1VnclVkGiNp5l/pDeSM+cQtU+rHGtqCB3ryNe8jlaW\r\n1diTyyGTtGPuLZQ0+3jsKSDpOL5+y+WDYtouuft0IOhctlKvY0uPQjpuEIgZ\r\nGMOJ+bwUM5pI9yoLZomkEY5PJOmUZgmKn5+dQWjjZNBZBc+mCFphG2lITrPe\r\nN9UC3I8znHUEYLKKKuo30PoRrVydJs88WLEG9KMC0RczeaVwpGYuVdy0BT+X\r\nCPsr5zMtCdvTOJmTkpQqpab5phd1C++5TS9bjH4xx8AEP3xSTfq9SrNoIUdm\r\nA0g0FoJ3K4w0UF1sCsKoZMEEMa1Wsn1XZ6TANeFisEK0vQN0gITrg2Ak6dSj\r\nQOUbhZrK1Fc6wulr8ymP0A6syYW0T1nejzI5+TKmJDTy1385Kq+0jjbKQHDe\r\n+2Fth+UQeeaWmgTkbTIaxVcWX713JeyfqrLbys+OZENs2JKMM3czVDbCfBB/\r\nbch/oqIzIhdJkeHqvLMpQc+L/RQfF6wu1ExWpiC+3G5r0lxp7w182bmc5jsw\r\nImWGuXIt8Ti+HsxHMCBaq/6RRcgJk28SF9fh0bVWSZACJKut6RcAGtrPc6LC\r\nWma0nGKCcgfB0ptSdkblbLKGvb8+B65xou35Bzoc/BKzQQ7AQqiGjwYKJAGR\r\njRorVmM1HeghaplFF/AuyqqsVrHfA6KhNXE=\r\n=TCte\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"agc93","email":"alistair@agchapman.com"},"directories":{},"maintainers":[{"name":"agc93","email":"alistair@agchapman.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/privatebin_0.0.3_1651502243635_0.02559251823613784"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-15T05:02:54.291Z","0.0.1":"2020-09-15T05:02:54.426Z","modified":"2022-05-02T14:37:23.878Z","0.0.2":"2020-09-15T05:22:48.478Z","0.0.3":"2022-05-02T14:37:23.775Z"},"maintainers":[{"name":"agc93","email":"alistair@agchapman.com"}],"description":"A super-simple PrivateBin upload library","homepage":"https://github.com/agc93/privatebin#readme","repository":{"type":"git","url":"git+https://github.com/agc93/privatebin.git"},"author":{"name":"agc93"},"bugs":{"url":"https://github.com/agc93/privatebin/issues"},"license":"MIT","readme":"# PrivateBin Upload Library\n\nThis library is a super-simple helper to upload content to a PrivateBin server. There's already [an excellent CLI available](https://www.npmjs.com/package/@pixelfactory/privatebin) so this is specifically intended for use in projects that want to include PrivateBin uploads.\n\n> Note that this library only supports PrivateBin 1.3+ (aka format version 2)\n\n## Usage\n\nIn short, create a new `PrivateBinClient` and call `uploadContent` with your content and provide any options you want (sane-ish defaults will be used for any missing options):\n\n```typescript\nimport {PrivateBinClient} from '@agc93/privatebin'\n//...\nvar client = new PrivateBinClient(\"https://privatebin.net/\");\nvar result = await client.uploadContent('This is a test for `some` **content**', {uploadFormat: 'markdown', expiry: '5min'});\nconsole.log(JSON.stringify(result));\nreturn result;\n```\n\nThere's also a `getPasteUrl` method included for convenience if you're just after the final shareable link\n\n```typescript\nimport {getPasteUrl} from '@agc93/privatebin';\n//...\nconsole.log(getPasteUrl(resultFromClient));\n```\n\n> **Important**: The `PrivateBinClient` defaults to creating expiring pastes! If you want to create permanent pastes, make sure to set the `expiry` to `never`\n\n\n## Changelog\n\n- 0.0.1: Initial release\n- 0.0.2: Add compat for Node 12.9+\n- 0.0.3: Bump dependencies","readmeFilename":"README.md"}