New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

LISP.js

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

LISP.js

A simple LISP parser and executer.

latest
Source
npmnpm
Version
0.0.6
Version published
Maintainers
1
Created
Source

LISP.js

Build Status

Parse and execute LISP code in JavaScript.

API

For parsing the code, the parse function can be used. This will return an array with all pieces.

parse('(+ 2 3)'); // ['+', 2, 3]

Executing code can be done with the exec function:

exec('(+ 3 (- 10 5))'); // 8

LISP.js in Node.js

var exec = require('LISP.js').exec;
exec('(+ 1 2)');

Install with NPM

You can install LISP.js with npm:

npm install LISP.js

or add LISP.js to your package.json dependencies:

	"dependencies": {
		"LISP.js": ">=0.0.6"
	}

LISP.js in the Browser

Building LISP.js for the browser is easy with wrapup.

make build

This command will create a JS file that will export a global LISP variable with LISP.exec() and LISP.parse().

Alternatively you could use this to have global parse and exec functions.

wrup -r parse ./parse -r exec ./exec

Keywords

LISP

FAQs

Package last updated on 15 Sep 2012

Did you know?

Socket

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.

Install

Related posts