Skip to content

Commit

Permalink
ignore: update instructions for ES6 (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
forbesjo authored Mar 21, 2018
1 parent c06c3d5 commit e06aa1e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ var mpdParser = require('mpd-parser');
var parsedManifest = mpdParser.parse(manifest, manifestUrl);
```

With ES6:
```js
import { parse } from 'mpd-parser';

const parsedManifest = parse(manifest, manifestUrl);
```

### RequireJS/AMD

When using with RequireJS (or another AMD library), get the script in whatever way you prefer and `require` the parser as you normally would:
Expand Down

0 comments on commit e06aa1e

Please sign in to comment.