From 196b8e6f2bc86754e4388143e419f7fe36c300b7 Mon Sep 17 00:00:00 2001 From: NoriSte Date: Mon, 14 Oct 2019 18:15:42 +0200 Subject: [PATCH] fix: replace some npr occurrencies --- README.md | 6 +++--- src/parse-cmd.unit.test.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1dd0ebb..4c3a047 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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. diff --git a/src/parse-cmd.unit.test.js b/src/parse-cmd.unit.test.js index b98a677..6d82bee 100644 --- a/src/parse-cmd.unit.test.js +++ b/src/parse-cmd.unit.test.js @@ -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); }); });