Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
This is a browserify development server inspired by beefy and wzrd, but specifically focused on incremental reloading and LiveReload integration (including CSS injection).
Note that budo needs a copy of watchify
installed. It can be either local (preferred) or global.
npm install budo watchify -g
The simplest use cases will start up a server with a default index.html
and incrementally bundle your source on filesave. The requests are delayed until the bundle has finished, so you won't be served stale or empty bundles if you refresh the page mid-update. Examples:
# serve file on port 9966
budo index.js
# show timing information on re-bundle
budo index.js --verbose
# transpile ES6 and trigger LiveReload on html/css/js change
budo index.js --live --transform babelify
Then open http://localhost:9966 to see the content in action.
To pretty-print in terminal, garnish, bistre or another ndjson-based stream can be used:
budo index.js | garnish
See docs for more features. PRs/suggestions/comments welcome.
Details for budo
command-line interface. Other options like --transform
are sent to browserify/watchify.
Usage:
budo [entries] [opts]
Options:
--help, -h show help message
--port the port to run, default 9966
--host the host, default "localhost"
--dir the directory to serve, and the base for --outfile
--live enable LiveReload integration
--live-plugin enable LiveReload but do not inject script tag
--live-port the LiveReload port, default 35729
--verbose, -v verbose timing information for re-bundles
--poll=N use polling for file watch, with optional interval N
By default, the --debug
option will be sent to browserify (for source maps). If this is unwanted, you can use --no-debug
or --debug=false
to disable source maps.
The API mirrors the CLI except you must provide a stream
for logging, and it does not attempt to auto-portfind.
var budo = require('budo')
budo('./src/index.js', {
live: true, //live reload
stream: process.stdout, //log to stdout
port: 8000 //use this port
}).on('connnect', function(ev) {
//...
})
See API usage for more details.
The original motivation for making budō was to build a simple tool around Chrome Script Injection. This has since split off into its own repository: budo-chrome to minimize the scope of budō.
MIT, see LICENSE.md for details.
FAQs
a browserify server for rapid prototyping
The npm package budo receives a total of 6,936 weekly downloads. As such, budo popularity was classified as popular.
We found that budo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.