1.0.2 • Published 8 years ago

pastemd v1.0.2

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

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);
    }
});
1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago