https://github.com/stencila/js
Stencila for Javascript
https://github.com/stencila/js
Last synced: about 1 month ago
JSON representation
Stencila for Javascript
- Host: GitHub
- URL: https://github.com/stencila/js
- Owner: stencila
- Created: 2016-12-22T00:52:06.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-10-03T02:51:11.000Z (over 7 years ago)
- Last Synced: 2026-01-01T09:21:50.305Z (5 months ago)
- Language: JavaScript
- Size: 1.81 MB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## `stencila/js` : Stencila for Javascript
[](https://stencila.github.io/js/)
[](https://www.npmjs.com/package/stencila-js)
[](https://travis-ci.org/stencila/js)
[](https://codecov.io/gh/stencila/js)
[](https://david-dm.org/stencila/js)
[](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.