2.0.0 • Published 10 years ago
win-trash v2.0.0
win-trash
Move files to the trash using the cmdutils
Recycle.exebinary
Install
$ npm install --save win-trashUsage
const winTrash = require('win-trash');
winTrash(['unicorn.png', 'rainbow.jpg']).then(() => {
console.log('Successfully moved files to the trash');
});CLI
$ npm install --global win-trash$ trash unicorn.png rainbow.pngRelated
See trash for a cross-platform trash CLI app.
License
MIT © Sindre Sorhus