Skip to content

Commit

Permalink
add simple CLI util
Browse files Browse the repository at this point in the history
  • Loading branch information
j- authored and ljharb committed Mar 3, 2016
1 parent 1354943 commit 3d55192
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bin/resolve
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env node

'use strict';

var resolve = require('..');
var result = resolve.sync(process.argv[2], {
basedir: process.cwd()
});

console.log(result);
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,8 @@
},
"dependencies": {
"path-parse": "^1.0.6"
},
"bin": {
"resolve": "./bin/resolve"
}
}

0 comments on commit 3d55192

Please sign in to comment.