Detalhes do pacote

inputformat-to-jstransformer

jstransformers23.7kMIT1.4.0

Load a JSTransformer from the provided inputFormat.

jstransformer

readme (leia-me)

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

changelog (log de mudanças)

Changelog

v1.4.0: 2019-10-08

  • Update dictionary

v1.3.3: 2019-04-30

  • Add php

v1.3.2: 2018-10-03

  • Add inline-css

v1.3.1: 2018-10-03

  • Add Inky

v1.3.0: 2018-02-17

  • Update Boilerplate
  • Updated dictionary

v1.2.1: 2017-02-09

v1.2.0: 2016-12-26

  • Added ignore packages to adapt for broken JSTransformers

v1.1.10: 2016-12-19

  • Updated dictionary

v1.1.9: 2016-11-12

  • Updated dictionary

v1.1.8: 2016-06-28

  • Updated dictionary

v1.1.7: 2016-06-26

  • Updated dictionary
  • Switch to npm for building the dictionary

v1.1.6: 2015-11-01

  • Updated dictionary
  • Sorted the dictionary

v1.1.5: 2015-09-26

  • Updated dictionary

v1.1.4: 2015-09-26

  • Updated dictionary
  • Switched to semistandard for code style

v1.1.3: 2015-07-23

  • Updated dictionary

v1.1.2: 2015-07-11

  • Fixed to return false when no transformer is found

v1.1.0: 2015-07-08

  • Added .dictionary

v0.0.2: 2015-07-03

  • Updated list

v0.0.1: 2015-07-03

  • Initial release