
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
Read-Evaluate-Print-Loop environment for JavaScript.
npm i bare-repl
const { start } = require('bare-repl')
const repl = start()
const repl = start([options])Options include:
{
prompt: string, // sets repl prompt
useColors: boolean, // toogles ANSI style codes to colorize the output
writer: (message) => message, // converts repl output
input: stream, // sets repl input stream
output: stream, // sets repl output stream
eval: (cmd) => {}, // sets eval function
useGlobal: boolean // evaluates against the shared global instead of an isolated context per session
}
repl.defineCommand(keyword, { help, action })Define a repl command keyword.
repl.defineCommand('greet', {
help: 'Greetings',
action: () => console.log('hello')
})
bare-repl
> .greet
hello
repl.contextSet execution context.
repl.context.f = () => console.log('Hello from context')
bare-repl
> f()
Hello from context
Apache-2.0
FAQs
Read-Evaluate-Print-Loop environment for JavaScript
The npm package bare-repl receives a total of 9,957 weekly downloads. As such, bare-repl popularity was classified as popular.
We found that bare-repl demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.