Skip to content

Commit d3cdbda

Browse files
authored
Fixed readme
1 parent 61fc712 commit d3cdbda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A ES6 function for node-canvas with built-in functions and chained methods.
44
How to use it:
55

66
```js
7-
const { Canvas } = require('canvasConstructor');
7+
const { Canvas } = require('canvas-constructor');
88

99
new Canvas(300, 300)
1010
.setColor('#AEFD54')
@@ -26,7 +26,7 @@ new Canvas(300, 300)
2626
Now, let's suppose we want to add images. I'd recommend [fs-nextra](https://github.com/bdistin/fs-nextra), by BDISTIN, it requires Node.js 8.1.0 to work (it promisifies the async fs methods with `Util.promisify()`), it's a dependency-free and lightweight package that provides support for **atomic operations**.
2727

2828
```js
29-
const { Canvas } = require('canvasConstructor');
29+
const { Canvas } = require('canvas-constructor');
3030
const fsn = require('fs-nextra');
3131

3232
async function createCanvas() {

0 commit comments

Comments
 (0)