@bddjr/rimraf 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +13 -0
  2. package/bin.mjs +3 -0
  3. package/package.json +31 -0
package/README.md ADDED
@@ -0,0 +1,13 @@
1
+ rimraf command, but without any third-party dependencies.
2
+
3
+ ```sh
4
+ npm i -D @bddjr/rimraf
5
+
6
+ npx rimraf dist
7
+ ```
8
+
9
+ You can also remove multiple files
10
+
11
+ ```sh
12
+ npx rimraf dist _dist
13
+ ```
package/bin.mjs ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import { rmSync } from 'fs'
3
+ process.argv.slice(2).forEach(p => rmSync(p, { recursive: true, force: true }))
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@bddjr/rimraf",
3
+ "version": "0.1.0",
4
+ "author": "bddjr",
5
+ "description": "rimraf command, but without any third-party dependencies.",
6
+ "license": "Unlicense",
7
+ "bin": {
8
+ "rimraf": "./bin.mjs"
9
+ },
10
+ "files": [
11
+ "bin.mjs"
12
+ ],
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/bddjr/rimraf.git"
16
+ },
17
+ "publishConfig": {
18
+ "access": "public",
19
+ "registry": "https://registry.npmjs.org"
20
+ },
21
+ "keywords": [
22
+ "rm",
23
+ "rm -rf",
24
+ "rm -fr",
25
+ "remove",
26
+ "directory",
27
+ "cli",
28
+ "rmdir",
29
+ "recursive"
30
+ ]
31
+ }