Skip to content

Commit

Permalink
[doc] Update README.md with new API
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Jun 8, 2011
1 parent ca2382c commit 403c573
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -36,7 +36,7 @@ In other words, how often have you wanted to expose basic information from your
Using `pkginfo` is idiot-proof, just require and invoke it.

``` js
var pkginfo = require('pkginfo')();
var pkginfo = require('pkginfo')(module);

console.dir(module.exports);
```
Expand All @@ -60,7 +60,7 @@ Here's a sample of the output:
If you don't want to expose **all** properties on from your `package.json` on your module then simple pass those properties to the `pkginfo` function:

``` js
var pkginfo = require('pkginfo')('version', 'author');
var pkginfo = require('pkginfo')(module, 'version', 'author');

console.dir(module.exports);
```
Expand Down

0 comments on commit 403c573

Please sign in to comment.