An open API service indexing awesome lists of open source software.

https://github.com/stencila/js

Stencila for Javascript
https://github.com/stencila/js

Last synced: about 1 month ago
JSON representation

Stencila for Javascript

Awesome Lists containing this project

README

          

## `stencila/js` : Stencila for Javascript

[![Docs](https://img.shields.io/badge/docs-API-blue.svg)](https://stencila.github.io/js/)
[![NPM](http://img.shields.io/npm/v/stencila-js.svg?style=flat)](https://www.npmjs.com/package/stencila-js)
[![Build status](https://travis-ci.org/stencila/js.svg?branch=master)](https://travis-ci.org/stencila/js)
[![Code coverage](https://codecov.io/gh/stencila/js/branch/master/graph/badge.svg)](https://codecov.io/gh/stencila/js)
[![Dependency status](https://david-dm.org/stencila/js.svg)](https://david-dm.org/stencila/js)
[![Chat](https://badges.gitter.im/stencila/stencila.svg)](https://gitter.im/stencila/stencila)

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

### Install

```bash
npm install stencila-js
```

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

### Develop

```bash
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:

```bash
npm run test-browser
```

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

```bash
make lint cover test-browser
```

### See also

The `NodeContext` in the [`stencila/node`](https://github.com/stencila/node) repository is derived from the `JavascriptContext` in this repo.