{"id":17749348,"url":"https://github.com/devloop01/text-splitter","last_synced_at":"2025-04-01T08:10:45.078Z","repository":{"id":128728447,"uuid":"239739901","full_name":"devloop01/text-splitter","owner":"devloop01","description":null,"archived":false,"fork":false,"pushed_at":"2020-02-11T11:48:25.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-08T18:48:44.399Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devloop01.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-11T10:55:48.000Z","updated_at":"2020-02-11T11:48:27.000Z","dependencies_parsed_at":"2023-06-05T04:45:40.542Z","dependency_job_id":null,"html_url":"https://github.com/devloop01/text-splitter","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devloop01%2Ftext-splitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devloop01%2Ftext-splitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devloop01%2Ftext-splitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devloop01%2Ftext-splitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devloop01","download_url":"https://codeload.github.com/devloop01/text-splitter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246604610,"owners_count":20804100,"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-10-26T11:22:54.365Z","updated_at":"2025-04-01T08:10:45.058Z","avatar_url":"https://github.com/devloop01.png","language":"JavaScript","readme":"# text-splitter\n\nThis is just an experiment to try and immitate [**Splitting.js**](https://splitting.js.org/)\n\nAfter setting up the javascript file, to split every text of a container - add `data-split` attribute to the element and\ncall the function name `split()` to initialize the split.\n\nThe script then splits every characters in separate `span` container with class `char`.\n\nAlso every separate characters are stored inside their respective word container with class `word`.\n\nEvery character has an attribute named `data-char` whose value is their respective character which is stored inside that element.\nAlso every character has index no. which is stored in a css variable - `--char-index`\n\nAlso these similar property applies to the word container, where it keeps track of the words index no. and the word\nwhich is stored inside the attribute `data-word`.\n\nAll the words are stored in a container which has class name `split` and `words`. It keeps track of the total no. of words and\ncharacters stored in the container in css variable `--word-total` and `--char-total`.\n\n**BEFORE**\n\n![before splitting](http://i.imgur.com/XVD9aMJ.png)\n\n\n**AFTER**\n\n![after splitting](http://i.imgur.com/3tXFEzD.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevloop01%2Ftext-splitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevloop01%2Ftext-splitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevloop01%2Ftext-splitter/lists"}