New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

prettier-markdown

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-markdown

Prettier JavaScript code in markdown.

latest
Source
npmnpm
Version
0.1.8
Version published
Maintainers
1
Created
Source

Prettier Markdown

Codecov npm package NPM downloads

Prettier JavaScript code in markdown.

before / after

compare

Usage

yarn global add prettier-markdown
npm install [-g] prettier-markdown

CLI

Run prettier-markdown through the CLI with this script.

prettier-markdown ./**/*.md

# Short command
pmd ./**/*.md

API

If has callback argument, otherwise return a Promise object.

prettierMarkdown(markdownFile [,options] [, callback])

const prettierMarkdown = require('prettier-markdown');

prettierMarkdown('./foo.md', function(err, msg) {
  console.log(msg);
});

// promise
const promise = prettierMarkdown(
  './foo.md',
  {
    /* options */
  }
);
promise.then(msg => console.log);

Options

TODO

Keywords

prettier

FAQs

Package last updated on 07 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts