Pastee -- A simple Paste.ee API
Node.js (Install)
Requirements:
- Node.js
- npm (Node.js package manager)
npm install pastee
Super simple to use
Pastee is designed to be easy to submit and retrieve pastes.
var Pastee = ; var paste = 'api key or not set for public'; // Submit a normal pastepaste; // Retrieve a normal pastepaste;
(See example.js for more examples!)
Extra options
The following fields can be passed into an object for the first argument of paste.submit
- paste
- description
- language (syntax highlighting, see the page source of paste.ee for valid options - list coming soon!)
- encrypt (encrypts the paste and returns the randomly generated key)
- expire (expiration time in seconds, or a Date object of when it should expire)