{"id":13447691,"url":"https://github.com/prateekkalra/Selection-js","last_synced_at":"2025-03-22T01:31:13.425Z","repository":{"id":32164962,"uuid":"129789127","full_name":"prateekkalra/Selection-js","owner":"prateekkalra","description":"A lightweight javascipt library which provides users with a set of options in the form of a small popover over the selected portion of text.","archived":false,"fork":false,"pushed_at":"2023-10-05T03:55:33.000Z","size":77,"stargazers_count":94,"open_issues_count":37,"forks_count":62,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-13T00:57:49.627Z","etag":null,"topics":["copy-paste","facebook","google-search","javascript","javascript-library","popover","selection","text-to-speech","twitter","vanilla-javascript"],"latest_commit_sha":null,"homepage":"https://prateekkalra.github.io/Selection-js/","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/prateekkalra.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-16T18:37:20.000Z","updated_at":"2024-11-18T11:40:14.000Z","dependencies_parsed_at":"2024-10-28T12:19:17.119Z","dependency_job_id":"918992fe-3d5e-45c0-916a-bd2548417cd9","html_url":"https://github.com/prateekkalra/Selection-js","commit_stats":{"total_commits":21,"total_committers":5,"mean_commits":4.2,"dds":"0.38095238095238093","last_synced_commit":"69d2868d9a84d817165bb44c538454d2a9f010de"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prateekkalra%2FSelection-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prateekkalra%2FSelection-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prateekkalra%2FSelection-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prateekkalra%2FSelection-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prateekkalra","download_url":"https://codeload.github.com/prateekkalra/Selection-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244893430,"owners_count":20527588,"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":["copy-paste","facebook","google-search","javascript","javascript-library","popover","selection","text-to-speech","twitter","vanilla-javascript"],"created_at":"2024-07-31T05:01:24.495Z","updated_at":"2025-03-22T01:31:13.134Z","avatar_url":"https://github.com/prateekkalra.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://prateekkalra.github.io/Selection-js\"\u003e\u003cimg alt=\"SelectionJS\" src=\"./logo.png\" width=\"150px\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  A lightweight javascript library which provides users with a set of options in the form of a small popover over the selected portion of text.\n\u003c/p\u003e  \n\n \u003cp align=\"center\"\u003e\n  \u003ca href=\"https://prateekkalra.github.io/Selection-js\" target=\"_\"\u003eLive Demo\u003c/a\u003e\n\u003c/p\u003e\n\n## Usage\n\nTo get started with Selection.js, download the [Script](https://github.com/prateekkalra/Selection-js/files/1920677/SelectionJS.zip) and add it to your project\n\n\n### Basic\n\n```html\n\u003cscript src=\"selection.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  var selection = new Selection();\n  selection.init();\n\u003c/script\u003e\n```\n\n### Advanced\n\n```html\n\u003cscript src=\"selection.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  var selection = new Selection();\n  selection.config({\n    facebook: true,\n    twitter: true,\n    search:true,\n    copy:true,\n    speak:true,\n    backgroundColor: 'crimson',\n    iconColor: '#fff',\n  }).init();\n\u003c/script\u003e\n```\n\n# Result\n\n\n\u003cp align=\"center\"\u003e\n\u003cimg alt=\"Demo\" src=\"https://user-images.githubusercontent.com/29385192/38880290-f5e173ce-4282-11e8-9447-6cab91540735.PNG\"\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprateekkalra%2FSelection-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprateekkalra%2FSelection-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprateekkalra%2FSelection-js/lists"}