{"id":15497357,"url":"https://github.com/heapwolf/readfilecache","last_synced_at":"2025-07-20T00:32:05.263Z","repository":{"id":12067103,"uuid":"14654000","full_name":"heapwolf/readfilecache","owner":"heapwolf","description":"does exactly what you think it does","archived":false,"fork":false,"pushed_at":"2013-12-01T20:04:54.000Z","size":115,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-30T11:54:38.415Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heapwolf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-24T01:45:39.000Z","updated_at":"2013-12-01T20:04:58.000Z","dependencies_parsed_at":"2022-09-02T15:11:17.515Z","dependency_job_id":null,"html_url":"https://github.com/heapwolf/readfilecache","commit_stats":null,"previous_names":["hij1nx/readfilecache"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/heapwolf/readfilecache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Freadfilecache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Freadfilecache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Freadfilecache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Freadfilecache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heapwolf","download_url":"https://codeload.github.com/heapwolf/readfilecache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Freadfilecache/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266048494,"owners_count":23868738,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T08:33:08.188Z","updated_at":"2025-07-20T00:32:05.221Z","avatar_url":"https://github.com/heapwolf.png","language":"JavaScript","readme":"# SYNOPSIS\nReturns data from fs.readFile or memory conditional on the mtime from an fs.stat.\n\n# USAGE\n```js\n//\n// create a cache instance\n//\nvar cache = require('readfilecache')()\n\n//\n// read a file, a call to the same path will return \n// the data from memory if the mtime is the same\n// on the file as it is in memory.\n//\n\ncache.readFile(filename, function(err, data, stat) {\n  // err or null, the data from the file and the stat info\n})\n\n//\n// supports a sync api as well\n//\ncache.readFileSync(filename) // returns the file\n\n//\n// clear the cache\n//\ncache.invalidate()\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheapwolf%2Freadfilecache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheapwolf%2Freadfilecache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheapwolf%2Freadfilecache/lists"}