Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
ember-cli-replace
Advanced tools
Ember CLI addon to replace text patterns in files. This is just a thin wrapper around outaTiME/applause.
ember install ember-cli-replace
Define the source files that will be used for replacements, and patterns that will be used to replace the contents of source files.
The replacements are run post-build, so files
should specify paths relative to the dist/
directory, not the app/
directory. Also note that during build templates are compiled to JavaScript, so you likely want to include **/*.js
in the list, and probably don't need **/*.hbs
.
var app = new EmberApp({
replace: {
files: ['index.html', '**/*.js'],
patterns: [
{
match: 'foo',
replacement: 'bar', // replaces "@@foo" to "bar"
},
],
enabled: true, // can be set to false to disable
},
});
Most options are passed directly to applause. For more information on these options, see applause.
Type: Array
Default: ['index.html', '**/*.js']
List of globs pointing to files to perform replacements in. Replacements are run after the build, so paths are relative to the dist/
directory.
Type: Array
Default: []
List of applause patterns used to perform replacements in source files.
Type: Boolean
Default: true
Enable string replacement during build.
See the Contributing guide for details.
This project is licensed under the MIT License.
FAQs
Replace text patterns with applause.
The npm package ember-cli-replace receives a total of 139 weekly downloads. As such, ember-cli-replace popularity was classified as not popular.
We found that ember-cli-replace 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.