Skip to content

Commit

Permalink
Merge pull request #2030 from openzim/readme-esm
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
kelson42 authored Jun 17, 2024
2 parents 251b814 + 3d3be86 commit 67c8cdf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# MWoffliner
65;6800;1c

MWoffliner is a tool for making a local offline HTML snapshot of any
online [MediaWiki](https://mediawiki.org) instance. It goes through
all online articles (or a selection if specified) and create the
Expand Down Expand Up @@ -81,9 +81,10 @@ this:
## API

MWoffliner provides also an API and therefore can be used as a NodeJS
library. Here a stub example:
library. Here a stub example that could go in your index.mjs file:
```javascript
const mwoffliner = require('mwoffliner');
import * as mwoffliner from 'mwoffliner';

const parameters = {
mwUrl: "https://es.wikipedia.org",
adminEmail: "foo@bar.net",
Expand Down

0 comments on commit 67c8cdf

Please sign in to comment.