Skip to content

Commit

Permalink
fix(foo): documented basic usage
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Aug 17, 2020
1 parent 8d195e0 commit 3f743e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion packages/foo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ $ npm install @travi/foo
### Example

```javascript
import foo from '@travi/foo';
import {foo} from '@travi/foo';

foo();
```

## Contributing
Expand Down
6 changes: 3 additions & 3 deletions packages/foo/example.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// remark-usage-ignore-next
/* eslint-disable-next-line no-unused-vars */
import foo from './lib/index.cjs';
import {foo} from './lib/index.cjs';

foo();

0 comments on commit 3f743e8

Please sign in to comment.