Sha256: a950a4f39d00ac97e9f33c3b9dd7345293ef67b4529ef2b4748edd1a49d844c1

Contents?: true

Size: 744 Bytes

Versions: 84

Compression:

Stored size: 744 Bytes

Contents

#!/usr/bin/env node

var rimraf = require('./')

var help = false
var dashdash = false
var args = process.argv.slice(2).filter(function(arg) {
  if (dashdash)
    return !!arg
  else if (arg === '--')
    dashdash = true
  else if (arg.match(/^(-+|\/)(h(elp)?|\?)$/))
    help = true
  else
    return !!arg
});

if (help || args.length === 0) {
  // If they didn't ask for help, then this is not a "success"
  var log = help ? console.log : console.error
  log('Usage: rimraf <path>')
  log('')
  log('  Deletes all files and folders at "path" recursively.')
  log('')
  log('Options:')
  log('')
  log('  -h, --help    Display this usage info')
  process.exit(help ? 0 : 1)
} else {
  args.forEach(function(arg) {
    rimraf.sync(arg)
  })
}

Version data entries

84 entries across 31 versions & 9 rubygems

Version Path
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/temp/node_modules/rimraf/bin.js
locomotivecms-3.4.0 app/javascript/node_modules/temp/node_modules/rimraf/bin.js
dragonfly_puppeteer-0.1.0 node_modules/temp/node_modules/rimraf/bin.js
es6_tilt-0.1.2 test/dummy/app/assets/javascripts/node_modules/fsevents/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/rimraf/bin.js
es6_tilt-0.1.1 test/dummy/app/assets/javascripts/node_modules/fsevents/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/rimraf/bin.js
es6_tilt-0.1.0 test/dummy/app/assets/javascripts/node_modules/fsevents/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/rimraf/bin.js
hooch-0.4.2 jasmine/node_modules/karma/node_modules/.bin/rimraf
hooch-0.4.2 jasmine/node_modules/karma/node_modules/rimraf/bin.js
hooch-0.4.2 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/fs-extra/node_modules/.bin/rimraf
hooch-0.4.2 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/fs-extra/node_modules/rimraf/bin.js
hooch-0.4.1 jasmine/node_modules/karma/node_modules/rimraf/bin.js
hooch-0.4.1 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/fs-extra/node_modules/.bin/rimraf
hooch-0.4.1 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/fs-extra/node_modules/rimraf/bin.js
hooch-0.4.1 jasmine/node_modules/karma/node_modules/.bin/rimraf
hooch-0.4.0 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/fs-extra/node_modules/rimraf/bin.js
hooch-0.4.0 jasmine/node_modules/karma/node_modules/.bin/rimraf
hooch-0.4.0 jasmine/node_modules/karma/node_modules/rimraf/bin.js
hooch-0.4.0 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/fs-extra/node_modules/.bin/rimraf
gulp_assets-1.0.0.pre.5 template/node_modules/gulp-sass/node_modules/node-sass/node_modules/pangyp/node_modules/rimraf/bin.js
gulp_assets-1.0.0.pre.4 template/node_modules/gulp-sass/node_modules/node-sass/node_modules/pangyp/node_modules/rimraf/bin.js