browserify-versionify
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "browserify-versionify", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Browserify transform to replace placeholder with package version", | ||
@@ -12,2 +12,6 @@ "keywords": [ | ||
"main": "index.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/webpro/versionify.git" | ||
}, | ||
"author": { | ||
@@ -14,0 +18,0 @@ "name": "Lars Kappert", |
@@ -15,10 +15,10 @@ # browserify-versionify | ||
browserify().transform(versionify); | ||
browserify().transform(versionify); | ||
// Configure (default values shown) | ||
browserify().transform(versionify.configure({ | ||
placeholder: '__VERSION__', | ||
version: pkg.version | ||
// Configure (default values shown) | ||
browserify().transform(versionify.configure({ | ||
placeholder: '__VERSION__', | ||
version: pkg.version | ||
})); | ||
You can also provide a `filter` property to whitelist files to apply the transform to (e.g. `filter: /\.js$/`). |
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 repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
12845
6
1