0.0.1 • Published 7 years ago

outputformat-to-jstransformer v0.0.1

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

outputformat-to-jstransformer

Load the first available JSTransformer from the provided outputFormat.

Build Status Dependency Status NPM version

Installation

npm install outputformat-to-jstransformer

API

(outputFormat)

Returns an array of names of JSTransformers that output the given outputFormat; false if no package is available.

var jstransformer = require('jstransformer')
var outputFormatToTransformer = require('outputformat-to-jstransformer')

var html = outputFormatToTransformer('html')
// => ["jstransformer-jade", "jstransformer-markdown-it", "jstransformer-marked", "jstransformer-marko", "jstransformer-megamark", ...]

.dictionary

The dictionary.json array is also available:

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

Update

To update dictionary.json, run:

npm run build

License

MIT