1.1.0 • Published 7 years ago

@ominestre/rummerf v1.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

rummerf

NPM

Build Status Coverage Status

Rummerf is an "rm -rf" deletion tool with set scoping. When you initialize rummerf it either uses a path you provide or your Current Working Directory to limit the scope of deletions. For example if my CWD is /path/foo/bar and I attempt to delete a file within /path/foo it will throw an exception.

Usage

Using default CWD

    const rummerf = require('@ominestre/rummerf');

    rummerf('/path/to/delete/');

Using a specified scope

    const rummerf = require('@ominestre/rummerf').init('/my/project/scope/');

    rummerf('/my/project/scope/delete.js');

Currently rummerf requires an absolute path so it's recommended you use NodeJS path.resolve.