Code Monkey home page Code Monkey logo

skrub-cli's Introduction


Irreversible file deletion on every operating system
* Will only work securely on file systems that overwrite blocks in place *






Works on OS X, Linux, and Windows

In contrast to rm, which leaves file contents unallocated in memory, skrub first floods the file with garbage data and then removes it forever. Read the FAQ for information on how secure this method is.

Looking for the npm module instead?


Install

npm install --global skrub-cli

Usage

In it's basic form, skrub replaces rm. See how to alias over rm here

The API is similar as well:

  • skrub * == rm *
  • skrub * == rm -rf *
  • skrub index.js == rm index.js
$ skrub --help

  Usage
      $ skrub <path|glob> [...]

    Options
      -d, --dry-run  List what would be skrubbed instead of skrubbing
      -i, --iterations  Write over the file multiple times (defaults to one)

    Examples
      $ skrub unicorn.png rainbow.png
      $ skrub ../* '!../thatSuperImportantThing.txt'
      $ skrub ../beCarefulHere --dry-run
      $ skrub extraSkrubbed.txt --iterations 36

You can use glob patterns and multiple path arguments to compound and negate matches.


Alias

If you want to replace rm with skrub, place this in your ~/.bashrc, ~/.zshrc, etc.

alias rm=skrub


Related


License

MIT Ā© Dawson Botsford

skrub-cli's People

Contributors

dawsbot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

5l1v3r1

skrub-cli's Issues

SyntaxError: Use of const in strict mode.

$ npm install --global skrub-cli
$ touch sample
$ skrub sample
/usr/local/lib/node_modules/skrub-cli/cli.js:3
const meow = require('meow');
^^^^^
SyntaxError: Use of const in strict mode.
    at exports.runInThisContext (vm.js:73:16)
    at Module._compile (module.js:443:25)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3

skrub improperly selected dir

Not a true error if one knows what they are trying to do but rm will remove a directory whether or not it has a trailing slash.

$ mkdir Empty
$ skrub Empty
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: EISDIR: illegal operation on a directory, open '/Users/{}/Code/Empty'
    at Error (native)

$ skrub Empty/
$

[EXPIRED] Windows binary

Dear Mr. Botsford,
Could you be so kind to generate .exe for the rest of us who use Windows w/o Node?
Iā€™m told that either Nexe or EnclosureJS might help you to achieve that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.