{"id":16186192,"url":"https://github.com/zenflow/real-time-file","last_synced_at":"2026-02-08T17:03:06.705Z","repository":{"id":57348848,"uuid":"125900102","full_name":"zenflow/real-time-file","owner":"zenflow","description":"live readable+writable+`subscribe`able representation of a file","archived":false,"fork":false,"pushed_at":"2020-05-24T19:48:30.000Z","size":62,"stargazers_count":1,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-27T15:53:35.464Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zenflow.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-19T18:05:36.000Z","updated_at":"2018-09-14T10:03:08.000Z","dependencies_parsed_at":"2022-08-28T01:40:16.546Z","dependency_job_id":null,"html_url":"https://github.com/zenflow/real-time-file","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/zenflow/real-time-file","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenflow%2Freal-time-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenflow%2Freal-time-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenflow%2Freal-time-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenflow%2Freal-time-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zenflow","download_url":"https://codeload.github.com/zenflow/real-time-file/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenflow%2Freal-time-file/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29237110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T14:18:14.570Z","status":"ssl_error","status_checked_at":"2026-02-08T14:18:14.071Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-10T07:17:30.003Z","updated_at":"2026-02-08T17:03:06.684Z","avatar_url":"https://github.com/zenflow.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# real-time-file\nlive readable+writable representation of a file\n\n[![Build Status](https://travis-ci.org/zenflow/real-time-file.svg?branch=master)](https://travis-ci.org/zenflow/real-time-file)\n[![tested with jest](https://img.shields.io/badge/tested_with-jest-99424f.svg)](https://github.com/facebook/jest)\n[![npm version](https://badge.fury.io/js/real-time-file.svg)](https://www.npmjs.com/packages/real-time-file)\n[![Dependencies Status](https://david-dm.org/zenflow/real-time-file.svg)](https://david-dm.org/zenflow/real-time-file)\n[![Greenkeeper badge](https://badges.greenkeeper.io/zenflow/real-time-file.svg)](https://greenkeeper.io/)\n[![semantic-release badge](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/zenflow/real-time-file/blob/master/CHANGELOG.md)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n## Example\n\n```js\nconst RealTimeFile = require('real-time-file')\n\nconst file = new RealTimeFile('.gitignore')\nfile.on('text', text =\u003e {})\nfile.on('lines', lines =\u003e {})\nfile.ready\n  .then(() =\u003e {\n    file.lines.unshift('package-lock.json')\n    // or\n    file.lines = ['package-lock.json', ...lines]\n    // or\n    file.text = `package-lock.json\\n${file.text}`\n  })\n  .catch(console.error)\n```\n\n- saves new contents to file system immediately\n- watches the file and reloads when changed by another process\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenflow%2Freal-time-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzenflow%2Freal-time-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenflow%2Freal-time-file/lists"}