outputformat-to-jstransformer

0.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i outputformat-to-jstransformer

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • calebeby