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.1 to 1.0.2

LICENSE

11

index.js
"use strict";
const fs = require('fs');
const through = require('through2');
const fs = require('fs');
const Transform = require('stream').Transform;
const wrapper = function(b, opts) {

@@ -15,3 +16,3 @@

var write = function(buf, enc, next) {
var transform = function(buf, enc, next) {
if(!prefixed)

@@ -25,3 +26,3 @@ this.push(opts.prefix);

var end = function() {
var flush = function() {
if(opts.suffix)

@@ -32,3 +33,3 @@ this.push(opts.suffix)

b.pipeline.get("wrap").unshift(through(write, end));
b.pipeline.get("wrap").unshift(new Transform({transform, flush}));
})

@@ -35,0 +36,0 @@ }

{
"name": "browserify-wrap",
"version": "1.0.1",
"version": "1.0.2",
"description": "browserify-wrap, a _very simple_ browserify plugin to wrap your output bundle with a prefix or a suffix (or both)",

@@ -12,5 +12,6 @@ "main": "index.js",

"license": "ISC",
"dependencies": {
"through2": "^2.0.1"
"engines": {
"node": ">=4.0.0"
},
"dependencies": {},
"devDependencies": {

@@ -17,0 +18,0 @@ "browserify": "^13.0.0",

[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
[![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)
[![Version](https://img.shields.io/npm/v/browserify-wrap.svg)](https://www.npmjs.com/package/browserify-wrap)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)
# API

@@ -42,3 +49,1 @@ ```

[![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)
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