Socket
Socket
Sign inDemoInstall

browserify-wrap

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserify-wrap - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

.travis.yml

13

package.json
{
"name": "browserify-wrap",
"version": "1.0.0",
"version": "1.0.1",
"description": "browserify-wrap, a _very simple_ browserify plugin to wrap your output bundle with a prefix or a suffix (or both)",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "node node_modules/istanbul/lib/cli.js cover --report text-summary --report html --report lcov node_modules/mocha/bin/_mocha",
"coveralls": "npm install coveralls && node ./node_modules/coveralls/bin/coveralls.js < ./coverage/lcov.info"
},

@@ -14,3 +15,9 @@ "author": "Francois Leurent <131.js@cloudyks.org>",

},
"devDependencies": {},
"devDependencies": {
"browserify": "^13.0.0",
"concat-stream": "^1.5.2",
"expect.js": "^0.3.1",
"istanbul": "~0.3.18",
"mocha": "^2.2.5"
},
"repository": {

@@ -17,0 +24,0 @@ "type": "git",

@@ -1,2 +0,2 @@

browserify-wrap, a _very simple_ browserify plugin to wrap your output bundle with a prefix or a suffix (or both)
[browserify-wrap](https://github.com/131/browserify-wrap) is a _very simple_ browserify plugin to wrap your output bundle with a prefix and/or a suffix

@@ -19,7 +19,17 @@ # API

b.bundle().pipe(somwhere);
b.bundle().pipe(somewhere);
```
## wrap.concat(files [,sep])
As a common suffix might be to add some "raw" files, [browserify-wrap](https://github.com/131/browserify-wrap) provide a tiny helper for this (simple wrapper for map fs.readFileSync)
```
const wrap = require('browserify-wrap');
var suffix = wrap.concat(['file1.js', 'file2.js'], ';');
//suffix is now a concatenation of file1 & file2 (using ';' as separator)
```
# Credits

@@ -29,8 +39,7 @@ * [131](https://github.com/131)

# TODO
* Write few tests
# Keywords / shout box
browserify, prefix, suffix, wrapper, plugin, browserify-plugin
# Keywords / shout box
browserify, prefix, suffix, wrapper
[![Build Status](https://travis-ci.org/131/browserify-wrap.svg?branch=master)](https://travis-ci.org/131/browserify-wrap)
[![Coverage Status](https://coveralls.io/repos/github/131/browserify-wrap/badge.svg?branch=master)](https://coveralls.io/github/131/browserify-wrap?branch=master)

Sorry, the diff of this file is not supported yet

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