• Stars
    star
    132
  • Rank 274,205 (Top 6 %)
  • Language
    JavaScript
  • Created about 9 years ago
  • Updated over 7 years ago

Reviews

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

Repository Details

🚴 Instantly try npm modules in REPL environment

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 [email protected]
  • 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:
 - [email protected] 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:
 - [email protected] 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.

More Repositories

1

ramda-cli

🐏 A CLI tool for processing data with functional pipelines
LiveScript
569
star
2

treis

πŸ”¦ A simple tool to debug and observe functions
JavaScript
90
star
3

taim

βŒ› Measure execution time of functions and promises
JavaScript
47
star
4

tmpl-cli

Simple, pipeable template rendering on the command-line
LiveScript
42
star
5

markdown-table-cli

Format JSON as Markdown table on the command-line
LiveScript
41
star
6

alfred-ramda-workflow

🐏 Ramda documentation for Alfred 2
Python
30
star
7

html-table-cli

Create interactive tables from JSON on the command-line
JavaScript
26
star
8

ramda-destruct

πŸ’₯ Clean up required or imported ramda functions
JavaScript
26
star
9

tgreddit

Get the top posts of your favorite subreddits to Telegram
Rust
24
star
10

ez-jenkins

:shipit: cli for jenkins ci
LiveScript
20
star
11

ramda-t

JavaScript
14
star
12

gitlab-merge-request

Create merge requests on Gitlab from command-line
Ruby
14
star
13

memrise-chrome-ext

An unofficial memrise extension to help you take care of your plants
JavaScript
13
star
14

vmsq

query valve's master servers
JavaScript
12
star
15

ram-bot

CoffeeScript
11
star
16

ghtool

A command-line tool for interacting with Github API with some specialized features oriented around Checks
Rust
11
star
17

twitch-cli

Simple twitch tool for command-line
Shell
10
star
18

ytdlwatch

A long-running Go program that watches a Youtube playlist for new videos, and downloads them using yt-dlp or other preferred tool.
Go
10
star
19

memrise-forgive-typos

JavaScript
9
star
20

ramda-json-docs

Ramda documentation in JSON format
Shell
8
star
21

pr-buddy

PR monitor for GitHub as a desktop app
TypeScript
7
star
22

irccloud-alwaysmarkread

Always mark a channel read when opened, similarly to Irssi
JavaScript
7
star
23

flyd-playground

JavaScript
7
star
24

ruoste_bot

Discord bot for Rust (the game)
TypeScript
6
star
25

npm-install-to

πŸ“¦ Install npm modules programmatically to given path
JavaScript
5
star
26

sinatra-heroku-skeleton

Skeleton for a Sinatra app on Heroku β€” Includes deployment process with JavaScript minification
Ruby
5
star
27

runtime-npm-install

πŸ“¦ Install npm modules programmatically at runtime
JavaScript
5
star
28

reittiopas

Ruby library for the Reittiopas GET API
Ruby
4
star
29

livescript-cli-seed

🌱 a template project for LiveScript CLI applications
Makefile
4
star
30

snipget

view pastebin snippets using Irssi
Perl
4
star
31

tunnit

simple command-line time tracking for coders
LiveScript
4
star
32

irccloud-bufswitch

Switch buffers quickly without a mouse
JavaScript
4
star
33

json-watch

A small cli tool for monitoring JSON data for new items
Go
3
star
34

flyd-keyboard

Keyboard as Flyd streams
JavaScript
3
star
35

easyuo

random ultima online scripts I found lurking on my pc, mostly mine
3
star
36

flyd-droprepeats

Drops consecutively repeated values from a Flyd stream
JavaScript
3
star
37

testonly.nvim

TestOnly.nvim is a plugin for toggling test exclusivity
Lua
2
star
38

autohotkey

random AutoHotkey scripts written by me
2
star
39

my-ramda-ext

JavaScript
2
star
40

ramda-json-docs-generator

LiveScript
2
star
41

memrise-hotkeys

Makes the hotkeys for multiple choice questions more comfortable on Memrise
2
star
42

armory

world of warcraft armory plugin for rbot
Ruby
2
star
43

wordlists

1
star
44

simpleyql

a tiny wrapper for YQL (Yahoo! Query Language)
JavaScript
1
star
45

pg-explain

Shell
1
star
46

hook-stream

Hook into writes of a stream
JavaScript
1
star
47

cli-goodies

Shell
1
star
48

meas

Measure duration of execution of a command
Rust
1
star
49

aslak

a slack dashboard
JavaScript
1
star
50

pm2-yaml

JavaScript
1
star
51

hubot-ramda-docs

JavaScript
1
star
52

telegram-tori-bot

Telegram bot created with the intent of making selling stuff on tori.fi as streamlined as possible.
Go
1
star
53

git-commit-auto-message

Commit with a generic commit message based on the first staged filename and action performed on the file
Shell
1
star
54

walldisplay

Service agnostic wall display for CI builds
JavaScript
1
star
55

editor-react-aug2014

JavaScript
1
star
56

gifsickle

gifsicle wrapper for node
JavaScript
1
star
57

site

my site
JavaScript
1
star
58

hubot-eval-js

JavaScript
1
star
59

lasertag-cal

HTML
1
star