UNPKG

1.21 kBMarkdownView Raw
1## Pryjs
2
3A interactive repl for node, inspired by [pry](https://github.com/pry/pry).
4##### This is a fork of [pry.js](https://github.com/blainesch/pry.js) by [blainesch](https://github.com/blainesch). The work here is highly experimental and not to be trusted.
5
6### Installing
7
8~~~
9npm install --save-dev pry
10~~~
11
12### Usage
13
14~~~ coffeescript
15pry = require 'pry'
16eval pry.it
17~~~
18
19PRYINPUTCOLOR env variable makes pryjs also color input
20
21### Extra Commands
22
23While you are in the prompt there are a few things you might want to do:
24* `whereami` will show you exactly where you are in the code. Accepts two integers to replace the default 5 before and 5 after.
25* `stop` will exit the pryjs prompt and continue through the app.
26* `kill` completely stop the script.
27* `wtf` display the last caught exception.
28* `version` display the current version.
29* `mode` switch between javascript and coffeescript mode. Defaults to javascript.
30* `help` display all the available commands.
31* `play` play lines of code as if you had entered them. Accepts two integers: start and end. End defaults to start.
32
33### Examples
34
35Examples can be found in the [examples directory](./examples).
36
37### Screenshots
38
39![pryjs](./assets/demo.png)