browserify-wrap
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
3177
5
0
44
5