simplefilecache

0.1.2 • Public • Published

Simple file cache

Usage

var simpleFileCache = require('simplefilecache');

var getTextFile = simpleFileCache('textfile.txt');

setInterval(function(){

  getTextFile(function(err, content){
    if(err)
      console.log(err)
    else
      console.log("Content: " + content)
  })

}, 5000);

Readme

Keywords

none

Package Sidebar

Install

npm i simplefilecache

Weekly Downloads

17

Version

0.1.2

License

none

Last publish

Collaborators

  • piksel