Skip to content

Repository files navigation

Auditable Build Statusnpmmit

Auditable data structures for modern browsers

Installation

npm install --save auditable

Usage

import{List}from'auditable'// Make a new ListconstmyList=List(1,2,3)// Modify ita[0]=10a[1]=20// Get back a list of changesconsole.log(List.audit(myList))// => [// [10, 20, 3],// [10, 2, 3],// [1, 2, 3]// ]// Get back a list of changes and causesconsole.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

About

Auditable data structures for modern browsers

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages