• Stars
    star
    160
  • Rank 233,986 (Top 5 %)
  • Language
    CoffeeScript
  • License
    MIT License
  • Created almost 10 years ago
  • Updated almost 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸ”¬ A REPL for Node.

Pryjs

A interactive repl for node, inspired by pry.

Build Status

Installing

npm install --save-dev pryjs

Usage

Throw this beautiful snippet in the middle of your code:

import pry from 'pryjs'
eval(pry.it)
pry = require('pryjs')
eval(pry.it)

You MUST name the variable pry. You are executing an anonymous function, and this assumes the variable is named pry in your scope. This is so it can keep prompting you.

Extra Commands

While you are in the prompt there are a few things you might want to do:

  • help display all the available commands.
  • kill completely stop the script.
  • mode switch between javascript and coffeescript mode. Defaults to javascript.
  • play play lines of code as if you had entered them. Accepts two integers: start and end. End defaults to start.
  • stop will exit the pryjs prompt and continue through the app.
  • version display the current version.
  • whereami will show you exactly where you are in the code. Accepts two integers to replace the default 5 before and 5 after.
  • wtf display the last caught exception.

Examples

Examples can be found in the examples directory.

Screenshots

pryjs

More Repositories

1

alfred-chrome-bookmarks

πŸ”– Fast Chrome bookmark searcher for Alfred.
PHP
192
star
2

electron-notifications

πŸ’₯ A node module for sending notifications in electron applications.
JavaScript
133
star
3

promise-princess

🐢 Learn JS Promises, with your friend πŸ‘‘ Princess!
JavaScript
12
star
4

prettyArray

🌷 OO Arrays in PHP.
PHP
10
star
5

imageColor

🎨 Find primary color information.
PHP
8
star
6

li3_fake_model

πŸ‘  Alternative model library for lithium.
PHP
6
star
7

zazu-weather

Get weather information in zazu
JavaScript
6
star
8

alfred-ascii-search

Search ASCII characters by name or number.
Ruby
5
star
9

promise.arrg

JavaScript
4
star
10

li3_unit

Adds more assertion methods, and helps test controllers, models, and helpers.
PHP
4
star
11

alfred-find-replace

A workflow to find and replace on your last copied item.
Ruby
4
star
12

laravel-pretty-controller

Content negotiation for laravel!
PHP
2
star
13

li3_memoize

Will aid in the caching of expensive helper/model instance methods.
PHP
2
star
14

connect-four

🎲 Connect four on the command line.
Ruby
2
star
15

li3_leaderboard

A leaderboard to show off which developers are creating unit tests
PHP
2
star
16

li3_geocoder

Lithium data source for use with "willdurand/geocoder".
PHP
2
star
17

dotties

Baylee's local dotfiles.
Vim Script
2
star
18

zazu-pibble

Get moar pibbles
JavaScript
2
star
19

magicOracle

A proxy class developed for unit testing that makes all methods and properties public to you.
PHP
1
star
20

anon-o-gist

JavaScript
1
star
21

ocd

Static Code Analyzer for Ruby
Ruby
1
star
22

frak-cli

Command line interface for Frak
Clojure
1
star
23

baser

Word base helper proof of concept.
CoffeeScript
1
star
24

pry-example

A walkthrough of the pry.js node repl/debugger.
CoffeeScript
1
star
25

zazu-js-beautify

Beautify the JavaScript in your clipboard with Zazu!
JavaScript
1
star
26

async-numbers

JavaScript
1
star
27

terminal-profile-manager

πŸ’» Automate your terminal profile/color scheme.
Ruby
1
star
28

pretty-profanity.rb

Cleans up profanity in text.
Ruby
1
star