file-command-parser

commandParser get command with args from file or string

commandParser

Use for parse file with command.

Example

var CommandParser = require('commandParser');

var commandParser = new CommandParser();
commandParser.file('test');
console.log(commandParser.parse());
command1 "arg1 test" arg2 arg3
#comment
command2 arg4 'temp lorem lipsum'
    command3
    command4
    command5 arg5 arg4 "arg6"
[ [ 'command1', 'arg1 test', 'arg2', 'arg3' ],
  false,
  [ 'command2', 'arg4', 'temp lorem lipsum' ],
  [ 'command3' ],
  [ 'command4' ],
  [ 'command5', 'arg5', 'arg4', 'arg6' ] ]