{"id":28509839,"url":"https://github.com/choojs/nanologger","last_synced_at":"2025-07-03T01:31:26.327Z","repository":{"id":57307980,"uuid":"83927172","full_name":"choojs/nanologger","owner":"choojs","description":"📜 - Cute browser logs","archived":false,"fork":false,"pushed_at":"2019-06-11T08:45:58.000Z","size":25,"stargazers_count":81,"open_issues_count":1,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-08T22:39:41.800Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/choojs.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":"2017-03-04T21:54:18.000Z","updated_at":"2024-11-30T13:04:37.000Z","dependencies_parsed_at":"2022-09-12T11:44:14.032Z","dependency_job_id":null,"html_url":"https://github.com/choojs/nanologger","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/choojs/nanologger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choojs%2Fnanologger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choojs%2Fnanologger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choojs%2Fnanologger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choojs%2Fnanologger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/choojs","download_url":"https://codeload.github.com/choojs/nanologger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choojs%2Fnanologger/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263243645,"owners_count":23436344,"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":"2025-06-08T22:37:28.543Z","updated_at":"2025-07-03T01:31:26.302Z","avatar_url":"https://github.com/choojs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nanologger [![stability][0]][1]\n[![npm version][2]][3] [![build status][4]][5]\n[![downloads][8]][9] [![js-standard-style][10]][11]\n\nCute browser logger.\n\n## Usage\n```js\nvar nanologger = require('nanologger')\nvar log = nanologger('my-cool-logger')\n\nlog.debug('it works!')\nlog.info('hey')\nlog.warn('oh')\nlog.error('oh no!')\nlog.fatal('send help')\n```\n\n## API\n### `log = logger([name][, opts])`\nCreate a new `nanologger` instance. Name defaults to `'unknown'`. Opts should be an object with the following properties:\n\n- colors: Key/value object used to set the colors of the logger. If any of the expected colors is not set, it will use [the defaults][12], any extra color will be ignored.\n\n### `level = log.logLevel`\nRead the current logLevel. The log level can be set through\n`localStorage.setItem('logLevel', '\u003clevel\u003e')`. It's read once at boot time.\n\n### `log.debug(message)`\nEmit a message at loglevel 🐛\n\n### `log.info(message)`\nEmit a message at loglevel ✨\n\n### `log.warn(message)`\nEmit a message at loglevel ⚠️\n\n### `log.error(message)`\nEmit a message at loglevel 🚨\n\n### `log.fatal(message)`\nEmit a message at loglevel 💀\n\n## See Also\n- [lrlna/pino-colada](https://github.com/lrlna/pino-colada)\n- [pinojs/pino](https://github.com/pinojs/pino)\n\n## License\n[MIT](https://tldrlegal.com/license/mit-license)\n\n[0]: https://img.shields.io/badge/stability-experimental-orange.svg?style=flat-square\n[1]: https://nodejs.org/api/documentation.html#documentation_stability_index\n[2]: https://img.shields.io/npm/v/nanologger.svg?style=flat-square\n[3]: https://npmjs.org/package/nanologger\n[4]: https://img.shields.io/travis/choojs/nanologger/master.svg?style=flat-square\n[5]: https://travis-ci.org/choojs/nanologger\n[6]: https://img.shields.io/codecov/c/github/choojs/nanologger/master.svg?style=flat-square\n[7]: https://codecov.io/github/choojs/nanologger\n[8]: http://img.shields.io/npm/dm/nanologger.svg?style=flat-square\n[9]: https://npmjs.org/package/nanologger\n[10]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square\n[11]: https://github.com/feross/standard\n[12]: https://github.com/choojs/nanologger/blob/master/index.js#L22-L34\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchoojs%2Fnanologger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchoojs%2Fnanologger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchoojs%2Fnanologger/lists"}