typedefs

0.0.3 • Public • Published

Build Status

Typedefs Commandline Tool

Use the Typedefs JS library from the commandline.

Note: this is for the convenience of NPM users, there is nothing JS or NPM specific about the Typedefs compiler and it can be installed without NPM. See https://github.com/typedefs/typedefs for more information.

Installation

To install this tool globally from NPM, run

# https://npm.im/typedefs 
npm install -g typedefs

Usage

Usage: typedefs-cli [options] [command]

Options:
  -V, --version  output the version number
  -h, --help     output usage information

Commands:
  codegen        generate code from S-expression
  help [cmd]     display help for [cmd]

Using the code generator:

echo "(name Bit (+ 1 1))" | typedefs codegen --target json

Options:

  -i, --input [filename]   File to read input from
  -o, --output [filename]  File to write output to
  --force                  Force file overwrite
  -t, --target [platform]  Target platform: "haskell", "reasonml" or "json"

Readme

Keywords

none

Package Sidebar

Install

npm i typedefs

Weekly Downloads

1

Version

0.0.3

License

AGPL-3.0-or-later

Unpacked Size

4.78 kB

Total Files

5

Last publish

Collaborators

  • wires