
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
project-templater
Advanced tools
This is a simple Node module for creating a new project from a template directory, and supports replacing placeholders in files with custom values.
yarn add project-templater
To use project-templater, it's as simple as the following code:
// Load module
var templater = require('templater');
// Copy from the template folder to a new folder
templater.copy('../template-project', './new-project', {
// This is the context object. Placeholders in the format
// of `$((key))` will be replaced with the appropriate
// value from this object.
name: 'MyProject',
someKey: 'a value'
}, (file) => file.endsWith('.js'));
copy(template, destination, context, filter?)template: stringdestination: stringcontext: Objectfilter?: (filename: string) => booleanfalse on a file, that file will not be copied. All file names passed to this callback are relative to the template folder.<template>/myFile.txt:This is my file about $((projectName)). Description: $((description)).
context object:{
projectName: 'My Project',
description: 'A fancy templated project'
}
<destination>/myFile.txt:This is my file about My Project. Description: A fancy templated project.
FAQs
A Node module for templating projects
We found that project-templater 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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.