# cdp

> Necessary to clean the desk Policy(CDP) in node.js.

Latest version **1.0.0** (published 2017-02-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install cdp
pnpm add cdp
yarn add cdp
bun add cdp
```

Provides the command `cdp`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-02-19 |
| First published | 2017-02-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | kuluna |
| Maintainers | kuluna |
| Keywords | cdp, config, tool |

## Links

- npm: https://www.npmjs.com/package/cdp
- Repository: https://github.com/kuluna/cdp
- Homepage: https://github.com/kuluna/cdp#readme
- Issues: https://github.com/kuluna/cdp/issues
- npm.io page: https://npm.io/package/cdp

## Dependencies (1)

- [minimist](https://npm.io/package/minimist.md) ^1.2.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-02-19
- 0.0.1 — 2017-02-07

## README

cdp
-----

Necessary to clean the desk Policy(CDP) in node.js.

Are there many config files in the project directory? cdp puts them in one `configs.json`.

プロジェクトフォルダの中にたくさんのコンフィグファイルがありませんか？cdpはそれらを一つの`configs.json`にまとめます。

# Example
## Angular
`$ ng new NewProject`
```
./
│  .angular-cli.json    <- config file
│  .editorconfig        <- config file
│  .gitignore
│  karma.conf.js        <- config file
│  package.json
│  protractor.conf.js   <- config file
│  README.md
│  tslint.json          <- config file
│  
├─e2e
│      app.e2e-spec.ts
│      app.po.ts
│      tsconfig.json    <- config file
│      
└─src
    │  favicon.ico
    │  index.html
    │  main.ts
    │  polyfills.ts
    │  styles.css
    │  test.ts
    │  tsconfig.json    <- config file
    │  
    ├─app
    │      app.component.css
    │      app.component.html
    │      app.component.spec.ts
    │      app.component.ts
    │      app.module.ts
    │      
    ├─assets
    │      .gitkeep
    │      
    └─environments
            environment.prod.ts
            environment.ts
```

However, use cdp after,

`$ cdp --in .angular-cli.json .editorconfig karma.conf.js protractor.conf.js tslint.json e2e/tsconfig.json src/tsconfig.json`
```
./
│  .gitignore
│  configs.json     <- one config file!
│  package.json
│  README.md
│  
├─e2e
│      app.e2e-spec.ts
│      app.po.ts
│      
└─src
    │  favicon.ico
    │  index.html
    │  main.ts
    │  polyfills.ts
    │  styles.css
    │  test.ts
    │  
    ├─app
    │      app.component.css
    │      app.component.html
    │      app.component.spec.ts
    │      app.component.ts
    │      app.module.ts
    │      
    ├─assets
    │      .gitkeep
    │      
    └─environments
            environment.prod.ts
            environment.ts
```

Git push and 🍺!

If you want to restore the files,  
ファイルを元に戻したい時は、下のコマンドを実行してください。

`$ cdp --out`

# Install
`$ npm install -g cdp`

# Usage
```
$ cdp
Usage: cdp mode

mode:
--in [filePath]    checkin for configs.json
--out              checkout from configs.json
```

# License
MIT License.

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