Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harshdoshi999/paste-share
https://github.com/harshdoshi999/paste-share
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/harshdoshi999/paste-share
- Owner: harshdoshi999
- Created: 2017-08-02T13:58:25.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-02T13:59:21.000Z (over 7 years ago)
- Last Synced: 2024-02-11T11:00:57.150Z (9 months ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#About
NodeJS module to create/share pastes created on PasteShare and returns shortern URL!# Installation
Install via NPM
```js
npm install paste-share --save
```
# Example
i. Create Paste
```js
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
```js
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: [email protected] |
Skype: harshxxx3