# inputformat-to-jstransformer

> Load a JSTransformer from the provided inputFormat.

Latest version **1.4.0** (published 2019-10-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install inputformat-to-jstransformer
pnpm add inputformat-to-jstransformer
yarn add inputformat-to-jstransformer
bun add inputformat-to-jstransformer
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2019-10-08 |
| First published | 2015-07-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 1 |
| Unpacked size | 18.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | JSTransformers Team |
| Maintainers | calebeby, forbeslindesay, hemanth, robloach, stoeffel, timothygu |
| Keywords | jstransformer |

## Links

- npm: https://www.npmjs.com/package/inputformat-to-jstransformer
- Repository: https://github.com/jstransformers/inputformat-to-jstransformer
- Homepage: https://github.com/jstransformers/inputformat-to-jstransformer#readme
- Issues: https://github.com/jstransformers/inputformat-to-jstransformer/issues
- npm.io page: https://npm.io/package/inputformat-to-jstransformer

## Dependencies (1)

- [require-one](https://npm.io/package/require-one.md) ^1.0.3

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.4.0 (latest) — 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
- … 6 more at https://npm.io/package/inputformat-to-jstransformer/versions

## README

# inputformat-to-jstransformer

Load the first available [JSTransformer](https://github.com/jstransformers/jstransformer) from the provided `inputFormat`.

[![Build Status](https://img.shields.io/travis/jstransformers/inputformat-to-jstransformer/master.svg)](https://travis-ci.org/jstransformers/inputformat-to-jstransformer)
[![Dependency Status](https://img.shields.io/david/jstransformers/inputformat-to-jstransformer/master.svg)](http://david-dm.org/jstransformers/inputformat-to-jstransformer)
[![Greenkeeper badge](https://badges.greenkeeper.io/jstransformers/inputformat-to-jstransformer.svg)](https://greenkeeper.io/)
[![NPM version](https://img.shields.io/npm/v/inputformat-to-jstransformer.svg)](https://www.npmjs.org/package/inputformat-to-jstransformer)

## Installation

    npm install inputformat-to-jstransformer

## API

### `(inputFormat)`

Returns the first package available to process the given `inputFormat`; `false` if no package is available.

```js
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`](dictionary.json) array is also available:

``` js
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

---
_Source: https://npm.io/package/inputformat-to-jstransformer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
