Permalink
Browse files

async example

  • Loading branch information...
1 parent 34a958e commit e1a98093094cded0a251ef36f4f2eb0adb280acb @substack committed Feb 19, 2013
Showing with 15 additions and 0 deletions.
  1. +5 −0 example/async.js
  2. +10 −0 readme.markdown
View
@@ -0,0 +1,5 @@
+var resolve = require('../');
+resolve('tap', { basedir: __dirname }, function (err, res) {
+ if (err) console.error(err)
+ else console.log(res)
+});
View
@@ -7,6 +7,16 @@ synchronously
[![build status](https://secure.travis-ci.org/substack/node-resolve.png)](http://travis-ci.org/substack/node-resolve)
+# example
+
+``` js
+var resolve = require('resolve');
+resolve('tap', { basedir: __dirname }, function (err, res) {
+ if (err) console.error(err)
+ else console.log(res)
+});
+```
+
# methods
``` js

0 comments on commit e1a9809

Please sign in to comment.