{"id":16346829,"url":"https://github.com/matype/css-unit","last_synced_at":"2025-10-16T17:02:35.722Z","repository":{"id":16685467,"uuid":"19441726","full_name":"matype/css-unit","owner":"matype","description":"Analize CSS values and units","archived":false,"fork":false,"pushed_at":"2014-05-14T18:16:29.000Z","size":548,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-01T06:12:51.642Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"samuelngs/tui","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matype.png","metadata":{"files":{"readme":"readme.markdown","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":"2014-05-05T02:37:51.000Z","updated_at":"2024-06-01T06:12:51.643Z","dependencies_parsed_at":"2022-07-26T08:17:17.775Z","dependency_job_id":null,"html_url":"https://github.com/matype/css-unit","commit_stats":null,"previous_names":["morishitter/css-unit","matype/css-unit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matype%2Fcss-unit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matype%2Fcss-unit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matype%2Fcss-unit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matype%2Fcss-unit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matype","download_url":"https://codeload.github.com/matype/css-unit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239550230,"owners_count":19657541,"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-10-11T00:37:44.045Z","updated_at":"2025-10-16T17:02:30.676Z","avatar_url":"https://github.com/matype.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# css-unit [![Build Status](https://travis-ci.org/morishitter/css-unit.svg)](https://travis-ci.org/morishitter/css-unit)\n\nAnalize CSS values and units.\n\n## Installation\n\n```\nnpm install css-unit\n```\n\n## Example\n\n```javascript\nvar unit = require('css-unit');\n\nvar value = '50px';\nvar css = '.site-nav \u003e li:hover .dropdown{position:absolute;top:37px;left:0;}';\n\nunit.is(value); // 'px'\n\nunit.rm(value); // 50\n\nunit.stats(css);\n/*\n  { num: 2,\n    units: [ 'px', 'none' ],\n    rules:\n    [ { type: 'rule',\n        selectors: [ '.site-nav \u003e li:hover .dropdown' ],\n        declarations:\n        [ { type: 'declaration',\n            property: 'top',\n            value: '37px',\n            num: 37,\n            unit: 'px' },\n          { type: 'declaration',\n            property: 'left',\n            value: '0',\n            num: 0,\n            unit: 'none' } ] } ] }\n*/\n```\n\n## License\nThe MIT License (MIT)\n\nCopyright (c) 2014 Masaaki Morishita\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatype%2Fcss-unit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatype%2Fcss-unit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatype%2Fcss-unit/lists"}