Skip to content

Commit

Permalink
Merge pull request #7 from illright/patch-1
Browse files Browse the repository at this point in the history
Fix a typo in the code example
  • Loading branch information
JrMasterModelBuilder authored Jul 24, 2023
2 parents 04d7693 + 6b2a370 commit 5e83194
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ fs.writeFileSync('icon.ico', ico.encode());

```js
import fs from 'fs';
import {IconIcnc} from '@shockpkg/icon-encoder';
import {IconIcns} from '@shockpkg/icon-encoder';

const icns = new IconIcnc();
const icns = new IconIcns();

// Optionally include the TOC (table of contents) header.
// Newer icons will often include this, the default is false.
Expand Down Expand Up @@ -97,9 +97,9 @@ fs.writeFileSync('icon.icns', icns.encode());

```js
import fs from 'fs';
import {IconIcnc} from '@shockpkg/icon-encoder';
import {IconIcns} from '@shockpkg/icon-encoder';

const icns = new IconIcnc();
const icns = new IconIcns();
icns.addFromPng(fs.readFileSync('icon/16x16.png'), ['is32', 's8mk']);
icns.addFromPng(fs.readFileSync('icon/32x32.png'), ['il32', 'l8mk']);
icns.addFromPng(fs.readFileSync('icon/48x48.png'), ['ih32', 'h8mk']);
Expand Down

0 comments on commit 5e83194

Please sign in to comment.