{"id":15677794,"url":"https://github.com/jonschlinkert/line-number","last_synced_at":"2025-05-07T01:43:16.703Z","repository":{"id":18258376,"uuid":"21415370","full_name":"jonschlinkert/line-number","owner":"jonschlinkert","description":"Get the line number for each regex match found in a string.","archived":false,"fork":false,"pushed_at":"2019-05-23T10:10:59.000Z","size":6,"stargazers_count":15,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T05:03:24.540Z","etag":null,"topics":["index","javascript","jonschlinkert","line","match","matches","number","regex","regex-match","regular-expression","split","string","util"],"latest_commit_sha":null,"homepage":"https://github.com/jonschlinkert","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/jonschlinkert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-02T07:33:41.000Z","updated_at":"2024-10-26T05:12:39.000Z","dependencies_parsed_at":"2022-07-26T02:32:01.766Z","dependency_job_id":null,"html_url":"https://github.com/jonschlinkert/line-number","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/jonschlinkert%2Fline-number","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fline-number/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fline-number/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fline-number/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonschlinkert","download_url":"https://codeload.github.com/jonschlinkert/line-number/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252277122,"owners_count":21722464,"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":["index","javascript","jonschlinkert","line","match","matches","number","regex","regex-match","regular-expression","split","string","util"],"created_at":"2024-10-03T16:11:51.181Z","updated_at":"2025-05-07T01:43:16.684Z","avatar_url":"https://github.com/jonschlinkert.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# line-number [![NPM version](https://badge.fury.io/js/line-number.png)](http://badge.fury.io/js/line-number)\n\n\u003e Get the line number for each regex match found in a string.\n\n## Install\nInstall with [npm](npmjs.org):\n\n```bash\nnpm i line-number --save-dev\n```\n\n## Usage\n\n```js\nvar lineNumber = require('line-number');\nvar fixture = fs.readFileSync('LICENSE-MIT', 'utf8');\nvar re = /Jon[^,]+/g;\nconsole.log(lineNumber(fixture, re));\n//=\u003e results in:\n// [\n//   {\n//     \"line\": \"Copyright (c) 2014 Jon Schlinkert, contributors.\",\n//     \"number\": 1,\n//     \"match\": \"Jon Schlinkert\"\n//   }\n// ];\n```\n\n\n## Author\n\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\nCopyright (c) 2014 Jon Schlinkert, contributors.\nReleased under the MIT license\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on July 02, 2014._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Fline-number","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonschlinkert%2Fline-number","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Fline-number/lists"}