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

auditable

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auditable

audit who modified a JS Array, Object, Map, Set, etc. and when

  • 2.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by500%
Maintainers
1
Weekly downloads
 
Created
Source

Auditable Build Status npm mit

Auditable data structures for modern browsers

Installation

npm install --save auditable

Usage

import {List} from 'auditable'

// Make a new List
const myList = List(1, 2, 3)

// Modify it
a[0] = 10
a[1] = 20

// Get back a list of changes
console.log(List.audit(myList))
// => [
//      [10, 20, 3],
//      [10, 2, 3],
//      [1, 2, 3]
//    ]

// Get back a list of changes and causes
console.log(List.auditWithTraces(myList))
// => [
//      {
//        data: [10, 20, 3],
//        time: "2016-07-06T01:49:22.559Z",
//        trace: [Test.fn (/Users/boris/auditable/test.js:7:5)", ...]
//      },
//      {data: [10, 2, 3], time: "...", trace: [...]},
//      {data: [1, 2, 3], time: "...", trace: [...]}
//    ]

Scripts

Run testsnpm test
Compile TypeScriptnpm run build
Watch Typescriptnpm run watch
Watch Typescript & TDD testsnpm run tdd

TODO

  • Array
  • Set
  • WeakSet
  • Object
  • Map
  • WeakMap

Keywords

FAQs

Package last updated on 06 Jul 2016

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