{"id":23628272,"url":"https://github.com/flamencist/selectorgenerator","last_synced_at":"2025-08-31T04:32:07.602Z","repository":{"id":57742153,"uuid":"91000960","full_name":"flamencist/SelectorGenerator","owner":"flamencist","description":"JavaScript object that creates a unique CSS selector for a given DOM element. It has no external dependencies.","archived":false,"fork":false,"pushed_at":"2020-05-01T23:07:03.000Z","size":75,"stargazers_count":20,"open_issues_count":27,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-28T00:32:18.259Z","etag":null,"topics":["css","css-selector","javascript","parser"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flamencist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-11T16:31:24.000Z","updated_at":"2024-11-21T10:30:20.000Z","dependencies_parsed_at":"2022-09-05T18:00:50.734Z","dependency_job_id":null,"html_url":"https://github.com/flamencist/SelectorGenerator","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flamencist%2FSelectorGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flamencist%2FSelectorGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flamencist%2FSelectorGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flamencist%2FSelectorGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flamencist","download_url":"https://codeload.github.com/flamencist/SelectorGenerator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231573588,"owners_count":18394547,"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","css-selector","javascript","parser"],"created_at":"2024-12-28T00:32:31.650Z","updated_at":"2024-12-28T00:32:32.507Z","avatar_url":"https://github.com/flamencist.png","language":"JavaScript","funding_links":["https://www.buymeacoffee.com/flamencist"],"categories":[],"sub_categories":[],"readme":"# SelectorGenerator\n\n[![Built with Gulp](http://img.shields.io/badge/built%20with-gulp.js-red.svg)](http://gulpjs.com/)\n[![devDependency Status](https://david-dm.org/flamencist/SelectorGenerator/dev-status.svg)](https://david-dm.org/flamencist/SelectorGenerator#info=devDependencie)\n[![Build Status](https://secure.travis-ci.org/flamencist/SelectorGenerator.svg)](http://travis-ci.org/flamencist/SelectorGenerator)\n\n\nJavaScript object that creates a unique CSS selector for a given DOM element. It has no external dependencies.\n \nHelp support the project:\n\n\u003ca href=\"https://www.buymeacoffee.com/flamencist\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: auto !important;width: auto !important;\" \u003e\u003c/a\u003e\n\n## Overview    \n    var generator = new SelectorGenerator();\n    var element = document.querySelector(\"input\"); // \u003cinput type=\"text\" id=\"login\" /\u003e\n    var selector = generator.getSelector(element); //=\u003e #login\n    var path = generator.getPath(element); //=\u003e body \u003e div \u003e input\n\n## Installation\n\n### Node.js\n\nTo install __SelectorGenerator__ module for Node.js, this command should be used:\n\n\tnpm install selector-generator\n\t\nOr [yarn](https://yarnpkg.com/lang/en/):\n\n    yarn add selector-generator\n\n## Tests\n\nYou can view the results of the SelectorGenerator test suite [in your browser!](https://rawgit.com/flamencist/SelectorGenerator/master/spec-runner.html)\n\n### License\n\nThis software is distributed under the terms of the MIT License (MIT).\n\n### Authors\n\nAlexander Chermyanin / [LinkedIn](https://www.linkedin.com/in/alexander-chermyanin)\n\n\n\nContributions and bugs reports are welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflamencist%2Fselectorgenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflamencist%2Fselectorgenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflamencist%2Fselectorgenerator/lists"}