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

budo

Package Overview
Dependencies
Maintainers
1
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

budo - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

16

index.js

@@ -23,2 +23,8 @@ var create = require('./lib')

if (isSubargError(args)) {
console.error("ERROR: You must use -- for browserify's subarg syntax")
console.error("Example:\n budo index.js -- -t [ babelify --extensions .babel ]")
process.exit(1)
}
//user can silent budo with --no-stream

@@ -65,2 +71,12 @@ if (opts.stream !== false) {

})
}
function isSubargError(args) {
var end = args.indexOf('--')
if (end === -1)
end = Number.MAX_VALUE
var sub1 = args.indexOf('[')
var sub2 = args.indexOf(']')
return (sub1 >= 0 && sub1 < end) || (sub2 >= 0 && sub2 < end)
}

5

package.json
{
"name": "budo",
"version": "3.1.0",
"version": "3.1.1",
"description": "a browserify server for rapid prototyping",

@@ -57,3 +57,4 @@ "main": "index.js",

"live-plugin": "./bin/cmd.js example/app.js:bundle.js --dir example --live-plugin -v | garnish",
"brfs": "./bin/cmd.js example/app.js:bundle.js --dir example -v -- -t [ brfs --foo ] | garnish",
"brfs1": "./bin/cmd.js example/app.js:bundle.js --dir example -v -t [ brfs --foo ] | garnish",
"brfs2": "./bin/cmd.js example/app.js:bundle.js --dir example -v -- -t [ brfs --foo ] | garnish",
"remap": "./bin/cmd.js example/*.js --serve bundle2.js --dir example --live -v | garnish"

@@ -60,0 +61,0 @@ },

17

README.md

@@ -19,7 +19,8 @@ # budō

# enable LiveReload on html/css/js changes
# show timing information on re-bundle
budo index.js --verbose
budo index.js --verbose --live
# transpile ES6 and trigger LiveReload on html/css/js change
budo index.js --live --transform babelify
# pass some options to browserify
budo index.js --live -- -t babelify --full-paths
```

@@ -53,3 +54,3 @@

Details for `budo` command-line interface. Other options like `--transform` are sent to browserify/watchify.
Details for `budo` command-line interface. Other options will be sent to browserify.

@@ -77,2 +78,8 @@ ```sh

Any options after `--` will be sent unchanged to browserify. This is currently required for subarg syntax. Example:
```js
budo index.js --live -- -t [ babelify --exetensions .es6 ]
```
### API

@@ -106,2 +113,2 @@

MIT, see [LICENSE.md](http://github.com/mattdesl/budo/blob/master/LICENSE.md) for details.
MIT, see [LICENSE.md](http://github.com/mattdesl/budo/blob/master/LICENSE.md) for details.
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