Skip to content

Commit 262a359

Browse files
committed
use import in README, #86
1 parent fa8c2d2 commit 262a359

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ The `Writer` class provides a few ways to output the file:
154154
Here's an example of how everyone's favorite song "Hot Cross Buns" could be written. Note use of the mapping function passed as the second argument of `addEvent()`. This can be used to apply specific properties to all events. With some
155155
street smarts you could also use it for programmatic crescendos and other property 'animation'.
156156
```javascript
157-
const MidiWriter = require('midi-writer-js');
157+
import MidiWriter from 'midi-writer-js';
158158

159159
const track = new MidiWriter.Track();
160160

0 commit comments

Comments
 (0)