Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dhowe authored Nov 18, 2023
1 parent 7800c24 commit eb83bd4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ RiScript is a micro-language designed for writers working in computational media

### Installation

* For [node](#with-nodejs-and-npm): `npm install riscript`
```let { RiScript } = require('riscript');```
* For [node](#with-nodejs-and-npm): `$ npm install riscript` and then ```let { RiScript } = require('riscript');```
* For [browsers](#a-simple-browser-sketch): ```<script src="https://unpkg.com/riscript"></script>```
* For [esm](#an-esm-browser-sketch): ```import { RiScript } from "https://esm.sh/riscript";```
* For [developers](#developing)
Expand All @@ -17,7 +16,7 @@ RiScript is a micro-language designed for writers working in computational media

```javascript

import { RiScript } from "https://esm.sh/riscript"; // for esm
import { RiScript } from "https://esm.sh/riscript";

let script = "[#name=[Jane | Bill]] was from [#place=[New York | Berlin | Shanghai]]."
+ " $name finds $place cold and wet in winter.";
Expand Down

0 comments on commit eb83bd4

Please sign in to comment.