{"id":13624775,"url":"https://github.com/tomerdmnt/tag-input","last_synced_at":"2025-04-16T01:32:27.647Z","repository":{"id":4994019,"uuid":"6152159","full_name":"tomerdmnt/tag-input","owner":"tomerdmnt","description":"Turns a text input into a pretty Evernote like tags input","archived":false,"fork":false,"pushed_at":"2016-02-01T07:50:37.000Z","size":228,"stargazers_count":30,"open_issues_count":1,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-01T22:02:13.124Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"codylindley/frontend-tools","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomerdmnt.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":"2012-10-10T04:34:38.000Z","updated_at":"2021-10-10T21:00:23.000Z","dependencies_parsed_at":"2022-07-09T00:30:19.830Z","dependency_job_id":null,"html_url":"https://github.com/tomerdmnt/tag-input","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomerdmnt%2Ftag-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomerdmnt%2Ftag-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomerdmnt%2Ftag-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomerdmnt%2Ftag-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomerdmnt","download_url":"https://codeload.github.com/tomerdmnt/tag-input/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223691782,"owners_count":17186880,"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":[],"created_at":"2024-08-01T21:01:46.300Z","updated_at":"2024-11-08T13:31:20.091Z","avatar_url":"https://github.com/tomerdmnt.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\n# tag-input\n\n  A [component](http://github.com/component/component) that turns a text input element into a pretty tags input.\n  Enables you to work with any MVC framework using simple events or you can get the tags from the inner model.\n\n  ![Tags Input](https://raw.github.com/tomerdmnt/tag-input/master/screenshot.jpg)\n\n## Install\n  ```\n    component install tomerdmnt/tag-input\n  ```\n\n## Example\n\n  ``` javascript\n    var TagInput = require('tag-input');\n\n    var taginput = TagInput(document.getElementById('tags'))\n\n    taginput.on('add', function (tag) {\n      console.log(tag + ' added')\n      console.log(taginput.tags())\n    })\n\n    taginput.on('remove', function (tag) {\n      console.log(tag + ' removed')\n      console.log(taginput.tags())\n    })\n\n  ```\n\n## Notes about style\n  The pseudo input style is very basic, so you can adjust its looks to your site, You can extend it by adding to taginputContainer class.\n\n## api\n\n### TagInput(input)\n  binds to a text input element\n\n### addtag(tag)\n  adds a tag to the tag input from js\n\n### removetag(tag)\n  removes a tag from the tag input from js\n\n### event: 'add'\n  Called when a tag is added\n\n### event: 'removed'\n  Called when a tag is removed`\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomerdmnt%2Ftag-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomerdmnt%2Ftag-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomerdmnt%2Ftag-input/lists"}