Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptex committed Jul 2, 2018
1 parent 74fbf64 commit 570c344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ demo.style.backgroundImage = `url(${base64fromSVG})`;

```javascript
// Require svg64
const SVG64 = require('../src/svg64').default;
const SVG64 = require('svg64').default;

// Import `readFileSync` from the file system module
const { readFileSync } = require('fs');

// Read your SVG file's contents
const svg = readFileSync('./demo/loader.svg', 'utf-8');
const svg = readFileSync('./file.svg', 'utf-8');

// This is your SVG in base64 representation
const base64fromSVG = SVG64(svg);
Expand Down

0 comments on commit 570c344

Please sign in to comment.