fuzzy-search-most-recent-dir
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -16,8 +16,10 @@ #!/usr/bin/env node | ||
if (haystack && fuzzysearch(needle, haystack)) { | ||
return resolve(cwd, haystack); | ||
console.log(resolve(cwd, haystack)); | ||
return; | ||
} | ||
} | ||
throw new Error('No match for "' + needle + '" in ' + cwd); | ||
console.error('No match for "%s" in %s', needle, cwd); | ||
process.exit(1); | ||
} | ||
process.stdout.write(select()); | ||
select(); |
{ | ||
"name": "fuzzy-search-most-recent-dir", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "cli.js" |
@@ -23,4 +23,7 @@ # fuzzy-search-most-recent-dir | ||
I wanted a fast way to `cd` between different projects. | ||
The `cdd` function below jumps to the most recently modified project directory that matches the fuzzy search. | ||
For example `cdd featfla` would `cd` directly to the _feature-flag-api_ directory. | ||
`cdd` without any search pattern will `cd` to the most recently modified project. | ||
@@ -27,0 +30,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2765
20
35