1.3.2 • Published 5 years ago

hastebin.js v1.3.2

Weekly downloads
560
License
MIT
Repository
github
Last release
5 years ago

hastebin.js

A NPM package to post data to hastebin.

Example Usage

const hastebin = require('hastebin.js');
const haste = new hastebin({ /* url: 'hastebin.com */ });

const link = haste.post('Helllo from hastebin.js!').then(link => console.log(link));
// Will return a link such as https://hastebin.com/sofomuqifo.js

const raw = haste.get('rejocivu').then(raw => console.log(raw));
// Will return the contents of the haste you provide.

Documentation

Hastebin.post

ParamTypeDescription
codestringRequired. The string that you want to post to Hastebin.
extensionstringThe extension that you'd like the file to upload as. If not provided, defaults to js

Hastebin.get

ParamTypeDescription
keystringRequired. The file you'd like to get from Hastebin.
1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.19

5 years ago

1.2.9

5 years ago

1.2.8

5 years ago

1.2.7

5 years ago

1.2.6

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.5

5 years ago

1.0.2

5 years ago

1.0.0

5 years ago

0.9.2

5 years ago

0.9.1

5 years ago

0.8.0

5 years ago

0.7.1

5 years ago

0.7.0

5 years ago

0.6.0

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.1

6 years ago