New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

codewars

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codewars

CLI for codewars.com

latest
npmnpm
Version
0.2.0
Version published
Weekly downloads
6
20%
Maintainers
1
Weekly downloads
 
Created
Source

codewars

codewars.com library and cli for retrieving, testing locally and attempting katas.

Flow

$ mkdir kata; cd kata

$ codewars next  // or kata_id instead

$ ls
README.md kata.js test.js

$ codewars test  // local testing
Test Passed

$ codewars attempt

Commands

next - retrieves the next kata. Places the stub into kata.js, the test into test.js and the description in the README.md.

<kata_id_or_slug> - same as next, but by providing a specific kata id or slug

test - run the test.js with kata.js

test --watch or -w - will run the test, and watch for changes in the files; re-running the test when a file is updated

Regarding stack-traces

Stack-traces, or at least the line number and the character of the failed code, are visible only in Node v0.11 and above. This is due to the new displayErrors option of the vm module, which is not available on older versions.

A pull-request is welcome for a way to run katas securely and have stack-traces on earlier versions of Node.

License

MIT

Keywords

codewars

FAQs

Package last updated on 14 Jul 2014

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