{"id":18432118,"url":"https://github.com/dustinspecker/parse-css-class-id-selector","last_synced_at":"2026-07-18T09:32:53.337Z","repository":{"id":57319333,"uuid":"51675285","full_name":"dustinspecker/parse-css-class-id-selector","owner":"dustinspecker","description":"Retreive class names and id from a CSS selector","archived":false,"fork":false,"pushed_at":"2017-05-28T20:11:43.000Z","size":16,"stargazers_count":2,"open_issues_count":16,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-24T09:58:16.415Z","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/dustinspecker.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-14T01:59:39.000Z","updated_at":"2018-12-21T18:42:23.000Z","dependencies_parsed_at":"2022-08-26T01:10:09.273Z","dependency_job_id":null,"html_url":"https://github.com/dustinspecker/parse-css-class-id-selector","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dustinspecker/parse-css-class-id-selector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustinspecker%2Fparse-css-class-id-selector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustinspecker%2Fparse-css-class-id-selector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustinspecker%2Fparse-css-class-id-selector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustinspecker%2Fparse-css-class-id-selector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dustinspecker","download_url":"https://codeload.github.com/dustinspecker/parse-css-class-id-selector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustinspecker%2Fparse-css-class-id-selector/sbom","scorecard":{"id":360367,"data":{"date":"2025-08-11","repo":{"name":"github.com/dustinspecker/parse-css-class-id-selector","commit":"132d37fbee0342d9a62eb725d4485af5ce178a5e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":1,"reason":"Found 3/16 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: license.md:0","Info: FSF or OSI recognized license: MIT License: license.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T10:42:06.438Z","repository_id":57319333,"created_at":"2025-08-18T10:42:06.438Z","updated_at":"2025-08-18T10:42:06.438Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35614490,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-18T02:00:07.223Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-06T05:27:29.638Z","updated_at":"2026-07-18T09:32:53.297Z","avatar_url":"https://github.com/dustinspecker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# parse-css-class-id-selector\n[![NPM version](https://badge.fury.io/js/parse-css-class-id-selector.svg)](https://badge.fury.io/js/parse-css-class-id-selector) [![Build Status](https://travis-ci.org/dustinspecker/parse-css-class-id-selector.svg)](https://travis-ci.org/dustinspecker/parse-css-class-id-selector) [![Coverage Status](https://img.shields.io/coveralls/dustinspecker/parse-css-class-id-selector.svg)](https://coveralls.io/r/dustinspecker/parse-css-class-id-selector?branch=master)\n\n[![Code Climate](https://codeclimate.com/github/dustinspecker/parse-css-class-id-selector/badges/gpa.svg)](https://codeclimate.com/github/dustinspecker/parse-css-class-id-selector) [![Dependencies](https://david-dm.org/dustinspecker/parse-css-class-id-selector.svg)](https://david-dm.org/dustinspecker/parse-css-class-id-selector/#info=dependencies\u0026view=table) [![DevDependencies](https://david-dm.org/dustinspecker/parse-css-class-id-selector/dev-status.svg)](https://david-dm.org/dustinspecker/parse-css-class-id-selector/#info=devDependencies\u0026view=table)\n\n\u003e Retreive class names and id from a CSS selector\n\n## Install\n```\nnpm install --save parse-css-class-id-selector\n```\n\n## Usage\n```javascript\nimport parseCssClassIdSelector from 'parse-css-class-id-selector'\n\nparseCssClassIdSelector('.hello#world.good-bye')\n// =\u003e {id: 'world', classNames: ['hello', 'good-bye']}\n\nparseCssClassIdSelector('#world')\n// =\u003e {id: 'world', classNames: []}\n\nparseCssClassIdSelector('.hello.good-bye')\n// =\u003e {id: null, classNames: ['hello', 'good-bye']}\n```\n\n## API\n### parseCssClassIdSelector(selector)\nReturns an object with a `classNames` array and an `id`. An empty array is return if no class names found. Null is return if no id is found.\n#### selector\ntype: `String`\n\nA string consisting of only class and/or id selectors.\n\n## LICENSE\nMIT © [Dustin Specker](https://github.com/dustinspecker)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdustinspecker%2Fparse-css-class-id-selector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdustinspecker%2Fparse-css-class-id-selector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdustinspecker%2Fparse-css-class-id-selector/lists"}