Skip to content

Commit

Permalink
chore: Updated README section about Usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Marek Sierociński committed Mar 21, 2020
1 parent f27016f commit 22d783b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,25 @@

## Usage

### Install

It's UMD package, so you can use it both: client-side (browser) and server-side (node.js).
Probably you want to just intall it with `npm`:

```sh
npm install --save meval
```

And then just require it:

```js
const meval = require('meval');
```

But if you don't want to use `npm`, you can always simply download eg. minified version right from [Releases](releases).

### Run

```js
/**
* @param {String} expression Expression to be parsed
Expand Down

0 comments on commit 22d783b

Please sign in to comment.