Socket
Book a DemoInstallSign in
Socket

@oglabs/calc

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oglabs/calc

A calculation module for spreadsheet

latest
Source
npmnpm
Version
4.0.10
Version published
Maintainers
1
Created
Source

Calc

A calculation module for spreadsheet

Targeted features

  • Runs asynchronously
  • Able to run on web workers
  • Able to return multiple results based on cell-dependency
  • Able to run multiple calculations (batch)
  • Able to run single calculation
  • Ability to run in cloudflare workers (Todo)
import { CalcEngine } from '@oglabs/spreadsheet'

// Initialize
const calcEngine = new CalcEngine()

// Optional - Dump all sheets to calculation engine during initial load
const changes = calcEngine.initialize(changes, getCellConfig)

// Single cell calculation
const results = await calcEngine.calculate(value, sheet, cell, getCellConfig)

// Multiple batch
const results = await calcEngine.calculateBatch(changes, getCellConfig)

FAQs

Package last updated on 10 May 2023

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