{"id":19933939,"url":"https://github.com/k4m4/lexis-count","last_synced_at":"2025-05-03T12:30:22.054Z","repository":{"id":30160690,"uuid":"124113294","full_name":"k4m4/lexis-count","owner":"k4m4","description":"Retrieve the number of words in a string.","archived":false,"fork":false,"pushed_at":"2023-01-05T16:13:42.000Z","size":493,"stargazers_count":3,"open_issues_count":5,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-16T07:05:29.368Z","etag":null,"topics":["api","count","counter","lexis","nodejs","words"],"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/k4m4.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}},"created_at":"2018-03-06T17:23:57.000Z","updated_at":"2022-05-08T09:22:41.000Z","dependencies_parsed_at":"2023-01-14T16:25:51.812Z","dependency_job_id":null,"html_url":"https://github.com/k4m4/lexis-count","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k4m4%2Flexis-count","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k4m4%2Flexis-count/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k4m4%2Flexis-count/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k4m4%2Flexis-count/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k4m4","download_url":"https://codeload.github.com/k4m4/lexis-count/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252190417,"owners_count":21708878,"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":["api","count","counter","lexis","nodejs","words"],"created_at":"2024-11-12T23:15:22.580Z","updated_at":"2025-05-03T12:30:21.685Z","avatar_url":"https://github.com/k4m4.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lexis-count [![Build Status](https://travis-ci.org/k4m4/lexis-count.svg?branch=master)](https://travis-ci.org/k4m4/lexis-count)\n\n\u003e Retrieve the number of words in a string.\n\n\n## Install\n\n```\n~ ❯❯❯ npm install lexis-count\n```\n\n\n## Usage\n\n```js\nconst lexisCount = require('lexis-count');\n\nlexisCount('Lorem ipsum dolor sit amet')\n//=\u003e 5\n\nlexisCount(' Lorem ipsum dolor   sit amet  ')\n//=\u003e 5\n```\n\n\n## API\n\n### lexisCount()\n\nType: `string`\n\nReturns the number of words in a string.\n\n\n## Related\n\n- [lexis](https://github.com/k4m4/lexis) - CLI for this module\n\n\n## Credits\n\n- The regular expression used has been adapted from [word-regex](https://github.com/regexhq/word-regex) by [regexhq](https://github.com/regexhq).\n\n\n## License\n\nMIT © [Nikolaos Kamarinakis](https://nikolaskama.me)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk4m4%2Flexis-count","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk4m4%2Flexis-count","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk4m4%2Flexis-count/lists"}