2.0.1 • Published 8 years ago

replem v2.0.1

Weekly downloads
10
License
ISC
Repository
github
Last release
8 years ago

repl'em npm version

Instantly try npm modules in REPL environment.

features

  • Install modules from npm, optionally at specific version.
  • Install modules directly from GitHub at particular commit or branch.
  • Use a custom REPL like coffee-script/repl.
  • Retains history of past sessions.

install

$ npm install -g replem

usage

replem [options] [<pkg>[:<alias>]]...

        --repl     require a custom repl
    -v, --verbose  enable verbose output
    -h, --help     displays help

Launches a REPL session with specified packages installed and available in the context.

arguments

Uses npm install internally, so similar types of arguments are accepted.

For example:

  • Install a specific version: replem lodash@3.0.0
  • Install a module from GitHub: replem githubname/reponame#commit

By postfixing module's name with :<alias> you can set an alias for a module. Module's exports will be available under this name.

$ replem ramda:R
Installed into REPL context:
 - ramda@0.17.1 as R
> R.inc(1) // 2

With a bang (!) after everything, all module's properties will be directly available in context:

$ replem ramda!
Installed into REPL context:
 - ramda@0.17.1 as ramda
> reduce === ramda.reduce
true

custom repl

To use a custom repl, install it to ~/.replem/node_modules first:

$ npm install --prefix ~/.replem coffee-script
$ replem --repl coffee-script/repl lodash
> (n * 2 for n in [0..5])
Array [ 0, 2, 4, 6, 8, 10 ]

requiring from inside installed modules

The REPL context is provided with the function replem.require() that can be used to require from under ~/.replem/node_modules.

caveats

  • Multiple versions of the same module cannot be used concurrently.
2.0.1

8 years ago

2.0.0

8 years ago

1.10.5

9 years ago

1.10.4

10 years ago

1.10.3

10 years ago

1.10.2

10 years ago

1.10.1

10 years ago

1.10.0

10 years ago

1.9.2

10 years ago

1.9.1

10 years ago

1.9.0

10 years ago

1.8.4

10 years ago

1.8.3

10 years ago

1.8.2

10 years ago

1.8.1

10 years ago

1.8.0

10 years ago

1.7.0

10 years ago

1.6.1

10 years ago

1.6.0

10 years ago

1.5.0

10 years ago

1.4.2

10 years ago

1.4.1

10 years ago

1.4.0

10 years ago

1.3.0

10 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago