tahamajs's picture
download
raw
453 Bytes
var test = require('tape');
var table = require('../');
test('dot align', function (t) {
t.plan(1);
var s = table([
[ 'beep', '1024' ],
[ 'boop', '334.212' ],
[ 'foo', '1006' ],
[ 'bar', '45.6' ],
[ 'baz', '123.' ]
], { align: [ 'l', '.' ] });
t.equal(s, [
'beep 1024',
'boop 334.212',
'foo 1006',
'bar 45.6',
'baz 123.'
].join('\n'));
});

Xet Storage Details

Size:
453 Bytes
·
Xet hash:
d52cb8d94f16631384a43b735077d9af522e0ab45ba9b2ee668285ddf74a227d

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.