Comparing version 0.1.1 to 0.1.2
32
cli.js
#!/usr/bin/env node | ||
'use strict'; | ||
const updateNotifier = require('update-notifier'); | ||
const meow = require('meow'); | ||
const del = require('del'); | ||
var updateNotifier = require('update-notifier'); | ||
var meow = require('meow'); | ||
var del = require('del'); | ||
const cli = meow(` | ||
Usage | ||
$ de <path|glob> [...] | ||
Options | ||
-f, --force Allow deleting the current working directory and outside | ||
-d, --dry-run List what would be deleted instead of deleting | ||
Examples | ||
$ de unicorn.png rainbow.png | ||
$ de '*.png' '!unicorn.png' | ||
`, { | ||
var cli = meow([ | ||
'Usage', | ||
' $ de <path|glob> [...]', | ||
'', | ||
'Options', | ||
' -f, --force Allow deleting the current working directory and outside', | ||
' -d, --dry-run List what would be deleted instead of deleting', | ||
'', | ||
'Examples', | ||
' $ de unicorn.png rainbow.png', | ||
' $ de \'*.png\' \'!unicorn.png\'' | ||
], { | ||
string: ['_'], | ||
@@ -37,3 +37,3 @@ boolean: [ | ||
del(cli.input, cli.flags).then(files => { | ||
del(cli.input, cli.flags).then(function (files) { | ||
if (cli.flags.dryRun) { | ||
@@ -40,0 +40,0 @@ console.log(files.join('\n')); |
{ | ||
"name": "del-cli", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Delete files and folders", | ||
@@ -16,3 +16,3 @@ "license": "MIT", | ||
"engines": { | ||
"node": ">=4" | ||
"node": ">=0.10" | ||
}, | ||
@@ -61,6 +61,3 @@ "scripts": { | ||
"xo": "*" | ||
}, | ||
"xo": { | ||
"esnext": true | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3920
37