Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

read-cache

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Issues
File Explorer

Advanced tools

read-cache

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

    1.0.0latest

Version published
Maintainers
1
Weekly downloads
6,854,858
decreased by-8.67%

Weekly downloads

Readme

Source

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

Keywords

FAQs

What is read-cache?

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

Is read-cache popular?

The npm package read-cache receives a total of 6,469,722 weekly downloads. As such, read-cache popularity was classified as popular.

Is read-cache well maintained?

We found that read-cache demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 11 Jan 2016

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc