Blame view

node_modules/text-table/example/dotalign.js 208 Bytes
ce4c83ff   wxy   初始提交
1
2
3
4
5
6
7
8
9
  var table = require('../');
  var t = table([
      [ 'beep', '1024' ],
      [ 'boop', '334.212' ],
      [ 'foo', '1006' ],
      [ 'bar', '45.6' ],
      [ 'baz', '123.' ]
  ], { align: [ 'l', '.' ] });
  console.log(t);