disassemble-package
Version:
Separate the config contained in package.json into a file.
56 lines (44 loc) • 2.56 kB
Markdown
# DisassemblePackage
[](https://www.npmjs.com/package/disassemble-package)
[](https://github.com/tanmen/disassemble-package/actions/workflows/test.yml)
[](https://github.com/tanmen/disassemble-package/actions/workflows/codeql-analysis.yml)
[](https://codecov.io/gh/tanmen/disassemble-package)
[](https://github.com/semantic-release/semantic-release)
[](https://app.fossa.com/projects/custom%2B25020%2Fgithub.com%2Ftanmen%2Fdisassemble-package?ref=badge_shield)
Decomposes `config files` contained in `package.json` and converts it into separate `config files`.
## Usage
`shell`
```shell
npx disassemble-package
```
---
`node`
```node
DisassemblePackage(process.cwd(), {space: 2})
```
## Supported Libraries
- babel
- browserslist
- commitlint
- electron-builder
- eslint
- husky
- jest
- semantic-release
If you would like to use a different library, please specify your preference in the issue.
## Command Details
```shell
disassemble-package <path> [--space count]
```
| name | short | type | required | default | description |
| ----- | ----- | ------ | -------- | ---------------------------------- | ------------------------------------------------ |
| path | | string | false | process.cmd() // current directory | Specifies location path where `package.json` is. |
| space | s | number | false | 2 | Specify the indent when regenerating. |
## Contribute
Anyone welcome
## Requests for use
It would be helpful if you could give me a star if you are using it.
There is a possibility of destructive changes or abrupt termination if there are not enough stars.
## License
MIT License
[](https://app.fossa.com/projects/custom%2B25020%2Fgithub.com%2Ftanmen%2Fdisassemble-package?ref=badge_large)