win-trash

Move files to the trash

Deprecated in favor of the `trash` module
Last updated 11 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install win-trash 
SYNC missed versions from official npm registry.

win-trash

Move files to the trash using the cmdutils Recycle.exe binary

Install

$ npm install --save win-trash

Usage

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.png

Related

See trash for a cross-platform trash CLI app.

License

MIT © Sindre Sorhus

Current Tags

  • 2.0.0                                ...           latest (11 years ago)

3 Versions

  • 2.0.0 [deprecated]           ...           11 years ago
  • 1.0.1 [deprecated]           ...           11 years ago
  • 1.0.0 [deprecated]           ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (2)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |