This package has been deprecated

Author message:

Deprecated

tl-transform

0.2.0 • Public • Published

tl-transform

npm

Translates TL to TypeScript / Flow.

Installation

$ npm i tl-transform

Usage

From command line

Flow / TypeScript

$ npx tl-transform schema.tl > a.js
# or 
$ npx tl-transform schema.tl > a.ts

From JavaScript

import fs from 'fs'
import { transform } from 'tl-transform'
// function transform: (src: string, cfg?: Config) => string
 
const source = fs.readFileSync('schema.tl').toString()
const output = transform(source)
console.log(output)

See also config.js.

Examples

See l82.js.

Package Sidebar

Install

npm i tl-transform

Weekly Downloads

6

Version

0.2.0

License

MIT

Unpacked Size

94 kB

Total Files

24

Last publish

Collaborators

  • comonoid