0.0.1 • Published 8 years ago
outputformat-to-jstransformer v0.0.1
outputformat-to-jstransformer
Load the first available JSTransformer from the provided outputFormat
.
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
0.0.1
8 years ago