Narcissistic Project Managers

    sicp
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.24 • Public • Published

    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. 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

    Create the file package.json first if you have not by

    $ npm init
    

    Add the following line in the package.json file

    {
      ...
      "type": "module"
    }  
    

    Next, install the package

    $ npm i sicp
    

    To use SICP library, you need to import by

    import 'sicp';
    

    For example,

    import 'sicp';
    
    const p = list("I", "love", "sicp");
    display(head(tail(p)));
    

    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.

    Install

    npm i sicp

    DownloadsWeekly Downloads

    8

    Version

    1.0.24

    License

    Apache-2.0

    Unpacked Size

    668 kB

    Total Files

    96

    Last publish

    Collaborators

    • sourceacademy