
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.
@scaffit/core
Advanced tools
Core utilities for Scaffit - Framework detection, AST manipulation, file operations, and scaffold execution
Core utilities for Scaffit - Framework detection, AST manipulation, file operations, and scaffold execution.
import { FileOperations, ASTEngine, ScaffoldExecutor } from '@scaffit/core';
// Detect project framework
const framework = FileOperations.detectFramework('./my-project');
const projectInfo = FileOperations.detectProject('./my-project');
// Parse and modify files
const ast = ASTEngine.parseFile('./src/index.ts');
ASTEngine.addImport('./src/index.ts', 'react', ['useState']);
// Execute scaffold
const result = await ScaffoldExecutor.executeScaffold(scaffold, config, './my-project');
detectFramework(rootDir) - Detect project framework (Next.js, React, Vue, Angular, Svelte, Express, Fastify, Node.js)detectProject(rootDir) - Detect framework and configurationreadFile(filePath) - Safely read filewriteFile(filePath, content) - Safely write fileaddDependency(rootDir, name, version, isDev) - Add package dependencyaddScript(rootDir, name, command) - Add npm scriptgetFrameworkConfigPaths(framework) - Get framework-specific directory pathsgetFrameworkExtensions(framework) - Get framework-specific file extensionsgetFrameworkDependencies(framework) - Get recommended dependencies for frameworkparseFile(filePath) - Parse JS/TS to ASTaddImport(filePath, source, specifiers) - Add import statementaddExport(filePath, name, value) - Add export statementaddFunction(filePath, name, params, body) - Add functionapplyModifications(filePath, modifications) - Apply multiple changesrenderTemplate(template, variables) - Simple variable replacementrenderTemplateWithConditionals(template, variables) - With if/unless blocksgenerateFileContent(templatePath, variables) - Generate file contentexecuteScaffold(scaffold, config, projectRoot) - Run scaffold installationgetScaffoldPreview(scaffold, config, projectRoot) - Preview changescreateFileFromTemplate(filePath, templateName, variables) - Create fileinstallDependencies(projectRoot, packageManager) - Install depsFAQs
Core utilities for Scaffit - Framework detection, AST manipulation, file operations, and scaffold execution
We found that @scaffit/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.