Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
repl-history
Advanced tools
Readme
This package allows you to easily include history into your custom REPL. By default it will create a .repl_history
file in it's directory and keep the most recent 200 lines. You can adjust those settings by passing appropriate options.
Install: npm i repl-history
const repl = require('repl').start()
require('repl-history')(repl)
You can pass an options object as a second parameter.
filePath
(string, [repl-history dir]/.repl_history
): Specify an alternative file. Must be a fully-qualified path.useHome
(boolean, false
): Use the user's default history file ~/.node_repl_history
. This option supercedes filePath
.maxSave
(number, 200
): The maximum number of lines to save. Set to 0
to save all lines.// specify a different file name
const path = require("path")
const repl = require('repl').start()
require('repl-history')(repl, {filePath: path.join(__dirname, "commands")})
// use the home history file, keep 600 lines
const repl = require('repl').start()
require('repl-history')(repl, {useHome: true, maxSave: 600})
FAQs
A custom history for your custom REPL
The npm package repl-history receives a total of 25 weekly downloads. As such, repl-history popularity was classified as not popular.
We found that repl-history demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.