Skip to content

Commit

Permalink
better write of index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
darlanmendonca committed Jan 15, 2016
1 parent 550c2dd commit 0dea890
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions app/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
'use strict';

module.exports = (function () {
function parser() {
var args = process.argv.slice(2);
args = require('./parser')(args);

return args;
})();
}

module.exports = parser();
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shell-arguments",
"version": "1.1.6",
"version": "1.1.7",
"description": "Convert shell arguments passed to the npm, node, or nodemon, and convert this arguments to json",
"main": "app/index.js",
"scripts": {
Expand Down

0 comments on commit 0dea890

Please sign in to comment.