{"id":18666760,"url":"https://github.com/bionode/fasta-parser","last_synced_at":"2025-04-11T23:33:10.974Z","repository":{"id":19627771,"uuid":"22879616","full_name":"bionode/fasta-parser","owner":"bionode","description":"Buffer Stream parser from FASTA to JSON.","archived":false,"fork":false,"pushed_at":"2020-09-02T15:27:18.000Z","size":289,"stargazers_count":6,"open_issues_count":3,"forks_count":4,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-03-25T19:53:18.389Z","etag":null,"topics":["bioinformatics","bionode","buffers","library","nodejs","parser"],"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/bionode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-12T14:06:40.000Z","updated_at":"2020-09-12T19:37:13.000Z","dependencies_parsed_at":"2022-08-24T02:50:11.391Z","dependency_job_id":null,"html_url":"https://github.com/bionode/fasta-parser","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bionode%2Ffasta-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bionode%2Ffasta-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bionode%2Ffasta-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bionode%2Ffasta-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bionode","download_url":"https://codeload.github.com/bionode/fasta-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248018955,"owners_count":21034172,"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":["bioinformatics","bionode","buffers","library","nodejs","parser"],"created_at":"2024-11-07T08:33:59.189Z","updated_at":"2025-04-11T23:33:05.963Z","avatar_url":"https://github.com/bionode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fasta-parser\n\u003e Buffer Stream parser from FASTA to JSON.\n\n[![NPM version][npm-image]][npm-url]\n[![Build Status][travis-image]][travis-url]\n[![Coveralls Status][coveralls-image]][coveralls-url]\n[![Dependency Status][depstat-image]][depstat-url]\n[![Gitter chat][gitter-image]][gitter-url]\n[![DOI][doi-image]][doi-url]\n\n[![Browser][browser-image]][browser-url]\n\nInstall\n-------\n\nInstall ```fasta-parser``` with [npm](//npmjs.org):\n\n```sh\n$ npm install fasta-parser\n```\n\nAlternatively, just include `fasta-parser.min.js` via a `\u003cscript/\u003e` in your page.\n\nUsage\n-----\n\n```js\nvar fasta = require('fasta-parser')\n\nvar fastaData = new Buffer ('\u003esequence1\\n\\\nATGCACGTCACGTCAGTACTCGTCAGTAC\\n\\\n\u003esequence2\\n\\\nCAGTCCTACTGCATGCATGCATGCATGCATCGATGCATGTCGACTGCATGCATGC\\n')\n\nvar parser = fasta()\nparser.on('data', function(data) { console.log(JSON.parse(data.toString())) })\nparser.write(fastaData)\nparser.end()\n//=\u003e   { id: 'sequence1',\n//       seq: 'ATGCACGTCACGTCAGTACTCGTCAGTAC' }\n//     { id: 'sequence2',\n//       seq: 'CAGTCCTACTGCATGCATGCATGCATGCATCGATGCATGTCGACTGCATGCATGC' }\n```\n\nFor a more useful API, check the dependent module [bionode-fasta](http://github.com/bionode/bionode-fasta).\n\n\nContributing\n------------\n\nTo contribute, clone this repo locally and commit your code on a separate branch.\n\nPlease write unit tests for your code, and check that everything works by running the following before opening a pull-request:\n\n```sh\n$ npm test\n```\n\nTo test on the browser:\n\n```sh\n$ npm run test-browser\n# if you get \"No headless browser found\" do:\n$ npm install -g phantomjs\n$ rm ~/.config/browser-launcher/config.json\n```\n\nPlease also check for code coverage:\n\n```sh\n$ npm run coverage\n```\n\nTo rebuild and minify the module for the browser:\n\n```sh\n$ npm run build-browser\n```\n\nTo rebuild the documentation using the comments in the code:\n\n```sh\n$ npm run build-docs\n```\nCheck the [issues](http://github.com/bionode/fasta-parser/issues) for ways to contribute.\n\nContacts\n--------\nBruno Vieira \u003c[mail@bmpvieira.com](mailto:mail@bmpvieira.com)\u003e [@bmpvieira](//twitter.com/bmpvieira)\n\nLicense\n--------\n\nfasta-parser is licensed under the [MIT](https://raw.github.com/bmpvieira/fasta-parser/master/LICENSE) license.  \nCheck [ChooseALicense.com](http://choosealicense.com/licenses/mit) for details.\n\n[npm-url]: http://npmjs.org/package/fasta-parser\n[npm-image]: http://img.shields.io/npm/v/fasta-parser.svg?style=flat\n[travis-url]: http:////travis-ci.org/bionode/fasta-parser\n[travis-image]: http://img.shields.io/travis/bionode/fasta-parser.svg?style=flat\n[coveralls-url]: http:////coveralls.io/r/bionode/fasta-parser\n[coveralls-image]: http://img.shields.io/coveralls/bionode/fasta-parser.svg?style=flat\n[depstat-url]: http://david-dm.org/bionode/fasta-parser\n[depstat-image]: http://img.shields.io/david/bionode/fasta-parser.svg?style=flat\n[gitter-image]: http://img.shields.io/badge/gitter-bionode/fasta--parser-brightgreen.svg?style=flat\n[gitter-url]: https://gitter.im/bionode/fasta-parser\n[doi-url]: https://doi.org/10.5281/zenodo.11306\n[doi-image]: http://img.shields.io/badge/doi-10.5281/zenodo.11306-blue.svg?style=flat\n[browser-url]: https://ci.testling.com/bionode/fasta-parser\n[browser-image]: https://ci.testling.com/bionode/fasta-parser.png\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbionode%2Ffasta-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbionode%2Ffasta-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbionode%2Ffasta-parser/lists"}