New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bff

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bff - npm Package Compare versions

Comparing version

to
0.1.1

cli.js

9

package.json
{
"name": "bff",
"version": "0.0.1",
"version": "0.1.1",
"description": "Browserify Friend - it's as if browserify was built into the browser.",

@@ -10,3 +10,3 @@ "dependencies": {

},
"bin": "server.js",
"bin": "cli.js",
"devDependencies": {},

@@ -21,2 +21,7 @@ "scripts": {

],
"files": [
"cli.js",
"lib",
"README.md"
],
"author": "Toby Ho",

@@ -23,0 +28,0 @@ "license": "MIT",

Browserify Friend
======================
Browserify Friend (BFF) makes it as if browserify was built into the browser.
Browserify Friend (BFF) - it is as if browserify was built into the browser.

@@ -10,9 +10,45 @@ ## Install

## Usage
## Development Server
In a directory run:
> bff
Serving the contents of /Users/airportyh/Home/Code/bff on port 3000.
> bff server
Serving contents on port 3000.
This will start a static file web server on port 3000 except that Javascript files will automatically get browserified.
## Build the Site
In the same directory run:
> bff build
Successfully browserified your site in 'build'.
Now your site has been browserified within the `build` directory and it can be served by a static web server.
## Example
To try this out, start in a new empty directory. Let's install `domify` a library to convert an html string into a DOM element
npm install domify
make an `index.html` file with just this
<body>
<script src="index.js"></script>
</body>
Make an `index.js`
var domify = require('domify')
document.body.appendChild(domify('<h1>Hello World with Browserify!</h1>'))
Start the bff server
bff server
Navigate to `http://localhost:3000` and see it work.