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

repl.history

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

repl.history - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

10

index.js

@@ -12,6 +12,12 @@ var fs = require('fs');

var fd = fs.openSync(file, 'a'), reval = repl.eval;
var wstream = fs.createWriteStream(file, {
fd: fd
});
wstream.on('error', function(err) {
throw err;
});
repl.rli.addListener('line', function(code) {
if (code && code !== '.history') {
fs.write(fd, code + '\n');
wstream.write(code + '\n');
} else {

@@ -27,3 +33,3 @@ repl.rli.historyIndex++;

repl.commands['.history'] = {
repl.commands['history'] = {
help : 'Show the history',

@@ -30,0 +36,0 @@ action : function() {

2

package.json

@@ -12,3 +12,3 @@ {

"license": "MIT",
"version": "0.1.3",
"version": "0.1.4",
"repository": {

@@ -15,0 +15,0 @@ "type": "git",

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