UNPKG

disassemble-package

Version:

Separate the config contained in package.json into a file.

56 lines (44 loc) 2.56 kB
# DisassemblePackage [![npm](https://img.shields.io/npm/dw/disassemble-package)](https://www.npmjs.com/package/disassemble-package) [![Test](https://github.com/tanmen/disassemble-package/actions/workflows/test.yml/badge.svg)](https://github.com/tanmen/disassemble-package/actions/workflows/test.yml) [![CodeQL](https://github.com/tanmen/disassemble-package/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/tanmen/disassemble-package/actions/workflows/codeql-analysis.yml) [![codecov](https://codecov.io/gh/tanmen/disassemble-package/branch/main/graph/badge.svg?token=74J9RU20ZA)](https://codecov.io/gh/tanmen/disassemble-package) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![FOSSA Status](https://app.fossa.com/api/projects/custom%2B25020%2Fgithub.com%2Ftanmen%2Fdisassemble-package.svg?type=shield)](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 [![FOSSA Status](https://app.fossa.com/api/projects/custom%2B25020%2Fgithub.com%2Ftanmen%2Fdisassemble-package.svg?type=large)](https://app.fossa.com/projects/custom%2B25020%2Fgithub.com%2Ftanmen%2Fdisassemble-package?ref=badge_large)