Comparing version 0.1.2 to 1.0.0
14
cli.js
@@ -6,10 +6,5 @@ #!/usr/bin/env node | ||
var pkg = require('./package.json'); | ||
var trash = require('./index'); | ||
var trash = require('./'); | ||
var input = argv._; | ||
var notifier = updateNotifier({ | ||
packageName: pkg.name, | ||
packageVersion: pkg.version | ||
}); | ||
function help() { | ||
@@ -27,5 +22,6 @@ console.log([ | ||
if (notifier.update) { | ||
notifier.notify(true); | ||
} | ||
updateNotifier({ | ||
packageName: pkg.name, | ||
packageVersion: pkg.version | ||
}).notify(); | ||
@@ -32,0 +28,0 @@ if (argv.version) { |
11
index.js
@@ -23,3 +23,3 @@ 'use strict'; | ||
}); | ||
}; | ||
} | ||
@@ -36,3 +36,3 @@ function linux(paths, cb) { | ||
}); | ||
}; | ||
} | ||
@@ -45,3 +45,3 @@ function win(paths, cb) { | ||
}); | ||
}; | ||
} | ||
@@ -54,4 +54,7 @@ module.exports = function (paths, cb) { | ||
cb = cb || function () {}; | ||
paths = paths.map(function (el) { return path.resolve(el) }); | ||
paths = paths.map(function (el) { | ||
return path.resolve(el); | ||
}); | ||
if (process.platform === 'darwin') { | ||
@@ -58,0 +61,0 @@ osx(paths, cb); |
{ | ||
"name": "trash", | ||
"version": "0.1.2", | ||
"version": "1.0.0", | ||
"description": "Cross-platform command-line app for moving files and directories to the trash - A safer alternative to `rm`", | ||
@@ -45,5 +45,5 @@ "license": "MIT", | ||
"dependencies": { | ||
"escape-string-applescript": "^0.1.0", | ||
"minimist": "^0.1.0", | ||
"update-notifier": "^0.1.8" | ||
"escape-string-applescript": "^0.1.1", | ||
"minimist": "^0.2.0", | ||
"update-notifier": "^0.2.0" | ||
}, | ||
@@ -50,0 +50,0 @@ "devDependencies": { |
@@ -9,3 +9,3 @@ # ![trash](https://cdn.rawgit.com/sindresorhus/trash/3aa70853f1efb58d0d2512e32d617d246c88953c/media/logo.svg) | ||
In contrast to `rm` which is [dangerous](http://docstore.mik.ua/orelly/unix3/upt/ch14_03.htm) and permanently delete files, this only moves them to the trash, which is much safer. | ||
In contrast to `rm` which is [dangerous](http://docstore.mik.ua/orelly/unix3/upt/ch14_03.htm) and permanently delete files, this only moves them to the trash, which is much safer and reversible. You should not alias `rm` to `trash` however as that would break most scripts relying on `rm` behaviour. Rather use `trash` from the CLI and in your own scripts. I would also recommend reading my guide on [safeguarding `rm`](https://github.com/sindresorhus/guides/blob/master/how-not-to-rm-yourself.md#safeguard-rm). | ||
@@ -12,0 +12,0 @@ |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
115006
1
91
+ Addedansi-regex@0.2.12.1.1(transitive)
+ Addedansi-styles@1.1.0(transitive)
+ Addedchalk@0.5.1(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addeddeep-extend@0.6.0(transitive)
+ Addedduplexify@3.7.1(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedgot@3.3.1(transitive)
+ Addedhas-ansi@0.1.0(transitive)
+ Addedinfinity-agent@2.0.3(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedini@1.3.8(transitive)
+ Addedis-npm@1.0.0(transitive)
+ Addedis-redirect@1.0.0(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedlatest-version@1.0.1(transitive)
+ Addedlowercase-keys@1.0.1(transitive)
+ Addedminimist@0.2.4(transitive)
+ Addednested-error-stacks@1.0.2(transitive)
+ Addedobject-assign@3.0.0(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpackage-json@1.2.0(transitive)
+ Addedpinkie@2.0.4(transitive)
+ Addedpinkie-promise@2.0.1(transitive)
+ Addedprepend-http@1.0.4(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedrc@1.2.8(transitive)
+ Addedread-all-stream@3.1.0(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedregistry-url@3.1.0(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedsemver-diff@2.1.0(transitive)
+ Addedstream-shift@1.0.3(transitive)
+ Addedstring-length@1.0.1(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedstrip-ansi@0.3.03.0.1(transitive)
+ Addedstrip-json-comments@2.0.1(transitive)
+ Addedsupports-color@0.2.0(transitive)
+ Addedtimed-out@2.0.0(transitive)
+ Addedupdate-notifier@0.2.2(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedajv@6.12.6(transitive)
- Removedansi-styles@1.0.0(transitive)
- Removedasn1@0.2.6(transitive)
- Removedassert-plus@1.0.0(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedaws-sign2@0.7.0(transitive)
- Removedaws4@1.13.2(transitive)
- Removedbcrypt-pbkdf@1.0.2(transitive)
- Removedcaseless@0.12.0(transitive)
- Removedchalk@0.4.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedcore-util-is@1.0.2(transitive)
- Removeddashdash@1.14.1(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedecc-jsbn@0.1.2(transitive)
- Removedextend@3.0.2(transitive)
- Removedextsprintf@1.3.0(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedforever-agent@0.6.1(transitive)
- Removedform-data@2.3.3(transitive)
- Removedgetpass@0.1.7(transitive)
- Removedhar-schema@2.0.0(transitive)
- Removedhar-validator@5.1.5(transitive)
- Removedhas-color@0.1.7(transitive)
- Removedhttp-signature@1.2.0(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedisstream@0.1.2(transitive)
- Removedjsbn@0.1.1(transitive)
- Removedjson-schema@0.4.0(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedjson-stringify-safe@5.0.1(transitive)
- Removedjsprim@1.4.2(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedminimist@0.1.0(transitive)
- Removedoauth-sign@0.9.0(transitive)
- Removedperformance-now@2.1.0(transitive)
- Removedpsl@1.9.0(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedqs@6.5.3(transitive)
- Removedrequest@2.88.2(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsemver@2.3.2(transitive)
- Removedsshpk@1.18.0(transitive)
- Removedstrip-ansi@0.1.1(transitive)
- Removedtough-cookie@2.5.0(transitive)
- Removedtunnel-agent@0.6.0(transitive)
- Removedtweetnacl@0.14.5(transitive)
- Removedupdate-notifier@0.1.10(transitive)
- Removeduri-js@4.4.1(transitive)
- Removeduuid@3.4.0(transitive)
- Removedverror@1.10.0(transitive)
Updatedminimist@^0.2.0
Updatedupdate-notifier@^0.2.0