Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
doc: fix esm import (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Jan 13, 2023
1 parent a8c8b7e commit 38d5010
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ Example
-------

``` js
var dataUriToBuffer = require('data-uri-to-buffer');
import dataUriToBuffer from 'data-uri-to-buffer';

// plain-text data is supported
var uri = 'data:,Hello%2C%20World!';
var decoded = dataUriToBuffer(uri);
let uri = 'data:,Hello%2C%20World!';
let decoded = dataUriToBuffer(uri);
console.log(decoded.toString());
// 'Hello, World!'

Expand Down

0 comments on commit 38d5010

Please sign in to comment.