Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Debug inline state with a streaming repl.
var humbug = require('humbug');
(function (x) {
var z = 33;
(function (w) {
var y = 222222;
eval(humbug);
})(1111);
})(5555)
$ node example/debug.js
> x
5555
> y
222222
> z * 1000
33000
>
var humbug = require('humbug');
var fs = require('fs');
(function (x) {
var z = 33;
(function (w) {
var y = 222222;
fs.createReadStream('in.txt')
.pipe(eval(humbug))
.pipe(fs.createWriteStream('out.txt'))
;
})(1111);
})(5555)
input file:
x
y + z
output file:
> 5555
> 222255
>
There are no methods! This module just exports a string that you can eval()
whenever you want to make a new repl. This is the only way I can think of to
easily get at local variables.
var humbug = require('humbug')
Create a repl at the present context.
Returns a readable/writable repl stream so you can pipe this over the network or to a browser.
If you don't .pipe()
to the repl stream by the nextTick, process.stdin
will
be used.
If you don't .pipe()
from the repl stream by the nextTick, process.stdout
will be used.
With npm do:
npm install humbug
MIT
FAQs
debug inline state with a streaming repl
We found that humbug 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.