{"id":20092736,"url":"https://github.com/erdembircan/selection-popup","last_synced_at":"2025-10-16T02:34:11.811Z","repository":{"id":57356537,"uuid":"111587286","full_name":"erdembircan/selection-popup","owner":"erdembircan","description":"A library to add popup menus at text selections.","archived":false,"fork":false,"pushed_at":"2017-11-27T04:42:33.000Z","size":38,"stargazers_count":17,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T08:23:00.347Z","etag":null,"topics":["javascript","javascript-library","module","npm","popup","selection"],"latest_commit_sha":null,"homepage":"https://erdembircan.github.io/selection-popup/","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/erdembircan.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-11-21T18:39:22.000Z","updated_at":"2024-11-18T11:37:48.000Z","dependencies_parsed_at":"2022-09-05T04:20:57.559Z","dependency_job_id":null,"html_url":"https://github.com/erdembircan/selection-popup","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdembircan%2Fselection-popup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdembircan%2Fselection-popup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdembircan%2Fselection-popup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdembircan%2Fselection-popup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erdembircan","download_url":"https://codeload.github.com/erdembircan/selection-popup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252622129,"owners_count":21777921,"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":["javascript","javascript-library","module","npm","popup","selection"],"created_at":"2024-11-13T16:44:29.610Z","updated_at":"2025-10-16T02:34:06.772Z","avatar_url":"https://github.com/erdembircan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# selection-popup [![Build Status](https://travis-ci.org/erdembircan/selection-popup.svg?branch=master)](https://travis-ci.org/erdembircan/selection-popup)\n\n---\n\nA library to add popup menus at text selections.\n\u003cbr\u003e\n[Demo page](https://erdembircan.github.io/selection-popup/)\n\n---\n\n## Installation\n`npm install selection-popup`\n\n---\n\n## Usage\n```\nconst selectionPop = require('selection-popup)\n\nselectionPop(['share', '\u003ci class=\"fa fa-twitter\" aria-hidden=\"true\"\u003e\u003c/i\u003e\n', 'log'], [shareFunc, tweetFunc, function(e){\n  console.log('selected item: ' + e)\n} ],{style: 'background-color:yellow'});\n```\n\n---\n\n## API\n### selectionPop([items],[funcs] ,[options])\nadd a popup menu to document\n\n### items (required)\nType: `array`, `String`(for single item)\n\n---\n### funcs (required)\nType: `array`, `String`(for single item)\nfunctions for onClick actions of the appropriate items\n\n---\n\n### options (optional)\nType: `object`\n\u003cbr\u003e\n[style]: `String` an override styles for customization\n\n---\n\n## License\nCopyright © 2017, Erdem Bircan. Released under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferdembircan%2Fselection-popup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferdembircan%2Fselection-popup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferdembircan%2Fselection-popup/lists"}