{"id":20776819,"url":"https://github.com/avocode/pretty-selectors","last_synced_at":"2025-07-21T13:33:08.090Z","repository":{"id":21528443,"uuid":"24847699","full_name":"avocode/pretty-selectors","owner":"avocode","description":"Pretty selectors take your ugly text and transform it to nice CSS selectors","archived":false,"fork":false,"pushed_at":"2016-03-04T16:18:48.000Z","size":10,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-30T18:11:26.686Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CoffeeScript","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/avocode.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":"2014-10-06T13:50:04.000Z","updated_at":"2018-12-18T17:49:35.000Z","dependencies_parsed_at":"2022-08-18T21:52:53.323Z","dependency_job_id":null,"html_url":"https://github.com/avocode/pretty-selectors","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/avocode/pretty-selectors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avocode%2Fpretty-selectors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avocode%2Fpretty-selectors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avocode%2Fpretty-selectors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avocode%2Fpretty-selectors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avocode","download_url":"https://codeload.github.com/avocode/pretty-selectors/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avocode%2Fpretty-selectors/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266312002,"owners_count":23909742,"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","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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-17T13:12:03.321Z","updated_at":"2025-07-21T13:33:08.062Z","avatar_url":"https://github.com/avocode.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Pretty Selectors\n================\n\n\u003e Pretty selectors take your ugly text and transform it to nice CSS selectors.\n\n## Installation\n\n`npm install pretty-selectors`\n\n## Input/Output example\n\n![](http://f.cl.ly/items/2H3O3y0z2t46042s0J1i/Screen%20Shot%202014-10-06%20at%2015.55.37.png)\n\n## Code example\n\n    var PrettySelectors = require('pretty-selectors');\n\n    var selector = PrettySelectors('Moje mama', {separator: 'snake',\n                                    selector: 'id',\n                                    maxWords: 3});\n    // result: #moje_mama\n\n## Api\n\n    PrettySelectors(text, object)\n\n### text (string) – required\n\n### object.separator (string, default: 'dash') – optional\n\nOptions: dash, snake, camel\n\n### object.selector (string) – optional, default: 'class'\n\nOptions: class, id, element\n\n### object.maxWords (number) – optional, default: 0 means no text stripping\n\n### object.fallbackSelectorPrefix (string) – optional\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favocode%2Fpretty-selectors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favocode%2Fpretty-selectors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favocode%2Fpretty-selectors/lists"}