stack-exchange-markdown-retriever
v1.1.7
Published
Retrieves the markdown for a question or answer on a stack exchange site.
Downloads
6
Maintainers
Readme
stack-exchange-markdown-retriever
Retrieves the markdown for a question or answer on a stack exchange site.
Installation
Installation is easiest through npm:
npm install stack-exchange-markdown-retriever --save
Usage
stack-exchange-markdown-retriever can be included as a reference.
var stackExchangeMarkdownRetriever = require('stack-exchange-markdown-retriever');
var options = {
site: 'scifi.stackexchange.com',
entityId: 127968
};
stackExchangeMarkdownRetriever.retrieveMarkdown(options, function(markdown){
console.log(markdown);
});
CLI
$ npm install --global stack-exchange-markdown-retriever
$ stack-exchange-markdown-retriever --help
Usage
$ stack-exchange-markdown-retriever [-k <key>] [-a] -s "<site>" <id>
Example
$ stack-exchange-markdown-retriever -s "scifi.stackexchange.com" 127968
License
MIT © Mark Rogers