hypnotable
Streaming sortable tables
Last updated 4 years ago by dguttman .
BSD · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hypnotable 
SYNC missed versions from official npm registry.

Hypnotable

Easily create a table from a stream (or array) of objects.

browser support

Example

var Hypnotable = require('hypnotable');

var hyperquest = require('hyperquest');
var JSONStream = require('JSONStream');
var accounting = require('accounting');

columns = [
  {
    property: 'screenName',
    title: 'Screen Name'
  }, {
    property: 'followers',
    title: 'Follower Count',
    template: accounting.formatNumber
  }
];

var stream = hyperquest('/api/accounts.json');
var parser = JSONStream.parse([true]);
stream.pipe(parser);

var ht = Hypnotable(columns);
document.body.appendChild(ht.el);

parser.pipe(ht);

To see a bit more look at /example/basic.js or locally run:

npm run-script example

License

MIT

hypnotoad

Current Tags

  • 1.0.0                                ...           latest (4 years ago)

18 Versions

  • 1.0.0                                ...           4 years ago
  • 0.6.1                                ...           6 years ago
  • 0.6.0                                ...           6 years ago
  • 0.5.3                                ...           6 years ago
  • 0.5.2                                ...           7 years ago
  • 0.5.1                                ...           7 years ago
  • 0.5.0                                ...           7 years ago
  • 0.4.2                                ...           7 years ago
  • 0.4.1                                ...           7 years ago
  • 0.4.0                                ...           7 years ago
  • 0.3.1                                ...           7 years ago
  • 0.3.0                                ...           7 years ago
  • 0.2.0                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
  • 0.0.3                                ...           7 years ago
  • 0.0.2                                ...           7 years ago
  • 0.0.1                                ...           7 years ago
  • 0.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (7)
Dev Dependencies (5)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |