thrift-generator

0.0.6 • Public • Published

Node Thrift Generator

An easy way to compile thrift idl files using simple configuration.

Use globally

Install

npm install -g thrift-generator

Use with configuration file (package.json is used by default)

thrift-generator --config=config-file.json

Use as a script

Install

npm install --save-dev thrift-generator

Add configuration to your package.json

{
  "thrift-generator": {
    "log": "debug",
    "generators": [
      {
        "language": [
          "js:node",
          "java"
        ],
        "idl": "**/.thrift",
        "output": "./dist"
      }
    ]
  }
}

Add as a script on your package.json

{
 "scripts": {
    "thrift": "thrift-generator"
  }
}

Configuration

TBA

Dependencies (5)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i thrift-generator

    Weekly Downloads

    0

    Version

    0.0.6

    License

    ISC

    Unpacked Size

    5.11 kB

    Total Files

    8

    Last publish

    Collaborators

    • amirbilu