Skip to content

Commit

Permalink
fix: replace some npr occurrencies
Browse files Browse the repository at this point in the history
  • Loading branch information
NoriSte committed Oct 14, 2019
1 parent a4ca8de commit 196b8e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ nprr: npm run + autocomplete 🚀

## What is nprr?

Npr is an `npm run` enhancer! It runs the good `npm run` programmatically (through `npm.run()`, not `child_process.exec()`) or let you choose the script to launch with autocomplete.
Nprr is an `npm run` enhancer! It runs the good `npm run` programmatically (through `npm.run()`, not `child_process.exec()`) or let you choose the script to launch with autocomplete.

## Features

Expand Down Expand Up @@ -60,10 +60,10 @@ nprr("test").then(argv => {
console.log(argv);
});
```
Npr accepts an array of strings or a string as the only argument.
Nprr accepts an array of strings or a string as the only argument.

#### Is it possible to use edit the filter passed to nprr?
Unfortunately not but I'd love to add it as soon as possible. Npr leverages [Enquirer](https://github.com/enquirer/enquirer) but, at the moment, it does not allow to do that, see the [related issue](https://github.com/enquirer/enquirer/issues/66) (and [Inquirer](https://github.com/SBoudrias/Inquirer.js/) can do that [neither](https://github.com/SBoudrias/Inquirer.js/issues/590)).
Unfortunately not but I'd love to add it as soon as possible. Nprr leverages [Enquirer](https://github.com/enquirer/enquirer) but, at the moment, it does not allow to do that, see the [related issue](https://github.com/enquirer/enquirer/issues/66) (and [Inquirer](https://github.com/SBoudrias/Inquirer.js/) can do that [neither](https://github.com/SBoudrias/Inquirer.js/issues/590)).

#### Could npm allow for both autocomplete and fuzzy search?
At the moment the fuzzy search is not supported. I need to investigate how it could be done with Enquirer/Inquirer.
Expand Down
6 changes: 3 additions & 3 deletions src/parse-cmd.unit.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ describe.each([
});

describe("Prefixed by `nprr`", () => {
let paramsWithNpr = ["nprr", ...params];
let paramsWithNprr = ["nprr", ...params];
test("Passed as array", () => {
expect(parseCmd(paramsWithNpr)).toEqual(expected);
expect(parseCmd(paramsWithNprr)).toEqual(expected);
});
test("Passed as string", () => {
expect(parseCmd(paramsWithNpr.join(" "))).toEqual(expected);
expect(parseCmd(paramsWithNprr.join(" "))).toEqual(expected);
});
});

Expand Down

0 comments on commit 196b8e6

Please sign in to comment.