Move files to the trash
$ cnpm install win-trash
Move files to the trash using the cmdutils
Recycle.exebinary
$ npm install --save win-trash
const winTrash = require('win-trash');
winTrash(['unicorn.png', 'rainbow.jpg']).then(() => {
console.log('Successfully moved files to the trash');
});
$ npm install --global win-trash
$ trash unicorn.png rainbow.png
See trash for a cross-platform trash CLI app.
MIT © Sindre Sorhus
Copyright 2013 - present © cnpmjs.org | Home |