{"id":19404497,"url":"https://github.com/seven-io/sms-counter","last_synced_at":"2026-06-13T12:33:37.657Z","repository":{"id":42811414,"uuid":"269377683","full_name":"seven-io/sms-counter","owner":"seven-io","description":"A SMS Counter for attaching to HTML form elements.","archived":false,"fork":false,"pushed_at":"2026-05-26T08:31:41.000Z","size":2073,"stargazers_count":1,"open_issues_count":8,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-26T10:24:49.666Z","etag":null,"topics":["gsm7","seven-docs","sms","sms-counter","ucs2"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@sms77.io/counter","language":"TypeScript","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/seven-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-06-04T14:12:08.000Z","updated_at":"2026-05-26T08:04:34.000Z","dependencies_parsed_at":"2024-01-12T16:59:51.983Z","dependency_job_id":"309121aa-3b6f-460a-8a8a-c6504df85d4a","html_url":"https://github.com/seven-io/sms-counter","commit_stats":null,"previous_names":["sms77io/sms-counter"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/seven-io/sms-counter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven-io%2Fsms-counter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven-io%2Fsms-counter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven-io%2Fsms-counter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven-io%2Fsms-counter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seven-io","download_url":"https://codeload.github.com/seven-io/sms-counter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven-io%2Fsms-counter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34285190,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["gsm7","seven-docs","sms","sms-counter","ucs2"],"created_at":"2024-11-10T11:35:15.651Z","updated_at":"2026-06-13T12:33:37.638Z","avatar_url":"https://github.com/seven-io.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://www.seven.io/wp-content/uploads/Logo.svg\" width=\"250\" /\u003e\r\n\r\n# SMS Counter by seven\r\n\r\nCounts the SMS character usage for a textarea or text input.\r\n\r\n## Installation\r\n\r\n### For Browsers\r\n\r\n```html\r\n\r\n\u003cscript src='https://unpkg.com/@seven.io/counter/dist/index.js'\u003e\u003c/script\u003e\r\n```\r\n\r\n### For NodeJS\r\n\r\n#### Yarn `yarn add @seven.io/counter`\r\n\r\n#### NPM `npm install @seven.io/counter`\r\n\r\n```javascript\r\nimport '@seven.io/counter'\r\n```\r\n\r\n## Usage\r\n\r\n```html\r\n\u003ctextarea data-seven-sms\u003e\u003c/textarea\u003e\r\n\u003cinput data-seven-sms/\u003e\r\n```\r\n\r\nFor advanced usage see the [examples](examples).\r\n\r\n- [textarea](examples/textarea.html)\r\n- [input](examples/input.html)\r\n- [CSS Selector](examples/selector.html)\r\n- [stats](examples/stats.html)\r\n- [getCounterStats](examples/counterStats.js)\r\n\r\n## Options\r\n\r\nSet the window object before loading the library.\r\n\r\n```javascript\r\nwindow.SEVEN_COUNTER_OPTIONS = {\r\n    initEvent: string = 'DOMContentLoaded', // the DOM event for init\r\n    position: InsertPosition = 'afterend', // where to add the counter stats span relative to the input\r\n    selector: string = '*[data-seven-sms]', // the inputs selector\r\n    standalone: boolean = false, // stop attaching input listeners\r\n    stats: boolean = false, // whether to output stats or not - also accepts HTMLElement or CSS selector\r\n}\r\n```\r\n\r\n## Support\r\n\r\nNeed help? Feel free to [contact us](https://www.seven.io/en/company/contact).\r\n\r\n[![MIT](https://img.shields.io/badge/License-MIT-teal.svg)](LICENSE.txt)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseven-io%2Fsms-counter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseven-io%2Fsms-counter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseven-io%2Fsms-counter/lists"}