2.3.0 • Published 9 years ago

render-data v2.3.0

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

render-data

Show a data stream in a browser. This automatically detects the extension, and displays the data intelligently, supporting video, audio, and images (thanks to render-media).

It will attempt to display filetypes intelligently, like .csv, .json, and .geojson!

Server-side rendering

Can also be used in server-side applications to statically render the DOM. However, geojson will not render in server-side due to a dependence on window from Leaflet.

install

npm install render-data

usage

var data = require('render-data')
var file = {
  name: 'stuff.R',
  createReadStream: function () {
    return fs.createReadStream('/path/to/my/data/and/stuff')
  }
}
data.render(file, elem, opts, function (err) {
  console.log('done rendering')
})

example

Example in yo-fs.

2.3.0

9 years ago

2.2.3

10 years ago

2.2.2

10 years ago

2.2.1

10 years ago

2.2.0

10 years ago

2.1.1

10 years ago

2.1.0

10 years ago

2.0.0

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago