{"id":15284626,"url":"https://github.com/shellscape/postcss-values-parser","last_synced_at":"2025-05-15T07:02:34.022Z","repository":{"id":45117679,"uuid":"54896387","full_name":"shellscape/postcss-values-parser","owner":"shellscape","description":"A CSS property value parser for PostCSS","archived":false,"fork":false,"pushed_at":"2024-11-04T17:07:09.000Z","size":1075,"stargazers_count":59,"open_issues_count":5,"forks_count":31,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-31T01:04:21.657Z","etag":null,"topics":["css","cssnext","lesshint","parse","postcss","postcss-values-parser","values"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shellscape.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/funding.yml","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":{"patreon":"shellscape","custom":"https://paypal.me/shellscape","liberapay":"shellscape"}},"created_at":"2016-03-28T14:04:43.000Z","updated_at":"2024-09-27T03:31:00.000Z","dependencies_parsed_at":"2025-03-16T23:02:02.320Z","dependency_job_id":"47592899-85f4-41da-ae1e-0970aca16ae7","html_url":"https://github.com/shellscape/postcss-values-parser","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellscape%2Fpostcss-values-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellscape%2Fpostcss-values-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellscape%2Fpostcss-values-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellscape%2Fpostcss-values-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shellscape","download_url":"https://codeload.github.com/shellscape/postcss-values-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247415960,"owners_count":20935388,"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":["css","cssnext","lesshint","parse","postcss","postcss-values-parser","values"],"created_at":"2024-09-30T14:59:11.821Z","updated_at":"2025-04-07T02:09:07.429Z","avatar_url":"https://github.com/shellscape.png","language":"JavaScript","readme":"[tests]: \thttps://img.shields.io/circleci/project/github/shellscape/postcss-values-parser.svg\n[tests-url]: https://circleci.com/gh/shellscape/postcss-values-parser\n\n[cover]: https://codecov.io/gh/shellscape/postcss-values-parser/branch/master/graph/badge.svg\n[cover-url]: https://codecov.io/gh/shellscape/postcss-values-parser\n\n[size]: https://packagephobia.now.sh/badge?p=postcss-values-parser\n[size-url]: https://packagephobia.now.sh/result?p=postcss-values-parser\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"95\" height=\"95\" title=\"Philosopher’s stone, logo of PostCSS\" src=\"http://postcss.github.io/postcss/logo.svg\"\u003e\u003cbr/\u003e\u003cbr/\u003e\n\u003c/div\u003e\n\n# postcss-values-parser [![tests][tests]][tests-url] [![cover][cover]][cover-url] [![size][size]][size-url]\n\nA CSS property value parser built upon [PostCSS](https://github.com/postcss/postcss),\nfollowing the same node and traversal patterns as PostCSS.\n\n## Install\n\nUsing npm:\n\n```console\nnpm install postcss-values-parser --save-dev\n```\n\n\u003ca href=\"https://www.patreon.com/shellscape\"\u003e\n  \u003cimg src=\"https://c5.patreon.com/external/logo/become_a_patron_button@2x.png\" width=\"160\"\u003e\n\u003c/a\u003e\n\nPlease consider [becoming a patron](https://www.patreon.com/shellscape) if you find this module useful.\n\n## Requirements\n\n`postcss-values-parser` Node version v6.14.0+ and PostCSS v7.0.0+.\n\n## Benefits\n\n- Leverages PostCSS and its tokenizer under the hood\n- Doesn't strip characters; eg. parenthesis\n- Full [AST](https://en.wikipedia.org/wiki/Abstract_syntax_tree) traversal\n- Ability to walk the AST for every Node type\n- Convenience methods to stringify Nodes\n- Follows PostCSS patterns for whitespace between Nodes\n- Provides convenience properties for number units, colors, etc.\n\n## Usage\n\nUsing the parser is straightforward and minimalistic:\n\n```js\nconst { parse } = require('postcss-values-parser');\n\nconst root = parse('#fff');\nconst node = root.first;\n\n// → Word {\n//     raws: { before: '', after: '' },\n//     value: '#fff',\n//     type: 'word',\n//     isHex: true,\n//     isColor: true,\n//     isVariable: false,\n//     ...\n//   }\n```\n\nPlease see the [Documentation](./docs/README.md) for further information on using the module.\n\n## Meta\n\n[CONTRIBUTING](./.github/CONTRIBUTING.md)\n\n[LICENSE (Mozilla Public License)](./LICENSE)\n","funding_links":["https://patreon.com/shellscape","https://paypal.me/shellscape","https://liberapay.com/shellscape","https://www.patreon.com/shellscape"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshellscape%2Fpostcss-values-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshellscape%2Fpostcss-values-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshellscape%2Fpostcss-values-parser/lists"}