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

argg

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

argg

A poor man's test runner for tap, tape, or similar, that also can be used with istanbul. It's just three lines of code to require all globs or pathnames provided as command line arguments.

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

argg

A poor man's test runner for tap, tape, or similar, that also can be used with istanbul. It's just three lines of code to require pathnames from the command line. Shell globbing test runner, if you will, which you can do when your tests are simple scripts.

usage

Install like:

npm i argg --save-dev

…then in your package.json add:

"scripts": {
    "test": "node node_modules/argg tests/*.js",
    "cover": "istanbul cover node_modules/argg tests/*.js"
},

…so from the command line, you can run tests and get code coverage with istanbul like:

npm test
npm run cover

why

Hey ok, tap has a nice test runner, but I would need something like this for tape by itself, or for either tap or tape with istanbul. I could make a file and explicitly require the files, but that takes typing, and I know I'd miss something.

license

MIT licensed by permission from my employer. See LICENSE.txt.

Keywords

FAQs

Package last updated on 24 Jul 2015

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