Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

del-cli

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

del-cli - npm Package Compare versions

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
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc