Browse Source

chore: updates README.md

e22m4u 1 year ago
parent
commit
7f7e29d721
1 changed files with 5 additions and 2 deletions
  1. 5 2
      README.md

+ 5 - 2
README.md

@@ -16,6 +16,9 @@ A pure ES-module of the Node.js HTTP router that uses the
 npm install @e22m4u/js-trie-router
 ```
 
+To load an ES-module set `"type": "module"` in the `package.json`
+or use the `.mjs` extension.
+
 ## Overview
 
 A basic "Hello world." example.
@@ -73,8 +76,8 @@ router.defineRoute({
 
 Return values of the route handler will be sent as described below.
 
-| type    | content-type             |
-|---------|--------------------------|
+| value     | content-type             |
+|-----------|--------------------------|
 | `string`  | text/plain               |
 | `number`  | application/json         |
 | `boolean` | application/json         |