Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

stack-exchange-markdown-retriever

1.1.6 • Public • Published

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

install

npm i stack-exchange-markdown-retriever

Downloadsweekly downloads

12

version

1.1.6

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability