Socket
Socket
Sign inDemoInstall

browserify-versionify

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

browserify-versionify - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

.idea/.name

2

index.js

@@ -11,3 +11,3 @@ var findRoot = require('find-root'),

version = options.version ||
require(path.join(findRoot(process.cwd()), 'package.json')).version,
require(path.join(findRoot(file), 'package.json')).version,
re = new RegExp(placeholder, 'g');

@@ -14,0 +14,0 @@

{
"name": "browserify-versionify",
"version": "1.0.4",
"version": "1.0.5",
"description": "Browserify transform to replace placeholder with package version",

@@ -5,0 +5,0 @@ "keywords": [

@@ -5,4 +5,14 @@ # browserify-versionify

By default, it replaces `__VERSION__` with the version from `package.json` in your source code.
By default, it replaces `__VERSION__` with the version from `package.json` in your source code. E.g. before:
```js
var version = '__VERSION__';
```
after:
```js
var version = '1.0.0';
```
## Usage

@@ -25,1 +35,13 @@

You can also provide a `filter` property to whitelist files to apply the transform to (e.g. `filter: /\.js$/`).
You can also add the transform to your `package.json`:
```json
{
"browserify": {
"transform": [
"browserify-versionify"
]
}
}
```
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