{"id":19555065,"url":"https://github.com/kanety/insert-text","last_synced_at":"2026-02-26T01:43:18.385Z","repository":{"id":57123829,"uuid":"410469586","full_name":"kanety/insert-text","owner":"kanety","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-27T02:05:14.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T23:17:50.869Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/kanety.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-09-26T06:27:20.000Z","updated_at":"2024-06-27T02:04:39.000Z","dependencies_parsed_at":"2024-06-27T04:39:52.379Z","dependency_job_id":"131bed29-c05d-4a19-a39b-d480415742d8","html_url":"https://github.com/kanety/insert-text","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/kanety%2Finsert-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanety%2Finsert-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanety%2Finsert-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanety%2Finsert-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kanety","download_url":"https://codeload.github.com/kanety/insert-text/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239793855,"owners_count":19698057,"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-11-11T04:31:31.151Z","updated_at":"2026-02-26T01:43:13.362Z","avatar_url":"https://github.com/kanety.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# insert-text\n\nInsert text to input or contenteditable element.\n\n## Installation\n\nInstall from npm:\n\n    $ npm install @kanety/insert-text --save\n\n## Usage\n\nInsert text to `textarea`:\n\n```html\n\u003ctextarea\u003esample text\u003c/textarea\u003e\n```\n\n```javascript\nimport InsertText from '@kanety/insert-text';\nInsertText.run('textarea', 'YOUR TEXT');\n```\n\nInsert text to `contenteditable` element:\n\n```html\n\u003cdiv contenteditable=\"true\"\u003esample text\u003c/div\u003e\n```\n\n```javascript\nimport InsertText from '@kanety/insert-text';\nInsertText.run('div[contenteditable]', 'YOUR TEXT');\n```\n\nText is inserted at caret position by default.\n\n### Options\n\nInsert text at first position:\n\n```javascript\nInsertText.run('textarea', 'YOUR TEXT', 'first');\n```\n\nInsert text at last position:\n\n```javascript\nInsertText.run('textarea', 'YOUR TEXT', 'last');\n```\n\n## License\n\nThe library is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanety%2Finsert-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkanety%2Finsert-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanety%2Finsert-text/lists"}