https://github.com/nemtsov/codewars
codewars.com library and CLI
https://github.com/nemtsov/codewars
Last synced: over 1 year ago
JSON representation
codewars.com library and CLI
- Host: GitHub
- URL: https://github.com/nemtsov/codewars
- Owner: nemtsov
- License: mit
- Created: 2014-02-21T06:29:15.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-07-14T07:39:12.000Z (about 12 years ago)
- Last Synced: 2025-03-29T20:23:02.891Z (over 1 year ago)
- Language: JavaScript
- Size: 236 KB
- Stars: 7
- Watchers: 5
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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`.
**\** - 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](http://nodejs.org/dist/v0.11.11/docs/api/vm.html#vm_script_runinthiscontext_options) 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