Browserify transform to replace placeholder with package version.
By default, it replaces __VERSION__
with the version from package.json
in your source code. E.g. before:
var version = '__VERSION__';
after:
From command line:
browserify -t browserify-versionify
From Node.js:
browserify().transform('browserify-versionify');
// Configure (default values shown)
browserify().transform('browserify-versionify', {
placeholder: '__VERSION__',
version: pkg.version
});
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
:
{ "browserify": { "transform": [ "browserify-versionify" ] } }
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4