{"id":25059832,"url":"https://github.com/blockception/bc-vscode-words","last_synced_at":"2025-04-14T14:24:38.331Z","repository":{"id":38417120,"uuid":"339089196","full_name":"Blockception/BC-VSCode-Words","owner":"Blockception","description":"The lexical analyzers basics used for analyzing code from VSCode documents","archived":false,"fork":false,"pushed_at":"2025-04-01T22:00:05.000Z","size":593,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T03:38:54.061Z","etag":null,"topics":["basic","hacktoberfest","hacktoberfest2022","language","lexical","lexical-analyzer","vscode"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/bc-vscode-words","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Blockception.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-02-15T13:38:13.000Z","updated_at":"2025-04-01T22:00:02.000Z","dependencies_parsed_at":"2023-10-01T23:31:24.540Z","dependency_job_id":"b6c54178-5d3b-4917-8ea4-e3ac1214dd16","html_url":"https://github.com/Blockception/BC-VSCode-Words","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blockception%2FBC-VSCode-Words","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blockception%2FBC-VSCode-Words/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blockception%2FBC-VSCode-Words/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blockception%2FBC-VSCode-Words/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Blockception","download_url":"https://codeload.github.com/Blockception/BC-VSCode-Words/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248895521,"owners_count":21179250,"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":["basic","hacktoberfest","hacktoberfest2022","language","lexical","lexical-analyzer","vscode"],"created_at":"2025-02-06T15:55:12.816Z","updated_at":"2025-04-14T14:24:38.303Z","avatar_url":"https://github.com/Blockception.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blockception Vscode Words\n\n[![Npm Package \u0026 Publish](https://github.com/Blockception/BC-VSCode-Words/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/Blockception/BC-VSCode-Words/actions/workflows/npm-publish.yml)\n[![Npm Test](https://github.com/Blockception/BC-VSCode-Words/actions/workflows/npm-test.yml/badge.svg)](https://github.com/Blockception/BC-VSCode-Words/actions/workflows/npm-test.yml)\n[![tagged-release](https://github.com/Blockception/BC-VSCode-Words/actions/workflows/tagged-release.yml/badge.svg)](https://github.com/Blockception/BC-VSCode-Words/actions/workflows/tagged-release.yml)\n\u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/v/bc-vscode-words\"\u003e \u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/dt/bc-vscode-words\"\u003e\n\nThe lexical analyzers basics used for analyzing code from VSCode documents\n\n## Examples\n\n```ts\n//Offset words contain only the offset of the word in the text\nfunction Process(doc: TextDocument) {\n  let Words = RangedWord.Parse(doc, /([^ \\t\\r\\n]+)+/gi);\n\n\tforeach(var W in Words) {\n\t\tif (W.text === \"hello\") {\n\t\t\tlet offset = W.offset;\n\t\t\tlet pos = doc.positionAt(offset);\n\t\t}\n\t}\n}\n```\n\n```ts\n//Ranged words contain the start (the character and line) and end of a word\nfunction Process(doc: TextDocument) {\n  let Words = RangedWord.Parse(doc, /([^ \\t\\r\\n]+)+/gi);\n\n\tforeach(var W in Words) {\n\t\tif (W.text === \"hello\") {\n\t\t\tlet range = W.range;\n\t\t}\n\t}\n}\n```\n\n```ts\n//Location words contain the start (the character and line) and end of a word and the uri\nfunction Process(doc: TextDocument) {\n  let Words = LocationWord.ParseFromRegexDoc(doc, /([^ \\t\\r\\n]+)+/gi);\n\n\tforeach(var W in Words) {\n\t\tif (W.text === \"hello\") {\n\t\t\tlet range = W.location.range;\n\t\t\tlet uri = W.location.uri\n\t\t}\n\t}\n}\n```\n\n## Contributing\n\nFirst, read the [contributing guide](./CONTRIBUTING.md). fork the project, clone it and run the following commands:\n\n**Installation**\n\n```cmd\n  npm ci\n  npm update\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblockception%2Fbc-vscode-words","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblockception%2Fbc-vscode-words","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblockception%2Fbc-vscode-words/lists"}