Skip to content

juliangruber/render-data

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 also attempt to display complicated filetypes intelligently, like .csv or shapefiles (coming soon).

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, function (err) {
  console.log('done rendering')
})

example

Example in yo-fs.

About

Intelligently render a data stream in a browser.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%