Socket
Book a DemoInstallSign in
Socket

auditval

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

auditval

Audited numeric value

0.0.1
latest
npmnpm
Version published
Maintainers
1
Created
Source

auditval

The auditval module provides functions for creating auditable numeric types.

Usage

Use the auditval.audited function to created an audited value from a numeric type.

// start with an initial value of 0
var auditval = require("auditval"),
    value = auditval.audited(0);

// make some adjustments
value.adjust("increasing value", new Date(), 3);
value.adjust("decreasing value", new Date(), -2);

// verify value
assert(value + 5 == 6);

// retrieve a log of all of the value adjustments
var audit_log = value.audit();

FAQs

Package last updated on 24 Jul 2014

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.