@canboat/canboatjs 2.5.7 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/analyzerjs CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  const argv = require('minimist')(process.argv.slice(2), {
4
4
  alias: { h: 'help' },
5
- boolean: ['n']
5
+ boolean: ['n'],
6
+ boolean: ['r']
6
7
  })
7
8
 
8
9
  if ( argv['help'] ) {
@@ -11,6 +12,7 @@ if ( argv['help'] ) {
11
12
  Options:
12
13
  -c don't check for invalid values
13
14
  -n output null values
15
+ -r parse $MXPGN as little endian
14
16
  -h, --help output usage information`)
15
17
  process.exit(1)
16
18
  }
@@ -18,6 +20,7 @@ Options:
18
20
  const Parser = require('../index').FromPgn
19
21
  var parser = new Parser( {
20
22
  returnNulls: argv['n'] === true,
23
+ littleEndianMXPGN: argv['r'] === true,
21
24
  checkForInvalidFields: argv['c'] !== true
22
25
  })
23
26