Stencila for Javascript
JavaScript Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
.gitignore
.npmignore
.travis.yml
Makefile
README.md
make.js
package-lock.json
package.json
rollup.config.js

README.md

stencila/js : Stencila for Javascript

Docs NPM Build status Code coverage Dependency status Chat

Provides a JavascriptContext for executing Javascript code from within Stencila documents.

Install

npm install stencila-js

API documentation is available at https://stencila.github.io/js/.

Develop

git clone git@github.com:stencila/js.git
cd js
npm install
npm run lint
npm test
npm run cover

To run tests in the browser:

npm run test-browser 

There's also a Makefile if you prefer to run tasks that way e.g.

make lint cover test-browser

See also

The NodeContext in the stencila/node repository is derived from the JavascriptContext in this repo.