Skip to content

Commit 842bc9c

Browse files
committed
docs: update for deno
1 parent 37273aa commit 842bc9c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,10 @@ font_preview.draw2canvas(document.getElementById('mycanvas3').getContext('2d'))
5656

5757
})()
5858
```
59+
60+
If you are using **Deno** instead of Node.js, you don't need to install the package with npm/yarn, and you should replace `const { $Font } = require('bdfparser'); const getline = require('readlineiter')` by:
61+
62+
```ts
63+
import { $Font } from "https://raw.githubusercontent.com/tomchen/bdfparser-js/main/deno/mod.ts"
64+
import readlineiter from 'https://raw.githubusercontent.com/tomchen/fetchline/main/packages/readlineiter-deno/mod.ts'
65+
```

deno/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,10 @@ font_preview.draw2canvas(document.getElementById('mycanvas3').getContext('2d'))
5656

5757
})()
5858
```
59+
60+
If you are using **Deno** instead of Node.js, you don't need to install the package with npm/yarn, and you should replace `const { $Font } = require('bdfparser'); const getline = require('readlineiter')` by:
61+
62+
```ts
63+
import { $Font } from "https://raw.githubusercontent.com/tomchen/bdfparser-js/main/deno/mod.ts"
64+
import readlineiter from 'https://raw.githubusercontent.com/tomchen/fetchline/main/packages/readlineiter-deno/mod.ts'
65+
```

0 commit comments

Comments
 (0)