{"_id":"pastebin-ts","_rev":"5-842581a16d1950936337ac1da3c32b00","name":"pastebin-ts","dist-tags":{"latest":"1.3.0"},"versions":{"1.0.0":{"name":"pastebin-ts","version":"1.0.0","description":"pastebin-ts ===","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"node_modules/typescript/bin/tsc","exec":"node_modules/typescript/bin/tsc && node test.js","clean":"rimraf coverage dist tmp","lint":"tslint -t stylish --project \"tsconfig.json\"","pretest":"npm run lint","test":"npm run test-only","test-only":"jest --coverage","test:watch":"jest --watch --coverage"},"keywords":["pastebin"],"repository":{"type":"git","url":"git+https://github.com/j3lte/pastebin-ts.git"},"bugs":{"url":"https://github.com/j3lte/pastebin-ts/issues"},"author":{"name":"Jelte Lagendijk","email":"jwlagendijk@gmail.com"},"license":"MIT","dependencies":{"fs-readfile-promise":"^3.0.1","lodash":"^4.17.10","pjson":"^1.0.9","request":"^2.88.0","request-promise-native":"^1.0.5","when":"^3.7.8","xml2js":"^0.4.19"},"devDependencies":{"@types/fs-readfile-promise":"^3.0.0","@types/jest":"^23.3.2","@types/lodash":"^4.14.116","@types/node":"^10.5.4","@types/request":"^2.47.1","@types/request-promise-native":"^1.0.15","@types/typescript":"^2.0.0","@types/xml2js":"^0.4.3","jest":"^23.6.0","rimraf":"^2.6.2","ts-jest":"^23.1.4","tslint":"^5.11.0","tslint-microsoft-contrib":"^5.2.1","tsutils":"^3.0.0","typescript":"^3.0.3"},"gitHead":"2f84510f27cd903009c374028860015be2ba6094","homepage":"https://github.com/j3lte/pastebin-ts#readme","_id":"pastebin-ts@1.0.0","_npmVersion":"6.4.0","_nodeVersion":"8.9.1","_npmUser":{"name":"j3lte","email":"jwlagendijk@gmail.com"},"dist":{"integrity":"sha512-KKyx+DK6lRRhnXHsP23lf32dbIJ8i91kb58nXXiOrRB0N84sA4PwQRg2k/sQWurbOQskWDIosS3BIM4wk+/Tjg==","shasum":"5ed0bc65f63df582b8a80922041fc1063d3ebeec","tarball":"https://registry.npmjs.org/pastebin-ts/-/pastebin-ts-1.0.0.tgz","fileCount":23,"unpackedSize":175207,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbmmmOCRA9TVsSAnZWagAAo0kQAIgfz7lSBxjiKMu+qF+N\nBIDXvoZ8QpEgYYZlgpUYT+lb74n36hFWcTdcekP7nsx4fN7hVaP1HB2PEHfT\nvTghlUkVgy0YeF5ivGcA25mL+J/slj5Xx1UcSKNua2R09Qf4lG2++4mLNd+0\nVj/ME6WRAQNtMfigmRQZZ3BeM06ehn0Ae8WW3Zzw0v/MH2wx56KlxVKpGjQN\n8XqfXWnoQFacu0oMGHyq50TwCdbkoPhY4Bo8Trw84kTjBq2Z0ve8RX/ILh/o\nQIyfSqCEpvEgPFQiXYN/w/f0J2PY7Jg1hI9Iv1sd6jmuWRlwHxfRuFI2OE6B\nlJnel2ZFmgvLKWtYW2N1rHjmP2Ik7L2VJsv4eR+GK+riQnraLuEcElsLIOxQ\neqL8nDEgVwlJ3KwWsj2C/LS5wmMq73vPupowRp7st3zCP6zTXyU2U158EGkX\neaBeL5zd0HkFgni8JEdEpJqAwUjF2pZkUDcw/+fdum23NbxGPDa8kYGEZwog\nfwQakn1pqWFzaTWI6A2UG0dwuk+n+15TQlSa02tvVnz/z+Apm+6BNuag2riJ\nEafcFBjNhHLyuLBzs2ds6eFvkzNDt9eunPhN0hkii9nb+QAJ1CpQh8D6WL/b\nmk3b4S+3CN1rTgqplumR+YIblMKUwVs7dT0ZAliNV4MfYdDQ5BQSdMZSROxm\n4JJX\r\n=P4Ho\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1wVFhNyf3WeSFHrvwOg5OqA7gsUTUts38lqIBV/uNSQIgS0LnvaHowsK7HgwSMLy8hjfEs+FfQ7pwXpy/a45OIKM="}]},"maintainers":[{"name":"j3lte","email":"jwlagendijk@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pastebin-ts_1.0.0_1536846221668_0.13585958326132008"},"_hasShrinkwrap":false,"deprecated":"Please use 'pastedeno' as your new Pastebin client"},"1.2.0":{"name":"pastebin-ts","version":"1.2.0","description":"pastebin-ts ===","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"node_modules/typescript/bin/tsc","exec":"node_modules/typescript/bin/tsc && node test.js","clean":"rimraf coverage dist tmp","lint":"tslint -t stylish --project \"tsconfig.json\"","pretest":"npm run lint","test":"npm run test-only","test-only":"jest --coverage","test:watch":"jest --watch --coverage"},"keywords":["pastebin"],"repository":{"type":"git","url":"git+https://github.com/j3lte/pastebin-ts.git"},"bugs":{"url":"https://github.com/j3lte/pastebin-ts/issues"},"author":{"name":"Jelte Lagendijk","email":"jwlagendijk@gmail.com"},"license":"MIT","dependencies":{"fs-readfile-promise":"^3.0.1","lodash":"^4.17.10","pjson":"^1.0.9","request":"^2.88.0","request-promise-native":"^1.0.5","when":"^3.7.8","xml2js":"^0.4.19"},"devDependencies":{"@types/fs-readfile-promise":"^3.0.0","@types/jest":"^23.3.2","@types/lodash":"^4.14.116","@types/node":"^10.5.4","@types/request":"^2.47.1","@types/request-promise-native":"^1.0.15","@types/typescript":"^2.0.0","@types/xml2js":"^0.4.3","jest":"^23.6.0","rimraf":"^2.6.2","ts-jest":"^23.1.4","tslint":"^5.11.0","tslint-microsoft-contrib":"^5.2.1","tsutils":"^3.0.0","typescript":"^3.0.3"},"gitHead":"8b658b246edbcee05b6bf08eab96c72bf90606f6","homepage":"https://github.com/j3lte/pastebin-ts#readme","_id":"pastebin-ts@1.2.0","_nodeVersion":"10.16.3","_npmVersion":"6.13.2","dist":{"integrity":"sha512-C3f2PaJPurz2uDb7EXpMOOG1cy9pnEk2VbUqcbQqovyfAhDimtQ42zC8JMj87GfAT/RSN2NppvR6Rzz1f0fRBg==","shasum":"0e06fba720575029266dc5d5a6bdffde7e303961","tarball":"https://registry.npmjs.org/pastebin-ts/-/pastebin-ts-1.2.0.tgz","fileCount":28,"unpackedSize":65662,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeHCraCRA9TVsSAnZWagAAk4MP/jboL3WwbWGuESMaXYoN\nkOxLTq1lOwlUTYh3yIXoCT51SVR5BkOQ+A/kevdhysUCEN3h2V/c219vs9FR\npJU++bcW+a+JierwStx9vwVcaPpPQzcGEi3wfcXWZPtp9TOIxOoW+LdDlCRQ\nT8tDLnjNj07SVVw9WwVIuMPhJXSEeLOR6vQPmx4+08aweGIUbgY7ecyEPv13\nKBGNJopGRGmP11XGZABalZAkQ1zwmsdH1RTQyvakd8+sW2FfRymSzgQ+06EI\nqg/0KzWhM1X7s2i7OCNThk3cP+biWnmbGrtnKZ5QAZFecx0PFqxQPYb6yVjd\nIhO12l1EHSWwWI7RVeYfw81n1gySUPZmS2uTVopV6sFEdLyTBWsc5QE3HQdK\n4rFc0kMwE2ynMc20zSNVgg5nBnB1B/jKcv74LVeBgzx1mMmG0788MGBIFUQI\nUEHpu+g2lbZOpds2/ppmnTMky9w3ZagFRgeNVGZ2skn6bS6FdeAB0kWf3QNz\nU2iN82BAbA26YEoFvhn8YOuSvOmImuUPmol2yyAWbJR7reEYvJ5PfAlQTn76\nFZyd1P0h9PmtmDDrBYT9ccUzdzKOCjnMvKYlYVGxv1oWoUtM1IolCFMR2xkU\nXPsGHgpJBYUaWQcqpXvrwT3AZjVr0ExHyhcJeHWrj6rEU7AtI/YnLqmJrN0a\nRSwx\r\n=PCjF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHFf/pTcWSvde2nc64FY26kPDsTfBnKRcTUwA+q03clpAiEApDiz/YfptO5UOaZ2AbaKDIzadx99d5J76zuSkljgvlM="}]},"maintainers":[{"name":"j3lte","email":"jwlagendijk@gmail.com"}],"_npmUser":{"name":"j3lte","email":"jwlagendijk@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pastebin-ts_1.2.0_1578904282217_0.5749440481287436"},"_hasShrinkwrap":false,"deprecated":"Please use 'pastedeno' as your new Pastebin client"},"1.3.0":{"name":"pastebin-ts","version":"1.3.0","description":"pastebin-ts ===","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"node_modules/typescript/bin/tsc","exec":"node_modules/typescript/bin/tsc && node test.js","clean":"rimraf coverage dist tmp","lint":"tslint -t stylish --project \"tsconfig.json\"","pretest":"npm run lint","test":"npm run test-only","test-only":"jest --coverage","test:watch":"jest --watch --coverage","docs":"typedoc --out docs src/index.ts","docs-watch":"typedoc --watch --out docs src/index.ts"},"keywords":["pastebin"],"repository":{"type":"git","url":"git+https://github.com/j3lte/pastebin-ts.git"},"bugs":{"url":"https://github.com/j3lte/pastebin-ts/issues"},"author":{"name":"Jelte Lagendijk","email":"jwlagendijk@gmail.com"},"license":"MIT","dependencies":{"fs-readfile-promise":"^3.0.1","lodash":"^4.17.21","pjson":"^1.0.9","request":"^2.88.0","request-promise-native":"^1.0.5","when":"^3.7.8","xml2js":"^0.4.19"},"devDependencies":{"@types/fs-readfile-promise":"^3.0.1","@types/jest":"^28.1.6","@types/lodash":"^4.14.182","@types/node":"^18.0.6","@types/request":"^2.48.8","@types/request-promise-native":"^1.0.18","@types/typescript":"^2.0.0","@types/xml2js":"^0.4.11","jest":"^28.1.3","rimraf":"^3.0.2","ts-jest":"^28.0.7","tslint":"^6.1.3","tslint-microsoft-contrib":"^6.2.0","tsutils":"^3.21.0","typedoc":"^0.23.8","typescript":"^4.7.4"},"gitHead":"d2265cbae76d49eba1e7b2d73d6298bbbe407785","homepage":"https://github.com/j3lte/pastebin-ts#readme","_id":"pastebin-ts@1.3.0","_nodeVersion":"18.5.0","_npmVersion":"8.13.2","dist":{"integrity":"sha512-TdI38rOZAvjzcS+LHrf19L4WKhbjSv414cXjHp9zbdPozHBQ4lT7iCUBijo9WYBQ+N4sNvaqs92GzU1DsyLbKw==","shasum":"f9632c83d4ec5b7a6ad8f8851a4bcbe0f36ac657","tarball":"https://registry.npmjs.org/pastebin-ts/-/pastebin-ts-1.3.0.tgz","fileCount":25,"unpackedSize":65400,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGEuzGPzV7ZOLvwjPgF5cmDHd+ASAZxennTwLi1iv9LwIhALVKKiIogrxHjyVR9d5+I4hFkMqPJtcaYtnyrQ35+7ag"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2Z5jACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmquXQ//Rv8XAyODJoa8g8FZPD7pRpxjoAgugo0H15q+3WSqo8+OQDwx\r\n9jvPtwlQBHaGu+sBLrHVF1QsLgh3Nwwu2q1hnAfZEIl9/Y/InWUIzqab3C/q\r\n00BAUGzdQJn+nTZwC/e2JL0Y5v2jFJgf/Td11Ty8GmrpQb3Vq3ivmSmB4Uvk\r\nLEhGk87XupFsy7cwE3MJXFTFmoLKQc8BsDjfP6374EiQLTo2IJkTuIUIZgoH\r\nB+cMcUJXhMYuvaG7ruhtr7dzWDJMcIHIQ9owLEBrst0ymor9frTwTVZqLr4e\r\nyo61+mdDQCKw1SmJNFPqJ7Bru+AkMuLJ9RXjAlxYmM58InzilILVvVbWtyaF\r\nN8ASlqiXy8QqF75iJGq9FhUdxpcl3UhmRfi50XdOh+T9ITDg6DEjl/ydC9vz\r\nYgPriZqJ3R5lZXnvMLjrBcHs1FPylljX4qM78qTMRVDed0WXaDMhIaAjlUVS\r\nxEvEIWlsvkNdPZyjEh8uXcJ1FKaGnVttX3Qf5xE8YIbdvlaF5uy3eu4zLPry\r\nMFYeNLXYEy2TW6Zqy8dVrSzDWtDGXVSk/jX4g6Gjn85JAUKhioiHtYm4Cl4c\r\n6xqf0z74KQpOQhLf+JIiP2XbIOhhe4b+NWAJrZmUUBWIK24ryiba0PPgpLYs\r\nA9ZbRVjpETzdbsvnoBRtk55oiy4Gv3hTbHo=\r\n=lZCK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"j3lte","email":"jwlagendijk@gmail.com"},"directories":{},"maintainers":[{"name":"j3lte","email":"jwlagendijk@gmail.com"},{"name":"jeltemx","email":"jelte.lagendijk@mendix.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pastebin-ts_1.3.0_1658429027579_0.30932622434088075"},"_hasShrinkwrap":false,"deprecated":"Please use 'pastedeno' as your new Pastebin client"}},"time":{"created":"2018-09-13T13:43:41.667Z","1.0.0":"2018-09-13T13:43:41.804Z","modified":"2023-11-22T04:14:19.154Z","1.2.0":"2020-01-13T08:31:22.415Z","1.3.0":"2022-07-21T18:43:47.781Z"},"maintainers":[{"name":"j3lte","email":"jwlagendijk@gmail.com"},{"name":"jeltemx","email":"jelte.lagendijk@mendix.com"}],"description":"pastebin-ts ===","homepage":"https://github.com/j3lte/pastebin-ts#readme","keywords":["pastebin"],"repository":{"type":"git","url":"git+https://github.com/j3lte/pastebin-ts.git"},"author":{"name":"Jelte Lagendijk","email":"jwlagendijk@gmail.com"},"bugs":{"url":"https://github.com/j3lte/pastebin-ts/issues"},"license":"MIT","readme":"pastebin-ts\n===\n\n![NPM](https://img.shields.io/npm/l/pastebin-ts)\n![Libraries.io dependency status for GitHub repo](https://img.shields.io/librariesio/github/j3lte/pastebin-ts)\n[![master](https://github.com/j3lte/pastebin-ts/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/j3lte/pastebin-ts/actions/workflows/ci.yml)\n[![npm version](https://badge.fury.io/js/pastebin-ts.svg)](http://badge.fury.io/js/pastebin-ts)\n![npm](https://img.shields.io/npm/dm/pastebin-ts)\n[![Code Climate](https://codeclimate.com/github/j3lte/pastebin-ts/badges/gpa.svg)](https://codeclimate.com/github/j3lte/pastebin-ts)\n[![codecov](https://codecov.io/gh/j3lte/pastebin-ts/branch/master/graph/badge.svg?token=P2RD2WO8HU)](https://codecov.io/gh/j3lte/pastebin-ts)\n\nTypescript version of the Pastebin API client\n\n## Features\n\n* getPaste : get a raw paste\n* createAPIuserKey : get a userkey for the authenticated user\n* listUserPastes : get a list of the pastes from the authenticated user\n* getUserInfo : get a list of info from the authenticated user\n* listTrendingPastes : get a list of the trending pastes on Pastebin\n* createPaste : create a paste\n* createPasteFromFile : read a file (UTF8) and paste it\n* deletePaste : delete a paste created by the user\n\n\n## Example\n\n```js\nconst PastebinAPI = require('pastebin-ts');\n\nconst pastebin = new PastebinAPI({\n    'api_dev_key' : 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',\n    'api_user_name' : 'PastebinUserName',\n    'api_user_password' : 'PastebinPassword'\n});\n\npastebin\n    .createPasteFromFile({\n        'file': './uploadthistopastebin.txt',\n        'title': 'pastebin-js test'\n    })\n    .then((data) => {\n        // we have successfully pasted it. Data contains the id\n        console.log(data);\n    })\n    .catch((err) => {\n        console.log(err);\n    });\n```\n","readmeFilename":"README.md"}