Skip to content

Commit

Permalink
Merge pull request beautifier#1841 from scil/patch-1
Browse files Browse the repository at this point in the history
fix bug in node require
  • Loading branch information
bitwiseman authored Apr 22, 2023
2 parents 7922cbe + 9db57a2 commit b587e5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ To use `js-beautify` as a `node` library (after install locally), import and cal
The configuration option names are the same as the CLI names but with underscores instead of dashes. For example, `--indent-size 2 --space-in-empty-paren` would be `{ indent_size: 2, space_in_empty_paren: true }`.

```js
var beautify = require('js-beautify').js,
var beautify = require('js-beautify/js').js,
fs = require('fs');

fs.readFile('foo.js', 'utf8', function (err, data) {
Expand Down

0 comments on commit b587e5c

Please sign in to comment.