node package manager

stack-exchange-markdown-retriever

Retrieves the markdown for a question or answer on a stack exchange site.

stack-exchange-markdown-retriever

npm package

Build Status Dependency Status Coverage Status Known Vulnerabilities XO code style Gitter

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

NPM