Skip to content

Commit

Permalink
Docs: use import in the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
JPeer264 committed Mar 3, 2023
1 parent 18cdc0a commit 755595b
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 @@ -24,7 +24,7 @@ Returns:
- `false`: No files are added, untracked or modified. Git is clean

```js
const isGitDirty = require('is-git-dirty');
import isGitDirty from 'is-git-dirty';

isGitDirty(); // true or false of process.cwd()
isGitDirty('any/git/repo'); // true or false
Expand Down

0 comments on commit 755595b

Please sign in to comment.