Easy way clean node project folder
Last updated 3 years ago by zcong .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install clean-folder 
SYNC missed versions from official npm registry.


NPM version NPM downloads Build Status

Easy way clean node project folder, only work in folder which has package.json, more safety.

Only output flies will be deleted by default.


$ yarn global add clean-folder


$ clean-folder <path|glob> [options]
# or use alias cf


--force, -f

type: bool

Allow deleting the current working directory and outside

--dry-run, -d

type: bool

List what would be deleted instead of deleting

--custom, -c

type: bool

Disable default options, default is delete all cwd folder files except node_modules!! If this options set true, will be the same as del-cli

--run, -r

type: bool

Run delete task


  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D


clean-folder © zcong1993, Released under the MIT License.
Authored and maintained by zcong1993 with help from contributors (list). · GitHub @zcong1993

Current Tags

  • 0.0.2                                ...           latest (3 years ago)

2 Versions

  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (5)
Dev Dependencies (2)
Dependents (0)

Copyright 2014 - 2017 © |