New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@oasis-cloud/which-one

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oasis-cloud/which-one

List the scripts in package.json and choose one to execute

  • 0.0.7
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

which one

List the scripts in package.json and choose one to execute.

Read this in other languages: English | 简体中文

Install

npm install -D @oasis-cloud/which-one

Example

└─> wo 
? which one › - Use arrow-keys. Return to submit.
❯   test
    color

or

└─> wo c
? which one › - Use arrow-keys. Return to submit.
❯   color
    demo:c

If only one script exists after filtering scripts, it is executed directly.

└─> wo color

Regular Filtering

Regular matching is filtered using global matching that ignores case.

│which-one on  main 
└─> wo c
? which one › - Use arrow-keys. Return to submit.
❯   color
│which-one on  main 
└─> wo 'd.*:c'
? which one › - Use arrow-keys. Return to submit.
❯   demo:c

Options

-r

Supports the -r option, which executes the previous script.

│which-one on  main 
└─> wo 'd.*:c'
? which one › - Use arrow-keys. Return to submit.
❯   demo:c

# will execute demo:c

│which-one on  main 
└─> wo -r

Keywords

FAQs

Package last updated on 30 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc