Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
broccoli-string-replace
Advanced tools
Broccoli plugin to replace a matched string with a replacement.
Uses String.prototype.replace to replace matched patterns.
npm install --save-dev broccoli-string-replace
Replace VERSION_STRING
with 1.6.5
in app/main.js
:
var replace = require('broccoli-string-replace');
var tree = replace('app', {
files: [ 'main.js' ],
pattern: {
match: /VERSION_STRING/g,
replacement: '1.6.5'
}
});
replace(inputTree, options)
options.files
{Array}
The list of files to process the list of patterns against. This is an array of strings.
options.patterns
{Array}
A list of objects with match
and replacement
properties.
options.pattern
{Object}
A single pattern with match
and replacement
properties.
I know, right?
Running the tests:
npm install
npm test
This project is distributed under the MIT license.
FAQs
Broccoli plugin to replace a matched string with a replacement.
The npm package broccoli-string-replace receives a total of 37,145 weekly downloads. As such, broccoli-string-replace popularity was classified as popular.
We found that broccoli-string-replace demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.