1.1.2 • Published 4 years ago

verifiable-file-read-all-cache v1.1.2

Weekly downloads
4
License
BSL-1.0
Repository
github
Last release
4 years ago

verifiable-file-read-all-cache

CircleCI Greenkeeper badge

Read file all and cache it. Also, you can verify sha-256 hash.

import test from 'ava';
const TextCache = require('verifiable-file-read-all-cache');
const text = new TextCache(
  './path/to/file',
  //sha-256 hash
  'd270ba28b95e9f256ca2eb993fc0692b9d755c4b397f75ea2d5deb5cf39c49f1'
);
test('hoge', async t => {
    await text.verify((actual, expected) => t.true(actual === expected));
    foo(text.get());
})
1.1.1

4 years ago

1.1.2

4 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago