Skip to content

Commit

Permalink
Drop unnecessary dependency
Browse files Browse the repository at this point in the history
Fixes #31
  • Loading branch information
sindresorhus committed Aug 4, 2020
1 parent a76d9ce commit 2028c2b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: node_js
node_js:
- '14'
- '12'
- '10'
- '8'
3 changes: 0 additions & 3 deletions cli.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env node
'use strict';
const updateNotifier = require('update-notifier');
const meow = require('meow');
const trash = require('trash');

Expand All @@ -17,8 +16,6 @@ const cli = meow(`
boolean: ['r', 'f', 'i', 'd', 'P', 'R', 'v', 'W']
});

updateNotifier({pkg: cli.pkg}).notify();

if (cli.input.length === 0) {
console.error('Specify at least one path');
process.exit(1);
Expand Down
2 changes: 1 addition & 1 deletion license
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
"description": "Move files and folders to the trash",
"license": "MIT",
"repository": "sindresorhus/trash-cli",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
"url": "https://sindresorhus.com"
},
"bin": {
"trash": "cli.js"
Expand Down Expand Up @@ -43,8 +44,7 @@
],
"dependencies": {
"meow": "^3.7.0",
"trash": "^6.0.0",
"update-notifier": "^3.0.0"
"trash": "^6.0.0"
},
"devDependencies": {
"ava": "^1.4.1",
Expand Down
7 changes: 1 addition & 6 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [<img src="https://cdn.jsdelivr.net/gh/sindresorhus/trash@1cdbd660976d739eeb45447bb6b62c41ac4a3ecf/media/logo.svg" width="150" align="left" alt="trash-cli">](https://github.com/sindresorhus/trash)CLI [![Build Status](https://travis-ci.org/sindresorhus/trash-cli.svg?branch=master)](https://travis-ci.org/sindresorhus/trash-cli)
# [<img src="https://cdn.jsdelivr.net/gh/sindresorhus/trash@1cdbd660976d739eeb45447bb6b62c41ac4a3ecf/media/logo.svg" width="150" align="left" alt="trash-cli">](https://github.com/sindresorhus/trash)CLI [![Build Status](https://travis-ci.com/sindresorhus/trash-cli.svg?branch=master)](https://travis-ci.com/github/sindresorhus/trash-cli)

> Move files and folders to the trash
Expand All @@ -8,14 +8,12 @@ In contrast to [`rm`](http://en.wikipedia.org/wiki/Rm_(Unix)) which is [dangerou

Accepts paths and [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).


## Install

```
$ npm install --global trash-cli
```


## Usage

```
Expand All @@ -29,15 +27,12 @@ $ trash --help
$ trash '*.png' '!unicorn.png'
```


## Tip

Add `alias rm=trash` to your `.zshrc`/`.bashrc` to reduce typing & safely trash files: `$ rm unicorn.png`.


## [FAQ](https://github.com/sindresorhus/trash#faq)


## Related

- [trash](https://github.com/sindresorhus/trash) - API for this module
Expand Down

0 comments on commit 2028c2b

Please sign in to comment.