https://github.com/cameronhunter/type-extractor
Extract types that are embedded in a package to a separate @types package
https://github.com/cameronhunter/type-extractor
Last synced: about 1 month ago
JSON representation
Extract types that are embedded in a package to a separate @types package
- Host: GitHub
- URL: https://github.com/cameronhunter/type-extractor
- Owner: cameronhunter
- License: mit
- Created: 2023-06-29T06:24:13.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-04T00:37:36.000Z (almost 3 years ago)
- Last Synced: 2025-02-24T13:32:07.279Z (over 1 year ago)
- Language: TypeScript
- Size: 138 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `@cameronhunter/type-extractor`
[](https://www.npmjs.com/package/@cameronhunter/type-extractor)
[](https://github.com/cameronhunter/type-extractor/actions/workflows/CI.yml)
Extract TypeScript type definitions from npm packages.
```plain
Usage: type-extractor [@version] [options]
Options:
--directory Directory to save the package (default: /Users/chunter/workspace/github/cameronhunter/type-extractor)
--help, -h Show this message
Examples:
type-extractor playwright-core Extract the types for the latest version of playwright-core.
type-extractor playwright-core@1.3.6 Extract the types for v1.3.6 of playwright-core.
```
Using `npx`:
```sh
$ npx @cameronhunter/type-extractor [@version] [options]
```