Socket
Socket
Sign inDemoInstall

hastebin.js

Package Overview
Dependencies
7
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hastebin.js

A NPM package to post data to hastebin.


Version published
Maintainers
1
Install size
491 kB
Created

Readme

Source

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

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.

FAQs

Last updated on 10 Sep 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc