Skip to content

Commit

Permalink
add node.js example to call legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
fyockm committed Feb 12, 2014
1 parent 586451f commit 54fb391
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ var fixmyjs = require('fixmyjs')
var stringFixedCode = fixmyjs.fix(stringOfCode, objectOfOptions)
```

node.js legacy:

```js
var jshint = require('jshint').JSHINT
var fixmyjs = require('fixmyjs')
jshint(stringOfCode, objectOfOptions)
var stringFixedCode = fixmyjs(jshint.data(), stringOfCode, objectOfOptions).run()
```

## Website

[fixmyjs.com](http://fixmyjs.com) allows you to use this tool on the web.
Expand Down

0 comments on commit 54fb391

Please sign in to comment.