Skip to content

Commit ebf7112

Browse files
committed
README
1 parent 1975509 commit ebf7112

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The module mapfile-ejs allows you to use [Embedded JavaScript (EJS)](http://ejs.
55
## Installation
66

77
1. Install `Node.js` and `npm` from [https://nodejs.org/](https://nodejs.org/)
8-
2. Install `mapfile-ejs` with `npm install mapfile-ejs --global`
8+
2. Install `mapfile-ejs` with `npm install mapfile-ejs -g`
99

1010
## Getting started
1111

@@ -43,15 +43,15 @@ import { render } from 'mapfile-ejs';
4343

4444
(async () => {
4545
// render file with default options
46-
const r1 = render(
47-
`${__dirname}/template__utf8.emap`,
48-
`${__dirname}/template__utf8.map`
46+
await render(
47+
`./template__utf8.emap`,
48+
`./template__utf8.map`
4949
);
5050

5151
// render file with custom options
52-
render(
53-
`${__dirname}/template__iso_8859_1.emap`,
54-
`${__dirname}/template__iso_8859_1__02.map`,
52+
await render(
53+
`./template__iso_8859_1.emap`,
54+
`./template__iso_8859_1__02.map`,
5555
{ inputEncoding: `ISO-8859-1`, outputEncoding: `ISO-8859-1` }
5656
);
5757
})();

0 commit comments

Comments
 (0)