-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
857a965
commit c589054
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
# canvas2image ES6 | ||
# canvas2image 2 | ||
|
||
Canvas2Image cannot be imported as a module and seems to no longer be maintained. | ||
|
||
This repository contains the original code, a few changes and a export statement. | ||
|
||
### Usage | ||
```bash | ||
npm install canvas2image-es6 | ||
npm install canvas2image-2 | ||
``` | ||
|
||
```js | ||
import canvas2image from "canvas2image-es6"; | ||
import canvas2image from "canvas2image-2"; | ||
|
||
canvas2image.convertToPNG(canvas, 400, 400); | ||
``` |