
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.
This JavaScript npm package provides all functions and constants that are assumed to be predeclared in the textbook Structure and Interpretation of Computer Programs, JavaScript Edition (SICP JS). This package therefore allows readers of the textbook to run and experiment with all JavaScript programs that appear in the textbook, using Node.js.
Alternatively, you can use the Source Academy, which has all necessary functions and constants predeclared.
You will need node version 16, and yarn.
Create the file package.json first if you have not done that, by running
$ yarn init
Add the following line in the package.json file
{
...
"type": "module"
}
Install the package sicp as follows:
$ yarn add sicp
To use any functions in the sicp package, you need to import them in your program by writing
import { <Functions here> } from 'sicp';
For example, if your file test.js contains:
import { display, head, list, tail } from 'sicp';
const p = list("I", "love", "sicp");
display(head(tail(p)));
you can check that everything is in place and then run your program:
% ls
node_modules package.json test.js yarn.lock
% node test.js
"love"
The documentation of the functions and constants provided by the sicp package is
available here.
This package is generated from the GitHub repository js-slang in the GitHub organization source-academy. Please report issues and bugs in this repository, using the prefix sicp: in the title.
To install a new version of sicp on npm, bump
the version number in package.json and then run
% cd ..
% yarn build_sicp_package
% cd sicp_publish
% npm publish
FAQs
module to run programs of SICP JS in node.js
The npm package sicp receives a total of 55 weekly downloads. As such, sicp popularity was classified as not popular.
We found that sicp 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
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.