{"id":16351584,"url":"https://github.com/tomeraberbach/etz","last_synced_at":"2025-03-23T01:30:51.030Z","repository":{"id":57231024,"uuid":"425102831","full_name":"TomerAberbach/etz","owner":"TomerAberbach","description":"🌴 A humble logger.","archived":false,"fork":false,"pushed_at":"2024-10-15T03:29:44.000Z","size":516,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-16T15:54:18.416Z","etag":null,"topics":["logger","logging","npm-module"],"latest_commit_sha":null,"homepage":"https://npm.im/etz","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TomerAberbach.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"TomerAberbach"}},"created_at":"2021-11-05T22:45:37.000Z","updated_at":"2024-10-15T03:28:38.000Z","dependencies_parsed_at":"2024-06-23T05:41:34.318Z","dependency_job_id":"1b6bc6b3-6aa6-419e-852f-dc768c634f31","html_url":"https://github.com/TomerAberbach/etz","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomerAberbach%2Fetz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomerAberbach%2Fetz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomerAberbach%2Fetz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomerAberbach%2Fetz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TomerAberbach","download_url":"https://codeload.github.com/TomerAberbach/etz/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245043842,"owners_count":20551840,"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":["logger","logging","npm-module"],"created_at":"2024-10-11T01:23:17.516Z","updated_at":"2025-03-23T01:30:50.613Z","avatar_url":"https://github.com/TomerAberbach.png","language":"TypeScript","funding_links":["https://github.com/sponsors/TomerAberbach"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  etz\n\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://npmjs.org/package/etz\"\u003e\n    \u003cimg src=\"https://badgen.net/npm/v/etz\" alt=\"version\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/TomerAberbach/etz/actions\"\u003e\n    \u003cimg src=\"https://github.com/TomerAberbach/etz/workflows/CI/badge.svg\" alt=\"CI\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/sponsors/TomerAberbach\"\u003e\n    \u003cimg src=\"https://img.shields.io/static/v1?label=Sponsor\u0026message=%E2%9D%A4\u0026logo=GitHub\u0026color=%23fe8e86\" alt=\"Sponsor\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  A humble logger.\n\u003c/div\u003e\n\n## Features\n\n- **Humble:** it just prints pretty filterable logs to the console!\n- **Filtering:** use `ETZ` and `NO_ETZ` environment variables to filter\n- **Cool Name:** just three letters [transliterated from Hebrew](#faq)\n\n## Install\n\n```sh\n$ npm i etz\n```\n\n## Usage\n\n**index.js**:\n\n```js\nimport etz from 'etz'\n\netz.debug(`Hello World!`)\netz.info(`Hello World!`)\netz.warn(`Hello World!`)\netz.error(`Hello World!`)\n```\n\n### Log level\n\n_NOTE: The examples below are not colorized, but they will be in your terminal!_\n\nThe default log level is `INFO`:\n\n```shell\n$ node index.js\nℹ INFO Hello World!\n⚠ WARN Hello World!\n✖ ERROR Hello World!\n```\n\nSet the log level with the `ETZ` environment variable:\n\n```shell\n$ node index.js\nℹ INFO Hello World!\n⚠ WARN Hello World!\n✖ ERROR Hello World!\n\n$ ETZ=0 node index.js\n★ DEBUG Hello World!\nℹ INFO Hello World!\n⚠ WARN Hello World!\n✖ ERROR Hello World!\n\n$ ETZ=debug node index.js\n★ DEBUG Hello World!\nℹ INFO Hello World!\n⚠ WARN Hello World!\n✖ ERROR Hello World!\n\n$ ETZ=3 node index.js\n★ DEBUG Hello World!\nℹ INFO Hello World!\n⚠ WARN Hello World!\n✖ ERROR Hello World!\n\n$ ETZ=error node index.js\n✖ ERROR Hello World!\n```\n\nSuppress all logs with `NO_ETZ`:\n\n```shell\n$ NO_ETZ=1 node index.js\n```\n\nThe value of `NO_ETZ` doesn't matter. Any value works.\n\n## FAQ\n\n### What's with the name?\n\nThe Hebrew word for tree, wood, and most importantly _log_ is \"עץ\", which is\npronounced like \"etz\".\n\n## Contributing\n\nStars are always welcome!\n\nFor bugs and feature requests,\n[please create an issue](https://github.com/TomerAberbach/etz/issues/new).\n\nFor pull requests, please read the\n[contributing guidelines](https://github.com/TomerAberbach/etz/blob/main/contributing.md).\n\n## License\n\n[Apache License 2.0](https://github.com/TomerAberbach/etz/blob/main/license)\n\nThis is not an official Google product.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomeraberbach%2Fetz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomeraberbach%2Fetz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomeraberbach%2Fetz/lists"}