inputformat-to-jstransformer

Load a JSTransformer from the provided inputFormat.

MIT 21 个版本
安装
npm install inputformat-to-jstransformer
yarn add inputformat-to-jstransformer
pnpm add inputformat-to-jstransformer
bun add inputformat-to-jstransformer
README

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

版本列表
1.4.0 2019-10-08
1.3.3 2019-04-30
1.3.2 2018-10-04
1.3.1 2018-10-03
1.3.0 2018-02-19
1.2.1 2017-02-09
1.2.0 2016-12-26
1.1.10 2016-12-20
1.1.9 2016-11-13
1.1.8 2016-06-28
1.1.7 2016-06-26
1.1.6 2015-11-01
1.1.5 2015-09-26
1.1.4 2015-08-18
1.1.3 2015-07-23
1.1.2 2015-07-12
1.1.1 2015-07-10
1.1.0 2015-07-08
1.0.0 2015-07-08
0.0.2 2015-07-03
0.0.1 2015-07-03