{"id":27689571,"url":"https://github.com/csimi/optional-syslog","last_synced_at":"2025-04-25T10:22:52.907Z","repository":{"id":36280236,"uuid":"222467595","full_name":"csimi/optional-syslog","owner":"csimi","description":"Syslog package that exposes modern-syslog when possible, otherwise provides a stub","archived":false,"fork":false,"pushed_at":"2023-01-05T06:35:13.000Z","size":464,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-18T08:22:30.686Z","etag":null,"topics":["optional","posix","syslog","windows"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csimi.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":"2019-11-18T14:24:26.000Z","updated_at":"2022-02-12T18:31:52.000Z","dependencies_parsed_at":"2023-01-17T00:06:11.669Z","dependency_job_id":null,"html_url":"https://github.com/csimi/optional-syslog","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csimi%2Foptional-syslog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csimi%2Foptional-syslog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csimi%2Foptional-syslog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csimi%2Foptional-syslog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csimi","download_url":"https://codeload.github.com/csimi/optional-syslog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249898700,"owners_count":21342408,"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":["optional","posix","syslog","windows"],"created_at":"2025-04-25T10:22:52.296Z","updated_at":"2025-04-25T10:22:52.898Z","avatar_url":"https://github.com/csimi.png","language":"JavaScript","readme":"[![npm version](https://img.shields.io/npm/v/optional-syslog.svg?logo=npm)](https://www.npmjs.com/package/optional-syslog)\n[![build status](https://github.com/csimi/optional-syslog/workflows/build/badge.svg)](https://github.com/csimi/optional-syslog/actions)\n\n# About\n\nThis package installs [modern-syslog](https://www.npmjs.com/package/modern-syslog) as an optional dependency for ease of use on Windows (via a stub) and exposes some of its API.\n\nThere is also a compatiblity layer for users of the [posix](https://www.npmjs.com/package/posix) package (syslog related functions, drop-in replacement).\n\nConstants are provided by [syslog-constants](https://www.npmjs.com/package/syslog-constants) and are always available.\n\n# Usage\n\nInstall using npm:\n\n```\n$ npm install optional-syslog\n```\n\nReplace\n```\nrequire('modern-syslog');\n```\nor\n```\nrequire('posix');\n```\n\nwith\n```\nrequire('optional-syslog');\n```\n\n# Exported properties and methods\n\n## syslog-constants (except named as in modern-syslog)\n\n* facility\n* level\n* option\n\nDocumentation at https://www.npmjs.com/package/syslog-constants#properties\n\n## modern-syslog\n\n* log\n* open\n* close\n* upto\n* setmask\n\nDocumentation at https://www.npmjs.com/package/modern-syslog#api\n\nNot provided are:\n* formatted versions of `log()`\n* streaming API\n* curmask (since it's a read operation and can't be noop'd)\n\n## posix\n\n* openlog\n* closelog\n* setlogmask\n* syslog\n\nDocumentation at https://www.npmjs.com/package/posix#syslog\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsimi%2Foptional-syslog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsimi%2Foptional-syslog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsimi%2Foptional-syslog/lists"}