{"id":15400021,"url":"https://github.com/mcollina/fast-write-atomic","last_synced_at":"2025-10-10T04:16:46.598Z","repository":{"id":57233132,"uuid":"162583651","full_name":"mcollina/fast-write-atomic","owner":"mcollina","description":"Fast way to write a file atomically, for Node.js","archived":false,"fork":false,"pushed_at":"2019-03-08T12:15:33.000Z","size":15,"stargazers_count":19,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-02T01:05:44.609Z","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/mcollina.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}},"created_at":"2018-12-20T13:30:40.000Z","updated_at":"2024-01-26T22:57:28.000Z","dependencies_parsed_at":"2022-08-31T14:11:23.593Z","dependency_job_id":null,"html_url":"https://github.com/mcollina/fast-write-atomic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcollina%2Ffast-write-atomic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcollina%2Ffast-write-atomic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcollina%2Ffast-write-atomic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcollina%2Ffast-write-atomic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcollina","download_url":"https://codeload.github.com/mcollina/fast-write-atomic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231521945,"owners_count":18389473,"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-01T15:51:30.713Z","updated_at":"2025-10-10T04:16:41.553Z","avatar_url":"https://github.com/mcollina.png","language":"JavaScript","readme":"# fast-write-atomic\n\n[![Build\nStatus](https://travis-ci.com/mcollina/fast-write-atomic.svg?branch=master)](https://travis-ci.com/mcollina/fast-write-atomic)\n\nFast way to write a file atomically, for Node.js\n\nStatus: *experimental*\n\n## Install\n\n```\nnpm i fast-write-atomic\n```\n\n## Example\n\n```js\nconst writeFile = require('fast-write-atomic')\n\nconst data = Buffer.from('hello world')\n\nwriteFile('./hello', data, function (err) {\n  if (err) {\n    console.log(err)\n    return\n  }\n\n  console.log('file written')\n})\n```\n\n## Benchmarks\n\nThose benchmarks writes a 1 MB file a thousand times:\n\n```\nbenchWriteFileAtomic*1000: 9830.501ms\nbenchFastWriteAtomic*1000: 8848.916ms\nbenchWriteFileAtomic*1000: 9944.722ms\nbenchFastWriteAtomic*1000: 8997.108ms\n```\n\n## License\n\nMIT\n\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcollina%2Ffast-write-atomic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcollina%2Ffast-write-atomic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcollina%2Ffast-write-atomic/lists"}