
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@libria/scaffold-core
Advanced tools
Shared types and utilities used by @libria/scaffold and its template plugins.
npm install @libria/scaffold-core
ScaffoldTemplatePlugin<TOpt> — Interface that every template plugin must implement:
interface ScaffoldTemplatePlugin<TOpt extends object = object> {
readonly argument: string;
getOptions(options: ScaffoldTemplatePluginOptions & Partial<ResolvedOptions<TOpt>>): Promise<Partial<{ [k in keyof TOpt]: ScaffoldTemplatePluginOption }>>;
execute(options: ExecuteOptions<TOpt>): Promise<void>;
}
ScaffoldTemplatePluginOption<TValue> — Defines a single CLI option for a template:
type ScaffoldTemplatePluginOption<TValue = string | boolean | number> = {
readonly flags: string;
readonly required?: boolean;
readonly description: string;
readonly defaultValue?: TValue | TValue[];
readonly choices?: TValue[];
};
ScaffoldTemplatePluginOptions — Base options passed to every template:
type ScaffoldTemplatePluginOptions = {
name: string;
dryRun?: boolean;
force?: boolean;
};
SCAFFOLD_TEMPLATE_PLUGIN_TYPE — Plugin type constant ("scaffold-template").
replacePlaceholders(targetDir, replacements) — Recursively walks a directory and replaces all occurrences of placeholder strings in .ts, .js, .json, .md, and .txt files.
await replacePlaceholders('./my-project', {
'{PACKAGE_NAME}': 'my-lib',
'{DESCRIPTION}': 'A cool library',
});
MIT
FAQs
Core types and utilities for @libria/scaffold
We found that @libria/scaffold-core demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.