{"_id":"@binsarjr/tempfilesninja","_rev":"6-3054d38c6c0d8db57c8ace0ca4c6aa16","time":{"created":"2021-12-15T03:32:41.186Z","1.0.1":"2021-12-15T03:32:41.358Z","modified":"2022-04-04T18:53:30.167Z"},"name":"@binsarjr/tempfilesninja","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@binsarjr/tempfilesninja","version":"1.0.1","description":"API Tempfiles.ninja for nodejs","main":"dist/index.js","homepage":"https://github.com/binsarjr/tempfilesninja","repository":{"type":"git","url":"git+https://github.com/binsarjr/tempfilesninja.git"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"author":{"name":"Binsar Dwi Jasuma"},"keywords":["tempfilesninja","tempfile","tempninja","temp"],"license":"ISC","devDependencies":{"typescript":"^4.5.4"},"dependencies":{"got":"^11.8.3"},"types":"./dist/index.d.ts","bugs":{"url":"https://github.com/binsarjr/tempfilesninja/issues"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"a2a15fab4f6ecb868a139694f7aa8d5ac4b24eb9","_id":"@binsarjr/tempfilesninja@1.0.1","_nodeVersion":"16.11.1","_npmVersion":"8.1.3","dist":{"integrity":"sha512-25tC8WQ0IRhd1qdWlKyYnz8C3u1Hm5e+qQB0NPj3+KMKpHsnbNYIggNtsauv47/DxJDKyBJq6oFFQw6dzvtCUA==","shasum":"505cd8b90d898d81c424f52bf137270b057159e0","tarball":"https://registry.npmjs.org/@binsarjr/tempfilesninja/-/tempfilesninja-1.0.1.tgz","fileCount":4,"unpackedSize":4487,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhuWHZCRA9TVsSAnZWagAAy2gP/2YfIUyX64N4aSiP1vjk\nyS9Sq4kMXS5ZpHPJxpY8SvRis5rWYB1s1JWnqGN2bP7ECGn5FCByxXYxXqIq\nxZRCYMV6FMSdGgN9rnzY+6ZVbscPzYiZgNSpj/WttvZEASswpNYP4pa7LTbv\ni7rLtoHTFoL+MWxPX3I6qHK3e7viAJFxmw/8DBAal4NKLJDB0JG0DcqlHU2c\nI0emzgHtwfBSLOvB4arRQVmm8KY/Kfem2r63/nVZoHwnTvflCbW4IhCaRxC4\nX6T+zEQWKi2U4h3iJlu3nXpMF2vijM4CkhvN+i1dR5hg0lJdavbrUIJ6COW0\nBN/G5Nkm/GLWYTyN2Pg7/CZjVuXBjlo8kVDRVaeD021kxD+Zr53hu2UG22hf\nHJqEZA7UJRufH2qwIdGMWt8yGnSIslnkwoYdStzpodyKYFkWqBlgcVlXMhYD\nFcF/xyHp58WHpMr6vBh6uCv++KvchXjQGd8YF+m5WgcZePxpi0KQCKOoWDRi\npw+HuX8akUFJ1AFQXhy+XgVHntWpKntAZfRE/688XrlmJj5B2FXg73Xw7wRN\ntvhn9MUt9IjohEfP/edkPOZuYFMHWgW5QETBCQ48fFnbneu0nsQSwfZj9li6\njOna6svt60l5ASGwWHpsITSH1GS9eU4ieuT4vzuHpuflZ5KT29CxXKO/wfJx\nhDS0\r\n=ZU6B\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDi5KyGYGgkmmYsaEVX8W5c4N8kITvLYclUW5ZnOV8IOQIhAJJI+RIW1OvemULpSHBMzUwjJPRSYJbcXXIWFkypEZmI"}]},"_npmUser":{"name":"binsarjr","email":"binsarjr121@gmail.com"},"directories":{},"maintainers":[{"name":"binsarjr","email":"binsarjr121@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tempfilesninja_1.0.1_1639539161223_0.8670387478666375"},"_hasShrinkwrap":false}},"maintainers":[{"name":"binsarjr","email":"binsarjr121@gmail.com"}],"description":"API Tempfiles.ninja for nodejs","homepage":"https://github.com/binsarjr/tempfilesninja","keywords":["tempfilesninja","tempfile","tempninja","temp"],"repository":{"type":"git","url":"git+https://github.com/binsarjr/tempfilesninja.git"},"author":{"name":"Binsar Dwi Jasuma"},"bugs":{"url":"https://github.com/binsarjr/tempfilesninja/issues"},"license":"ISC","readme":"# API Tempfiles.ninja\n\n## Instalation \nusing npm\n```\nnpm i @binsarjr/tempfilesninja\n```\n\nusing yarn\n```\nyarn add @binsarjr/tempfilesninja\n```\n\n## Example\n\n```ts\nimport fs from 'fs'\nimport Tempninja from '@binsarjr/tempfilesninja'\n\n// Upload file\nTempninja.upload(fs.readFileSync('path/to/file'), 'custom filename').then(async (resp) => {\n    console.log(resp)\n    console.log(Tempninja.view(resp.id, resp.password))\n    console.log(await Tempninja.metadata(resp.id, resp.password))\n    console.log(await Tempninja.remove(resp.id, resp.delete_password))\n})\n\n```","readmeFilename":"README.md"}