regex-replace
Advanced tools
Comparing version
@@ -59,3 +59,9 @@ #!/usr/bin/env node | ||
try { | ||
files = await walkAsync(path); | ||
const stats = fs.lstatSync(path); | ||
if (stats.isDirectory()) { | ||
files = await walkAsync(path); | ||
} else { | ||
files = [path]; | ||
} | ||
} catch (err) { | ||
@@ -62,0 +68,0 @@ reject(err); |
{ | ||
"name": "regex-replace", | ||
"author": "Don Mclean", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "A simple CLI/Module for regex replacing strings in files & renaming files recursively", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
# regex-replace | ||
A simple CLI/Module for regex replacing strings in files & renaming files recursively | ||
[](https://www.npmjs.com/package/regex-replace) [](https://travis-ci.org/Donmclean/regex-replace) [](https://github.com/Donmclean/riko/blob/master/LICENSE) | ||
[](https://www.npmjs.com/package/regex-replace) [](https://travis-ci.org/Donmclean/regex-replace) [](https://github.com/Donmclean/riko/blob/master/LICENSE) | ||
@@ -6,0 +6,0 @@ ## Getting Started |
19420
0.92%195
2.63%