1.0.4 • Published 7 years ago

paste-share v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

#About NodeJS module to create/share pastes created on PasteShare and returns shortern URL!

Installation

Install via NPM

npm install paste-share --save

Example

i. Create Paste

var paste = require('paste-share');

var title = "What is Lorem Ipsum?";
var content = "Something about lorem ipsum...";
paste.create(title, content, function(err, url){
    console.log(url);
});

ii. Get Paste Content using Token ID

var paste = require('paste-share');

var token = 'ee2855561f36181b247b02f399d76435be695d6a';
paste.get(token, function(err, res){
	console.log(res);
});

Any issue or want more features? Contact me!

This module has been tested under limited scenarios. If you find any issue please feel free to report via one of the below platforms:

Github: paste-share | Email: harshdoshi999@gmail.com | Skype: harshxxx3