{"id":18909581,"url":"https://github.com/neovici/cosmoz-utils","last_synced_at":"2026-02-02T02:24:08.034Z","repository":{"id":2597896,"uuid":"46947551","full_name":"Neovici/cosmoz-utils","owner":"Neovici","description":"Collection of Cosmoz base/common/helper behaviors.","archived":false,"fork":false,"pushed_at":"2025-06-04T12:15:28.000Z","size":3257,"stargazers_count":0,"open_issues_count":5,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-29T14:04:39.428Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.webcomponents.org/element/Neovici/cosmoz-behaviors","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/Neovici.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2015-11-26T21:30:24.000Z","updated_at":"2025-06-04T12:15:30.000Z","dependencies_parsed_at":"2023-01-16T20:45:27.881Z","dependency_job_id":"e360f8a5-fb1d-46ca-92e2-27ec4f398565","html_url":"https://github.com/Neovici/cosmoz-utils","commit_stats":{"total_commits":460,"total_committers":19,"mean_commits":"24.210526315789473","dds":0.6043478260869566,"last_synced_commit":"a3789481878625bcd23d827762f85b67d7f64ba3"},"previous_names":["neovici/cosmoz-behaviors"],"tags_count":142,"template":false,"template_full_name":null,"purl":"pkg:github/Neovici/cosmoz-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neovici%2Fcosmoz-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neovici%2Fcosmoz-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neovici%2Fcosmoz-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neovici%2Fcosmoz-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Neovici","download_url":"https://codeload.github.com/Neovici/cosmoz-utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neovici%2Fcosmoz-utils/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264652747,"owners_count":23644325,"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-08T09:34:18.287Z","updated_at":"2026-01-28T21:03:23.702Z","avatar_url":"https://github.com/Neovici.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"@neovici/cosmoz-utils\n=================\n\n[![Build Status](https://github.com/Neovici/cosmoz-utils/workflows/Github%20CI/badge.svg)](https://github.com/Neovici/cosmoz-utils/actions?workflow=Github+CI)\n[![Sauce Test Status](https://saucelabs.com/buildstatus/nomego)](https://saucelabs.com/u/nomego)\n[![Maintainability](https://api.codeclimate.com/v1/badges/864f8d85f6b013e1caaa/maintainability)](https://codeclimate.com/github/Neovici/cosmoz-utils/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/864f8d85f6b013e1caaa/test_coverage)](https://codeclimate.com/github/Neovici/cosmoz-utils/test_coverage)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\n## Cosmoz Utils\n\n**cosmoz-utils** contains date, money and template management functions commonly\nneeded in page views. This package does not contain any visual element.\n\n## Upgrade guide\n\nUpgrading from `cosmoz-behaviors` is very straightforward.\n\n* `Cosmoz.TemplateHelperBehavior` -\u003e `import { Template } from '@neovici/cosmoz-utils'`\n* `Cosmoz.MoneyHelperBehavior` -\u003e `import { Money } from '@neovici/cosmoz-utils'`\n* `Cosmoz.DateHelperBehavior` -\u003e `import { Date } from '@neovici/cosmoz-utils'`\n* `Polymer.mixinBehaviors([Cosmoz.TemplateHelperBehavior], Polymer.Element)` -\u003e `mixin(Template, PolymerElement)`\n* `Polymer.mixinBehaviors([Cosmoz.TemplateHelperBehavior, Cosmoz.MoneyHelperBehavior], Polymer.Element)` -\u003e `mixin({...Template, ...Money}, PolymerElement)`\n\nThis code:\n\n```js\n\u003clink rel=\"import\" href=\"../cosmoz-templatehelper-behavior.html\" /\u003e\n\nclass DemoTemplateHelper extends Polymer.mixinBehaviors([Cosmoz.TemplateHelperBehavior], Polymer.Element) {\n```\n\nBecomes:\n\n```js\nimport { PolymerElement } from '@polymer/polymer/polymer-element';\nimport { mixin, Template } from '@neovici/cosmoz-utils';\n\nclass DemoTemplateHelper extends mixin(Template, PolymerElement) {\n```\n\nYou can also pick and choose only the functions your element needs:\n\n```js\nimport { mixin, Money } from '@neovici/cosmoz-utils';\nimport { isEmpty } from '@neovici/cosmoz-utils/template';\nimport { isoDate } from '@neovici/cosmoz-utils/date';\n\nclass DemoMoneyHelper extends mixin({isEmpty, isoDate, ...Money}, PolymerElement) {\n```\n\n### Big Thanks\n\nCross-browser Testing Platform and Open Source \u003c3 Provided by [Sauce Labs][sauce_homepage]\n\n[![Sauce Test Status](https://saucelabs.com/browser-matrix/nomego.svg)](https://saucelabs.com/u/nomego)\n[sauce_homepage]: https://saucelabs.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneovici%2Fcosmoz-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneovici%2Fcosmoz-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneovici%2Fcosmoz-utils/lists"}