Skip to content

Commit bbb0f68

Browse files
committed
Tweak npm/npx command help text
1 parent 34e078e commit bbb0f68

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

src/commands/npm/cmd-npm.mts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,13 @@ async function run(
4444
API Token Requirements
4545
${getFlagApiRequirementsOutput(`${parentName}:${CMD_NAME}`)}
4646
47-
This runs npm but checks packages through Socket before installing anything.
47+
Run npm with packages installs gated through the Socket API.
4848
See docs for more details.
4949
5050
Note: Everything after "npm" is sent straight to the npm command.
5151
Only the \`--dryRun\` and \`--help\` flags are caught here.
5252
53-
Use \`socket wrapper on\` to automatically enable this such that you don't
54-
have to write \`socket npm\` for that purpose.
53+
Use \`socket wrapper on\` to alias this command as \`npm\`.
5554
5655
Examples
5756
$ ${command}

src/commands/npm/cmd-npm.test.mts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@ describe('socket npm', async () => {
2323
- Quota: 100 units
2424
- Permissions: packages:list
2525
26-
This runs npm but checks packages through Socket before installing anything.
26+
Run npm with packages installs gated through the Socket API.
2727
See docs for more details.
2828
2929
Note: Everything after "npm" is sent straight to the npm command.
3030
Only the \`--dryRun\` and \`--help\` flags are caught here.
3131
32-
Use \`socket wrapper on\` to automatically enable this such that you don't
33-
have to write \`socket npm\` for that purpose.
32+
Use \`socket wrapper on\` to alias this command as \`npm\`.
3433
3534
Examples
3635
$ socket npm

src/commands/npx/cmd-npx.mts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,13 @@ async function run(
4444
API Token Requirements
4545
${getFlagApiRequirementsOutput(`${parentName}:${CMD_NAME}`)}
4646
47-
This runs npx but checks packages through Socket before running them.
47+
Run npx with packages installs gated through the Socket API.
4848
See docs for more details.
4949
5050
Note: Everything after "npx" is sent straight to the npx command.
5151
Only the \`--dryRun\` and \`--help\` flags are caught here.
5252
53-
Use \`socket wrapper on\` to automatically enable this such that you don't
54-
have to write \`socket npx\` for that purpose.
53+
Use \`socket wrapper on\` to alias this command as \`npx\`.
5554
5655
Examples
5756
$ ${command}

src/commands/npx/cmd-npx.test.mts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@ describe('socket npx', async () => {
2323
- Quota: 100 units
2424
- Permissions: packages:list
2525
26-
This runs npx but checks packages through Socket before running them.
26+
Run npx with packages installs gated through the Socket API.
2727
See docs for more details.
2828
2929
Note: Everything after "npx" is sent straight to the npx command.
3030
Only the \`--dryRun\` and \`--help\` flags are caught here.
3131
32-
Use \`socket wrapper on\` to automatically enable this such that you don't
33-
have to write \`socket npx\` for that purpose.
32+
Use \`socket wrapper on\` to alias this command as \`npx\`.
3433
3534
Examples
3635
$ socket npx

0 commit comments

Comments
 (0)