Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flexmonster-compressor

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flexmonster-compressor

Flexmonster Compressor for Node.js – a special server-side compression tool that helps you to increase data loading speed from server to Flexmonster Pivot Table component.

  • 2.6.1
  • npm
  • Socket score

Version published
Weekly downloads
35
increased by105.88%
Maintainers
1
Weekly downloads
 
Created
Source

Flexmonster Compressor for Node.js

Flexmonster Compressor for Node.js – a special server-side compression tool that helps you to increase data loading speed from server to (Flexmonster Pivot Table)[http://www.flexmonster.com/] component.

What is JS Pivot Table by Flexmonster?

Flexmonster Pivot Table & Charts is a component for interactive pivot reports that can be inserted to a web page or a web application. It’s a powerful JavaScript tool to visualize your business data.

Flexmonster Pivot is a cross-platform web component that seamlessly work on any browser (Chrome, Firefox, Internet Explorer, Safari or Opera) across Windows, macOS, Linux, iOS or Android.

How to use compressor?

Here is an example how to create API endpoint that returns data from MongoDB:

const compressor = require('flexmonster-compressor');

app.get('/data', (req, res) => {
    let dbResult = dbo.collection("my_collection").find().stream();
    let outputStream = compressor.compressJsonStream(dbResult);
    outputStream.on('data', data => res.write(data));
    outputStream.on('end', () => res.end());
});

Then, on the font-end, you can use this endpoint to connect Flexmonster Pivot Table as follows:

var pivot = new Flexmonster({
    report: {
        dataSource: {
            dataSourceType: "ocsv",
            filename: "http://your_api_host/data"
        }
    }
});

Keywords

FAQs

Package last updated on 13 Aug 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc