{"id":15497176,"url":"https://github.com/jwerle/random-access-null","last_synced_at":"2025-03-14T03:17:36.100Z","repository":{"id":143904338,"uuid":"125052943","full_name":"jwerle/random-access-null","owner":"jwerle","description":"random-access-storage compliant null writer like a write to /dev/null","archived":false,"fork":false,"pushed_at":"2018-03-13T13:13:44.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-17T01:34:09.113Z","etag":null,"topics":["random-access"],"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/jwerle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-03-13T13:05:41.000Z","updated_at":"2023-06-04T08:17:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"f8c7c1ae-4f58-4680-87a4-c50778c6403e","html_url":"https://github.com/jwerle/random-access-null","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":"0.19999999999999996","last_synced_commit":"7e6a02cba1fca87c79e94c47460f8a02ad141657"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Frandom-access-null","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Frandom-access-null/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Frandom-access-null/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Frandom-access-null/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jwerle","download_url":"https://codeload.github.com/jwerle/random-access-null/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243515525,"owners_count":20303258,"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":["random-access"],"created_at":"2024-10-02T08:31:27.010Z","updated_at":"2025-03-14T03:17:36.075Z","avatar_url":"https://github.com/jwerle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"random-access-null\n==================\n\n[random-access-storage][random-access-storage] compliant null writer like a\nwrite to `/dev/null`. All writes are discarded, all reads return a zero\nbuffer, and all stats return a stat with `size` set to `0`.\n\n## Install\n\n```sh\nnpm install random-access-null\n```\n\n## Usage\n\n```js\nvar createRandomAccessNull = require('random-access-null')\nvar storage = createRandomAccessNull()\n\n// empty reads\nstorage.read(0, 32, function (err, buf) {\n  console.log(err, buf) // null \u003cBuffer \u003e\n})\n\n// discarded writes\nstorage.write(32, Buffer.from('hello', function (err) {\n  console.log(err) // null\n})\n```\n\n## License\n\nMIT\n\n[random-access-storage]: https://github.com/random-access-storage/random-access-storage\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwerle%2Frandom-access-null","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjwerle%2Frandom-access-null","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwerle%2Frandom-access-null/lists"}