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 ffc22c1 commit 4ff40e2
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 @@ -36,5 +36,8 @@
},
"dependencies": {
"path-parse": "^1.0.5"
},
"bin": {
"resolve": "./bin/resolve"
}
}

0 comments on commit 4ff40e2

Please sign in to comment.