hastebin.js
A NPM package to post data to hastebin.
Example Usage
const hastebin = ;const haste = /* url: 'hastebin.com */ ; const link = haste;// Will return a link such as https://hastebin.com/sofomuqifo.js const raw = haste;// Will return the contents of the haste you provide.
Documentation
- Hastebin
- instance
- .post(code, extension) ⇒
{Promise<Pending>}
- .get(key) =>
{Promise<Pending>}
- .post(code, extension) ⇒
- instance
Hastebin.post
Param | Type | Description |
---|---|---|
code | string |
Required. The string that you want to post to Hastebin. |
extension | string |
The extension that you'd like the file to upload as. If not provided, defaults to js |
Hastebin.get
Param | Type | Description |
---|---|---|
key | string |
Required. The file you'd like to get from Hastebin. |