1.0.2 • Published 8 years ago
pastemd v1.0.2
pastemd
pastemd is a simple-to-use paste tool that supports Markdown. Simply throw some (ideally, Markdown formatted) data and a password (if you require the ability to later edit/delete your paste) and pastemd will return a human-readable URL.
Install
$ npm install pastemd
Usage
Without a password:
'use strict';
let pastemd = require('pastemd');
pastemd('This is some data!', (error, url) => {
if (error) {
// handle your errors as you do.
} else {
// get your URL here!
console.log(url);
}
});
With a password:
'use strict';
let pastemd = require('pastemd');
pastemd('This is some data!', 'And here is a password!' (error, url) => {
if (error) {
// handle your errors as you do.
} else {
// get your URL here!
console.log(url);
}
});