Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@silenteer/run

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@silenteer/run

Run run is a cli to quickly test a library, either in typescript or js. Most of libraries don't expose a executable method to test in cli, and `rr` is here to solve

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by300%
Maintainers
2
Weekly downloads
 
Created
Source

rr

Run run is a cli to quickly test a library, either in typescript or js. Most of libraries don't expose a executable method to test in cli, and rr is here to solve

getting started

  • Add rr to dev dependencies like - yarn install @silenteer/run
  • Can use yarn rr -h to see options

Example

  • yarn rr ./index.ts to call default export function without any parameters
  • yarn rr ./index.ts --at echo -a 'Hello world' to call method echo of the export with Hello world as an argument. Argument can be added multiple times
  • yarn rr ./index.ts --at echo.start to execute method start of the export of the echo instance

Argument data types

Argument employs a simple syntax to determine data type. These are supported data types for argument

  • s:<string value> will be use as string value
  • n:<string value> will be put to Number
  • b:<string value> will be put to Boolean
  • j:<string value> will be put to JSON.parse

Promise

Promise will be handled accordingly so you don't have to write a file just to wrap the first level await async

FAQs

Package last updated on 21 Oct 2022

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