{"id":15433925,"url":"https://github.com/abhinaba-ghosh/any-text","last_synced_at":"2025-07-22T16:03:53.202Z","repository":{"id":40551875,"uuid":"278099262","full_name":"abhinaba-ghosh/any-text","owner":"abhinaba-ghosh","description":"Get text content from any file","archived":false,"fork":false,"pushed_at":"2024-08-17T18:14:18.000Z","size":231,"stargazers_count":61,"open_issues_count":14,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-30T04:49:32.751Z","etag":null,"topics":["file-reader","reader","text","text-extraction","text-extractor"],"latest_commit_sha":null,"homepage":"","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/abhinaba-ghosh.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-08T13:38:26.000Z","updated_at":"2024-09-15T01:42:46.000Z","dependencies_parsed_at":"2024-06-18T18:17:28.238Z","dependency_job_id":"e63eadfb-d680-467d-a0e1-b38b426044f6","html_url":"https://github.com/abhinaba-ghosh/any-text","commit_stats":{"total_commits":26,"total_committers":6,"mean_commits":4.333333333333333,"dds":"0.46153846153846156","last_synced_commit":"b7262718e48d5da88ad25c427702b3c754e2a404"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhinaba-ghosh%2Fany-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhinaba-ghosh%2Fany-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhinaba-ghosh%2Fany-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhinaba-ghosh%2Fany-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhinaba-ghosh","download_url":"https://codeload.github.com/abhinaba-ghosh/any-text/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248662564,"owners_count":21141594,"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":["file-reader","reader","text","text-extraction","text-extractor"],"created_at":"2024-10-01T18:36:07.362Z","updated_at":"2025-04-13T04:25:48.274Z","avatar_url":"https://github.com/abhinaba-ghosh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Any-Text\n\nExtract text content from a file.\n\n### Supported File Extensions\n\n- DOC\n- DOCX\n- DOT\n- PDF\n- CSV\n- TXT\n- XLS\n- XLSX\n- JSON\n\n### How to use\n\n- Install the library as a dependency (/dev-dependency)\n\n```ssh\nnpm i -D any-text\n```\n\n- Make use of the `getText` method to read the text content\n\n```js\nvar reader = require('any-text');\n\nreader\n  .getText(`path-to-file`)\n  .then(function (data) {\n    console.log(data); // handle success\n  })\n  .catch(function (error) {\n    console.log(error); // handle error\n  });\n```\n\n- You can also use the `async/await` notation\n\n```js\nvar reader = require('any-text');\n\nconst text = await reader.getText(`path-to-file`);\n\nconsole.log(text);\n```\n\n### Sample Test\n\n```js\nvar reader = require('any-text');\n\nconst chai = require('chai');\nconst expect = chai.expect;\n\ndescribe('file reader checks', () =\u003e {\n  it('check docx file content', async () =\u003e {\n    expect(await reader.getText(`${process.cwd()}/test/files/dummy.docx`)).to.contains(\n      'Lorem ipsum'\n    );\n  });\n});\n```\n\n### Tell me your issues\n\nyou can raise any issue [here](https://github.com/abhinaba-ghosh/any-text/issues)\n\n### Contribution\n\nAny pull request is welcome.\n\nIf it works for you , give a [Star](https://github.com/abhinaba-ghosh/any-text)! :star:\n\n_- Copyright \u0026copy; 2020- [Abhinaba Ghosh](https://www.linkedin.com/in/abhinaba-ghosh-9a2ab8a0/)_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhinaba-ghosh%2Fany-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhinaba-ghosh%2Fany-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhinaba-ghosh%2Fany-text/lists"}