stack-exchange-markdown-retriever

1.1.7 • Public • Published

stack-exchange-markdown-retriever

npm package

NPM Version downloads 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

Package Sidebar

Install

npm i stack-exchange-markdown-retriever

Weekly Downloads

1

Version

1.1.7

License

MIT

Unpacked Size

9.83 kB

Total Files

9

Last publish

Collaborators

  • markrogers