Package Exports
- sicp
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sicp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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 Adaptation (https://source-academy.github.io/sicp/. This package therefore allows readers of the textbook to run and experiment with all JavaScript programs that appear in the textbook, using Node.js.
Setting up and Using SICP library
First, install the package
$ npm i sicpRemember to create file package.json first if you have not by
$ npm initTo use SICP library, you need to import by
import './node_modules/sicp/dist/sicp.js';For example,
import './node_modules/sicp/dist/sicp.js';
const p = list("I", "love", "sicp");
display(head(tail(p)));