inputformat-to-jstransformer
Load the first available JSTransformer from the provided inputFormat
.
Installation
npm install inputformat-to-jstransformer
API
Returns the first package available to process the given input format. Will return null
if no package is available to process the given input format.
var jstransformer = require('jstransformer')
var inputFormatToTransformer = require('inputformat-to-jstransformer')
var md = inputFormatToTransformer('md')
var md = jstransformer(md).render('# Hello World!').body
.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