
Product
Introducing Webhook Events for Pull Request Scans
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
keyword-brunch
Advanced tools
A brunch plugin to replace predefined keywords of public files after every compilation.
Add "keyword-brunch": "x.y.z"
to package.json
of your brunch app.
Pick a plugin version that corresponds to your minor (y) brunch version.
If you want the latest repository version, install the plugin by running the following command:
npm install --save "git+ssh://git@github.com:huafu/keyword-brunch.git"
Usage:
module.exports =
keyword:
# file filter
filePattern: /\.(js|css|html)$/
# Extra files to process which `filePattern` wouldn't match
extraFiles: [
"public/humans.txt"
]
# By default keyword-brunch has these keywords:
# {!version!}, {!name!}, {!date!}, {!timestamp!}
# using information from package.json
map:
myDate: -> (new Date).toISOString()
someString: "hello"
The plugin will replace any keyword in map surrounded with '{!' and '!}' by the result of the given associated function or with the given associated string. The functions are re-calculated on every build, but only once per build, not at every file. So you can make some keywords for the current git repository branch, commit hash, ...
FAQs
Adds keyword processing support to brunch.io application packager.
The npm package keyword-brunch receives a total of 84 weekly downloads. As such, keyword-brunch popularity was classified as not popular.
We found that keyword-brunch 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.
Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.