
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
@form8ion/javascript-core
Advanced tools
core logic for form8ion tools related to JavaScript, like javascript-scaffolder and lift-javascript
coverageShouldBeReported# javascript-core
core logic for form8ion tools related to JavaScript, like javascript-scaffolder and lift-javascript
$ npm install @form8ion/javascript-core --save-prod
const {scaffoldChoice, installDependencies, PROD_DEPENDENCY_TYPE} = require('./lib/index.cjs');
(async () => {
await scaffoldChoice(
{foo: {scaffolder: options => options}},
'foo',
{bar: 'baz'}
);
await installDependencies(['foo', 'bar'], PROD_DEPENDENCY_TYPE);
})();
scaffoldChoiceA generic function that executes the scaffolder function from a provided map
of options based on the chosen option name.
Takes three unnamed arguments:
choices object (required)scaffolder: function (required) scaffolds the choice optionschoice string (required)Name of the choice. SHOULD match a key from the choices object.
options object (optional)options object to be passed as the only argument to the chosen scaffolder
validateOptionsValidates provided options against a joi schema.
schema (required)joi schema
options (required)options to compare to the provided schema
installDependenciesA function that installs the provided package dependencies.
Takes four unnamed arguments:
dependencies list of strings (required)The list of package names to be installed.
dependenciesType string (required)Defines if the provided list of package names should be installed as prod or
dev dependencies. If "dev" is provided, the list will be installed with the
--save-exact flag.
projectRoot string (optional)Filesystem path to the root of the project
packageManger string (optional)Specifies the name of the package manager to be used for dependency
installation. Defaults to npm
Constants to define the valid options for dependenciesType
PROD_DEPENDENCY_TYPEDEV_DEPENDENCY_TYPEprojectTypesConstants defining the types of possible JavaScript projects
APPLICATIONPACKAGECLIpackageManagersConstants defining the available package managers
NPMYARNdialectsConstants defining the available JavaScript source dialects
COMMON_JSBABELESMTYPESCRIPTprojectTypeShouldBePublishedPredicate function to determine if the project-type is one that should be published
Takes one argument:
projectType string (required)Should be one of the project-type options
coverageShouldBeReportedPredicate function to determine if coverage should be reported
Takes two arguments:
visibility string (required)visibility of the project (Public or Private)
tests object (required)unit boolean (optional)
Whether the project will be unit-tested$ nvm install
$ npm install
$ npm test
FAQs
core logic for form8ion tools related to JavaScript, like javascript-scaffolder and lift-javascript
The npm package @form8ion/javascript-core receives a total of 4,244 weekly downloads. As such, @form8ion/javascript-core popularity was classified as popular.
We found that @form8ion/javascript-core demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.