inputformat-to-jstransformer

1.4.0 • Public • Published

inputformat-to-jstransformer

Load the first available JSTransformer from the provided inputFormat.

Build Status Dependency Status Greenkeeper badge NPM version

Installation

npm install inputformat-to-jstransformer

API

(inputFormat)

Returns the first package available to process the given inputFormat; false if no package is available.

var jstransformer = require('jstransformer')
var inputFormatToTransformer = require('inputformat-to-jstransformer')
 
var md = inputFormatToTransformer('md')
// => remarkable, markdown, markdown-it, marko, or supermarked
 
jstransformer(md).render('# Hello World!').body
// => '<h1>Hello World!</h1>'

.dictionary

The dictionary.json array is also available:

var inputFormats = require('inputformat-to-jstransformer').dictionary
if (inputFormats['tiff']) {
  console.log('Input formats of Tiff are supported!')
}

Update

To update dictionary.json, run:

npm run build

License

MIT

/inputformat-to-jstransformer/

    Package Sidebar

    Install

    npm i inputformat-to-jstransformer

    Weekly Downloads

    1,891

    Version

    1.4.0

    License

    MIT

    Unpacked Size

    18.6 kB

    Total Files

    6

    Last publish

    Collaborators

    • calebeby
    • forbeslindesay
    • hemanth
    • robloach
    • stoeffel
    • timothygu