Skip to content

Commit

Permalink
Doc(@inquirer/search) Review README to prefer @inquirer/prompts install
Browse files Browse the repository at this point in the history
  • Loading branch information
SBoudrias committed Jul 21, 2024
1 parent 92eb67e commit 09533a5
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion packages/search/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,22 @@ Interactive search prompt component for command line interfaces.
<tr>
<td>

```sh
npm install @inquirer/prompts
```

</td>
<td>

```sh
yarn add @inquirer/prompts
```

</td>
</tr>
<tr>
<td>

```sh
npm install @inquirer/search
```
Expand All @@ -32,7 +48,9 @@ yarn add @inquirer/search
# Usage

```js
import search, { Separator } from '@inquirer/search';
import { search, Separator } from '@inquirer/prompts';
// Or
// import search, { Separator } from '@inquirer/search';

const answer = await search({
message: 'Select an npm package',
Expand Down

0 comments on commit 09533a5

Please sign in to comment.