n-file-directory"> supports-preserve-symlinks-flag 30f7226d9a first commit vor 2 Jahren tailwind-color-palette 30f7226d9a first commit vor 2 Jahren tailwindcss 30f7226d9a first commit vor 2 Jahren thenify 30f7226d9a first commit vor 2 Jahren thenify-all 30f7226d9a first commit vor 2 Jahren to-regex-range 30f7226d9a first commit vor 2 Jahren tr46 30f7226d9a first commit vor 2 Jahren ts-interface-checker 30f7226d9a first commit vor 2 Jahren uglify-js 30f7226d9a first commit vor 2 Jahren underscore 30f7226d9a first commit vor 2 Jahren upper-case 30f7226d9a first commit vor 2 Jahren util-deprecate 30f7226d9a first commit vor 2 Jahren valid-data-url 30f7226d9a first commit vor 2 Jahren web-resource-inliner 30f7226d9a first commit vor 2 Jahren webidl-conversions 30f7226d9a first commit vor 2 Jahren whatwg-url 30f7226d9a first commit vor 2 Jahren wrap-ansi 30f7226d9a first commit vor 2 Jahren wrappy 30f7226d9a first commit vor 2 Jahren y18n 30f7226d9a first commit vor 2 Jahren yallist 30f7226d9a first commit vor 2 Jahren yaml 30f7226d9a first commit vor 2 Jahren yargs 30f7226d9a first commit vor 2 Jahren yargs-parser 30f7226d9a first commit vor 2 Jahren .yarn-integrity 30f7226d9a first commit vor 2 Jahren tmt/tiger_frontend - Gogs: Simplico Git Service

Keine Beschreibung

golf 77628cf8bf first comm vor 3 Jahren
..
LICENSE 77628cf8bf first comm vor 3 Jahren
README.md 77628cf8bf first comm vor 3 Jahren
index.js 77628cf8bf first comm vor 3 Jahren
package.json 77628cf8bf first comm vor 3 Jahren

README.md

read-cache Build Status

Reads and caches the entire contents of a file until it is modified.

Install

$ npm i read-cache

Usage

// foo.js
var readCache = require('read-cache');

readCache('foo.js').then(function (contents) {
    console.log(contents);
});

API

readCache(path[, encoding])

Returns a promise that resolves with the file's contents.

readCache.sync(path[, encoding])

Returns the content of the file.

readCache.get(path[, encoding])

Returns the content of cached file or null.

readCache.clear()

Clears the contents of the cache.

License

MIT © Bogdan Chadkin