{"id":20942083,"url":"https://github.com/salakjs/salak-file-stream-rotator","last_synced_at":"2026-04-13T11:31:36.513Z","repository":{"id":65472970,"uuid":"130581699","full_name":"SalakJS/salak-file-stream-rotator","owner":"SalakJS","description":"File stream rotator for SalakJS Log.","archived":false,"fork":false,"pushed_at":"2018-04-27T08:43:58.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T21:15:01.983Z","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/SalakJS.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-04-22T15:41:08.000Z","updated_at":"2018-04-27T08:43:59.000Z","dependencies_parsed_at":"2023-01-25T02:55:11.280Z","dependency_job_id":null,"html_url":"https://github.com/SalakJS/salak-file-stream-rotator","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/SalakJS%2Fsalak-file-stream-rotator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SalakJS%2Fsalak-file-stream-rotator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SalakJS%2Fsalak-file-stream-rotator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SalakJS%2Fsalak-file-stream-rotator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SalakJS","download_url":"https://codeload.github.com/SalakJS/salak-file-stream-rotator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243335382,"owners_count":20274898,"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-11-18T23:22:20.588Z","updated_at":"2025-12-29T11:24:37.965Z","avatar_url":"https://github.com/SalakJS.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# salak-file-stream-rotater\n\n[![NPM version][npm-image]][npm-url]\n[![David deps][david-image]][david-url]\n[![NPM download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/salak-file-stream-rotator.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/salak-file-stream-rotator\n[david-image]: https://img.shields.io/david/SalakJS/salak-file-stream-rotator.svg?style=flat-square\n[david-url]: https://david-dm.org/SalakJS/salak-file-stream-rotator\n[download-image]: https://img.shields.io/npm/dm/salak-file-stream-rotator.svg?style=flat-square\n[download-url]: https://npmjs.org/package/salak-file-stream-rotator\n\nStream file rotator for SalakJS logs.\n\n## Install\n\n```sh\n$ npm install --save salak-file-stream-rotator\n```\n\n## Usage\n\n```javascript\nconst streamRotator = require('salak-file-stream-rotator')\n\nstreamRotator.write('hi, salak!')\n```\n\n## Options\n\n- filename: absolute path\n- date_format: defaults: YYYY-MM-DD\n- size: max bytes which the file can store\n- max_logs: how many files which can be keeped\n- audit_file: which stored the files info, defaults: dir(filename) + '/.audit.json'\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalakjs%2Fsalak-file-stream-rotator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsalakjs%2Fsalak-file-stream-rotator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalakjs%2Fsalak-file-stream-rotator/lists"}