Socket
Book a DemoInstallSign in
Socket

huge-text-view

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

huge-text-view

Render huge texts in the browser

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

huge-text-view

Render text blobs of arbitrary size efficiently in the browser.

Work in progress.

Example

var View = require('huge-text-view')
var bytes = require('bytes')

document.body.style.height = '600px'

const view = new View()
view.lines(Math.ceil(bytes('320gb') / 60))
view.pad(100)
view.fetch((line, cb) => {
  setTimeout(() => {
    cb(null, Buffer.alloc(30).toString('hex'))
  }, Math.random() * 100)
})
view.render(document.body)

FAQs

Package last updated on 04 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts