Skip to content

Commit

Permalink
Support for older browsers added using babel and esm version of code …
Browse files Browse the repository at this point in the history
…added as well
  • Loading branch information
miadabdi committed Oct 15, 2020
1 parent 28f47d9 commit c973f8b
Show file tree
Hide file tree
Showing 5 changed files with 1,979 additions and 195 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,7 @@ To use the package in browser just call `edjsParser` class:
const parser = new edjsParser(config, customParsers, embedMarkup);
```

To import in Front-end code through NPM:

```javascript
import edjsParser from "editorjs-parser/build/Parser.node";
```

To import the package in Node:
To import the package in Node and Front-end code:

```javascript
const edjsParser = require("editorjs-parser");
Expand Down
Loading

0 comments on commit c973f8b

Please sign in to comment.