# dts-helper

> TypeScript 声明文件生成工具

Latest version **1.1.3** (published 2020-04-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install dts-helper
pnpm add dts-helper
yarn add dts-helper
bun add dts-helper
```

Provides the command `dts`.

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2020-04-01 |
| First published | 2020-03-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 88.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | coffee377 |
| Keywords | TypeScript, tsc, dts, declaration, tool |

## Links

- npm: https://www.npmjs.com/package/dts-helper
- Repository: https://github.com/coffee377/vocjs
- Homepage: https://github.com/coffee377/vocjs#readme
- Issues: https://github.com/coffee377/vocjs/issues
- npm.io page: https://npm.io/package/dts-helper

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) ^4.17.15
- [fs-extra](https://npm.io/package/fs-extra.md) ^8.1.0
- [commander](https://npm.io/package/commander.md) ^5.0.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.1.3 (latest) — 2020-04-01
- 1.1.2 — 2020-03-31
- 1.1.1 — 2020-03-20
- 1.1.0 — 2020-03-17
- 1.0.1 — 2020-03-10

## README

# TypeScript 类型声明工具

### API

```js
const dts = require('dts-helper');

dts.emit(opts).catch(err => {
  // TODO
});
```

### CLI

```shell script
Usage: dts [options]

Options:
  -V, --version                  output the version number
  -d, --out-dir <directory>      emit output declaration file to the specified directory
  -f, --out-file [file]          concatenate and emit output to single file. (default: false)
  -m, --module [prefix]          specifies the module prefix name. (default: true)
  -E, --noEmit                   do not emit output (default: false)
  -e, --export-equals            export Equals (default: false)
  -C, --no-comment               do not emit comments to output
  -V, --verbose                  display detailed log information (default: false)
  -i, --include <items>          specifies the file to include (default: [])
  -e, --exclude <items>          specifies the file to exclude (default: [])
  -L, --line-break <CRLF|CR|LF>  sets the paragraph newline character
  -I, --indent <TAB|SPACE>[NUM]  sets the line indent,eg TAB(or TAB1)
  -h, --help                     display help for command
```

### CHANGE LOG

- :pencil2: Fixing Missing declaration file

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