recursive-fs
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "recursive-fs", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Asynchronous recursive file system operations", | ||
@@ -13,7 +13,8 @@ "keywords": [ | ||
"remove", | ||
"directory" | ||
"directory", | ||
"cli" | ||
], | ||
"license": "MIT", | ||
"homepage": "https://github.com/simov/recursive-fs", | ||
"author": "Simeon Velichkov <simeonvelichkov@gmail.com> (http://simov.github.io)", | ||
"author": "Simeon Velichkov <simeonvelichkov@gmail.com> (https://simov.github.io)", | ||
"repository": { | ||
@@ -25,12 +26,9 @@ "type": "git", | ||
"devDependencies": { | ||
"coveralls": "^2.11.15", | ||
"eslint": "^2.13.1", | ||
"eslint-config-standard": "^5.2.0", | ||
"eslint-plugin-promise": "^1.3.2", | ||
"eslint-plugin-standard": "^1.3.3", | ||
"coveralls": "^3.0.2", | ||
"istanbul": "^0.4.5", | ||
"mocha": "^2.5.3" | ||
"mocha": "^5.2.0" | ||
}, | ||
"main": "index.js", | ||
"files": [ | ||
"bin/", | ||
"lib/", | ||
@@ -41,7 +39,10 @@ "LICENSE", | ||
], | ||
"bin": { | ||
"recursive-copy": "./bin/recursive-copy", | ||
"recursive-delete": "./bin/recursive-delete" | ||
}, | ||
"scripts": { | ||
"test": "npm run lint && npm run test-ci", | ||
"test-ci": "mocha test/", | ||
"test-cov": "istanbul cover _mocha", | ||
"lint": "eslint **/*.js && echo Lint Passed" | ||
"test": "npm run test:ci", | ||
"test:ci": "mocha test/", | ||
"test:cov": "istanbul cover _mocha" | ||
}, | ||
@@ -48,0 +49,0 @@ "engines": { |
@@ -13,7 +13,10 @@ | ||
var root = path.resolve(process.argv[2]) | ||
recursive.readdirr(root, function (err, dirs, files) { | ||
var spath = path.resolve(process.cwd(), process.argv[2]) | ||
recursive.readdirr(spath, function (err, dirs, files) { | ||
if (err) { | ||
console.log(err) | ||
} else { | ||
console.log(dirs) | ||
console.log(files) | ||
console.log('DONE!') | ||
@@ -31,4 +34,5 @@ } | ||
var root = path.resolve(process.argv[2]) | ||
recursive.rmdirr(root, function (err) { | ||
var spath = path.resolve(process.cwd(), process.argv[2]) | ||
recursive.rmdirr(spath, function (err) { | ||
if (err) { | ||
@@ -49,4 +53,5 @@ console.log(err) | ||
var spath = path.resolve(process.argv[2]), | ||
tpath = path.resolve(process.argv[3]) | ||
var spath = path.resolve(process.cwd(), process.argv[2]) | ||
var tpath = path.resolve(process.cwd(), process.argv[3]) | ||
recursive.cpdirr(spath, tpath, function (err) { | ||
@@ -62,3 +67,18 @@ if (err) { | ||
[npm-version]: http://img.shields.io/npm/v/recursive-fs.svg?style=flat-square (NPM Package Version) | ||
# CLI | ||
## recursive-delete | ||
``` | ||
npx recursive-delete 'relative/path/to/directory' | ||
``` | ||
## recursive-copy | ||
``` | ||
npx recursive-copy 'relative/path/to/source/directory' 'relative/path/to/destination/directory' | ||
``` | ||
[npm-version]: https://img.shields.io/npm/v/recursive-fs.svg?style=flat-square (NPM Package Version) | ||
[travis-ci]: https://img.shields.io/travis/simov/recursive-fs/master.svg?style=flat-square (Build Status - Travis CI) | ||
@@ -65,0 +85,0 @@ [coveralls-status]: https://img.shields.io/coveralls/simov/recursive-fs.svg?style=flat-square (Test Coverage - Coveralls) |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
8872
3
9
86
0