diff --git a/readme.md b/readme.md index 1e2c472..bc852db 100644 --- a/readme.md +++ b/readme.md @@ -34,11 +34,11 @@ npm install vfile-reporter Say `example.js` contains: ```js -var vfile = require('vfile') -var reporter = require('vfile-reporter') +import {VFile} from 'vfile' +import {reporter} from 'vfile-reporter' -var one = vfile({path: 'test/fixture/1.js'}) -var two = vfile({path: 'test/fixture/2.js'}) +var one = new VFile({path: 'test/fixture/1.js'}) +var two = new VFile({path: 'test/fixture/2.js'}) one.message('Warning!', {line: 2, column: 4})