
Security News
AI Agent Submits PR to Matplotlib, Publishes Angry Blog Post After Rejection
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.
is-browser-transform
Advanced tools
Static browserify transform for "is-browser" npm module. Perfect to run just before the uglifyify transform and in conjunction with the envify transform.
npm install is-browser-transform
To replace all instances of require('is-browser') with the literal true.
browserify -g is-browser-transform ./index.js > bundle.js
or
var browserify = require('browserify')
var fs = require('fs')
var bundler = browserify(__dirname + '/index.js')
bundler.transform({
global: true
}, require('is-browser-transform'))
bundler.bundle()
.pipe(fs.createWriteStream(__dirname + '/bundle.js'))
To replace all instances of require('is-browser') with the literal true and replace all instances of require('the-answer-to-everything') with the literal 42:
var browserify = require('browserify')
var fs = require('fs')
var bundler = browserify(__dirname + '/index.js')
bundler.transform({
global: true,
modules: { 'the-answer-to-everything': 42 }
}, require('is-browser-transform'))
bundler.bundle()
.pipe(fs.createWriteStream(__dirname + '/bundle.js'))
This module understands strings, numbers and booleans as constant values of modules.
MIT
FAQs
Static browserify transform for "is-browser" npm module
The npm package is-browser-transform receives a total of 5 weekly downloads. As such, is-browser-transform popularity was classified as not popular.
We found that is-browser-transform demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.

Security News
HashiCorp disclosed a high-severity RCE in next-mdx-remote affecting versions 4.3.0 to 5.x when compiling untrusted MDX on the server.

Security News
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.