Skip to content

Commit

Permalink
bump for packageFilter and a note in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Jun 21, 2011
1 parent c92c883 commit 9fbb632
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,16 @@ for `X=pkg` and `Y=opts.basedir`.
Default values for `opts`:

````javascript
{ paths : [], basedir : __dirname, extensions : [ '.js' ] }
{
paths : [],
basedir : __dirname,
extensions : [ '.js' ],
}
````

Optionally you can specify a `opts.packageFilter` function to map the contents
of `JSON.parse()`'d package.json files.

If nothing is found, all of the directories in `opts.paths` are searched.

resolve.isCore(pkg)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name" : "resolve",
"description" : "A more hookable require.resolve() implementation",
"version" : "0.0.3",
"version" : "0.0.4",
"repository" : {
"type" : "git",
"url" : "git://github.com/substack/node-resolve.git"
Expand Down

0 comments on commit 9fbb632

Please sign in to comment.