# @shogobg/thrift-generator

> Use this project to easily generate Thrift files

Latest version **0.0.10** (published 2023-09-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install @shogobg/thrift-generator
pnpm add @shogobg/thrift-generator
yarn add @shogobg/thrift-generator
bun add @shogobg/thrift-generator
```

Provides the command `thrift-generator`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.10 |
| Published | 2023-09-03 |
| First published | 2023-08-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | shogobg |
| Keywords | thrift, idl, thrift-generator |

## Links

- npm: https://www.npmjs.com/package/@shogobg/thrift-generator
- Repository: https://github.com/shogobg/node-thrift-generator
- Homepage: https://github.com/shogobg/node-thrift-generator#readme
- Issues: https://github.com/shogobg/node-thrift-generator/issues
- npm.io page: https://npm.io/package/@shogobg/thrift-generator

## Dependencies (5)

- [glob](https://npm.io/package/glob.md) ^8.0.3
- [colors](https://npm.io/package/colors.md) ^1.4.0
- [mkdirp](https://npm.io/package/mkdirp.md) ^1.0.4
- [winston](https://npm.io/package/winston.md) ^3.8.1
- [handlebars](https://npm.io/package/handlebars.md) ^4.7.7

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.10 (latest) — 2023-09-03
- 0.0.9 — 2023-08-31
- 0.0.8 — 2023-08-31
- 0.0.7 — 2023-08-31

## README

# Node Thrift Generator

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

## Usage

### Global Install

`npm install -g @shogobg/thrift-generator`

### NPX

`npx @shogobg/thrift-generator`

`npx @shogobg/thrift-generator /path/to/package.json`

### Use as a script

#### Install

`npm install --save-dev @shogobg/thrift-generator`

#### Add configuration to your package.json

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

#### Add as a script on your package.json

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

## Configuration

### config.log

Log level, can be 'info' or debug **(default: info)**

### config.executable

Thrift cli executable path **(default: thrift)**

### config.ignore

Array of glob patterns to ignore while searching for thrift idl files.

### config.genereators

Array of thrift genereation commands

### genereator.language

Language to generate, can be a string or an array of languages

### generator.idl

Path to idl file/s. supports globbing **(default: \*_/_.thrift)**

### generator.output

Output folder.
If **generator.language** is an array, then files will be genereated at output/gen-\*,
otherwise, files will be genereated at output (no gen-\* will be created).

---
_Source: https://npm.io/package/@shogobg/thrift-generator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
