Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nice-repl

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nice-repl

zero-config repl for your project

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16
decreased by-36%
Maintainers
1
Weekly downloads
 
Created
Source

nice-repl

Extension of https://github.com/sloria/local-repl, a very low-key script designed to make a nice repl for a nodejs project.

How to use

Add to project, optionally create a .replrc.js in the project, run yarn nice-repl

yarn add -D nice-repl
yarn nice-repl

What's this do that local-repl doesn't?

This is a zero-config repl for your project, and instead of writing a .replrc.js where you can configure your repl and export a "context" object, with nice-repl you don't have to think that hard. You just write a .replrc.js and it will simply run the script in a nodejs context. All of your local variables leftover from that script will be available in the nice-repl context.

local-repl did not have repl history. nice-repl is nicer than that. It will create a ~/.nice-repl directory and save a repl history in a directory it makes based on the full project directory name. You can set the environment variable NODE_REPL_HISTORY_SIZE to configure the amount of lines you want to save in the history, same as the node.js REPL.

Author

Raymond Pulver IV

Inspired by my nice, who only likes things that are nice. I believe one day she will like this repl.

FAQs

Package last updated on 02 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc