ot

osx-trash

Move files to the trash

Showing:

Popularity

Downloads/wk

410

Maintenance

No Maintenance Data Available

Package

Dependencies

4

Size (min+gzip)

2.2KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Deprecated!
Deprecated in favor of the `trash` module

Readme

node-osx-trash Build Status

Move files to the trash using the osx-trash binary

Install

$ npm install --save osx-trash

Usage

const osxTrash = require('osx-trash');

osxTrash(['unicorn.png', 'rainbow.jpg']).then(() => {
    console.log('Successfully moved files to the trash');
});

Supports any OS X version. On OS X 10.7 or lower it will fall back to AppleScript which makes a sound when trashing.

CLI

$ npm install --global osx-trash
$ trash unicorn.png rainbow.png

Requires OS X 10.8 or higher.

See trash for a cross-platform trash CLI app.

License

MIT © Sindre Sorhus

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100