Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@circleci/circleci-config-sdk
Advanced tools
An SDK for building CircleCI Configuration files with JavaScript.
Create and manage your CircleCI config with JavaScript and TypeScript.
Using npm:
$ npm i --save @circleci/circleci-config-sdk
In Node.js:
import CircleCI from '@circleci/circleci-config-sdk';
In Browser:
var CircleCI = require('@circleci/circleci-config-sdk');
Generate a CircleCI config using TypeScript/Javascript, properly typed for full IntelliSense support.
// Instantiate new Config
const myConfig = new CircleCI.Config();
// Create new Workflow
const myWorkflow = new CircleCI.Workflow('myWorkflow');
myConfig.addWorkflow(myWorkflow);
// Create an executor instance
// Executors are used directly in jobs
// and do not need to be added to the config separately
const nodeExecutor = new CircleCI.Executor.DockerExecutor('cimg/node:lts');
// Create Job and add it to the config
const nodeTestJob = new CircleCI.Job('node-test', nodeExecutor);
myConfig.addJob(nodeTestJob);
// Add steps to job
nodeTestJob
.addStep(
new CircleCI.Command.Run({
command: 'npm install',
name: 'NPM Install',
}),
)
.addStep(
new CircleCI.Command.Run({
command: 'npm run test',
name: 'Run tests',
}),
);
// Add Jobs to Workflow
myWorkflow.addJob(nodeTestJob);
// The `stringify()` function on `CircleCI.Config` will return the CircleCI YAML equivalent.
const MyYamlConfig = myConfig.stringify();
MyYamlConfig
will hold the following string (A valid CircleCI Config).
version: 2.1
jobs:
node-test:
docker:
- image: cimg/node:lts
steps:
- run:
command: npm install
name: NPM Install
- run:
command: npm run test
name: Run tests
workflows:
myWorkflow:
jobs:
- node-test: {}
FAQs
An SDK for building CircleCI Configuration files with JavaScript.
The npm package @circleci/circleci-config-sdk receives a total of 25,117 weekly downloads. As such, @circleci/circleci-config-sdk popularity was classified as popular.
We found that @circleci/circleci-config-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.