Permalink
Browse files

bump and a note in the docs for extensions

  • Loading branch information...
1 parent 502b6e9 commit 2ad8287bc8b34929c2074a739410d08955ccdea7 @substack committed Jun 20, 2011
Showing with 9 additions and 3 deletions.
  1. +8 −2 README.markdown
  2. +1 −1 package.json
View
@@ -12,14 +12,20 @@ methods
var resolve = require('resolve');
-resolve.sync(pkg, opts={paths:[],basedir:__dirname})
-----------------------------------------------------
+resolve.sync(pkg, opts)
+-----------------------
Synchronously search for the package/filename string `pkg`
according to the [`require.resolve()`
algorithm](http://nodejs.org/docs/v0.4.8/api/all.html#all_Together...)
for `X=pkg` and `Y=opts.basedir`.
+Default values for `opts`:
+
+````javascript
+{ paths : [], basedir : __dirname, extensions : [ '.js' ] }
+````
+
If nothing is found, all of the directories in `opts.paths` are searched.
resolve.isCore(pkg)
View
@@ -1,7 +1,7 @@
{
"name" : "resolve",
"description" : "A more hookable require.resolve() implementation",
- "version" : "0.0.2",
+ "version" : "0.0.3",
"repository" : {
"type" : "git",
"url" : "git://github.com/substack/node-resolve.git"

0 comments on commit 2ad8287

Please sign in to comment.