{"id":22038734,"url":"https://github.com/defite/bom-bom","last_synced_at":"2026-04-09T02:02:08.474Z","repository":{"id":43868228,"uuid":"140450621","full_name":"Defite/bom-bom","owner":"Defite","description":"Parse directory, find files with BOM and remove bom from these files","archived":false,"fork":false,"pushed_at":"2023-03-03T15:39:17.000Z","size":119,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-23T09:07:53.554Z","etag":null,"topics":["bom","eslint","nodejs","utf8"],"latest_commit_sha":null,"homepage":"","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/Defite.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,"zenodo":null}},"created_at":"2018-07-10T15:12:49.000Z","updated_at":"2022-02-15T09:53:26.000Z","dependencies_parsed_at":"2025-08-23T09:07:55.182Z","dependency_job_id":"047cfc9b-8cc3-4367-8841-e1b1ce8720a5","html_url":"https://github.com/Defite/bom-bom","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Defite/bom-bom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Defite%2Fbom-bom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Defite%2Fbom-bom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Defite%2Fbom-bom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Defite%2Fbom-bom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Defite","download_url":"https://codeload.github.com/Defite/bom-bom/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Defite%2Fbom-bom/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31581864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"online","status_checked_at":"2026-04-09T02:00:06.848Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bom","eslint","nodejs","utf8"],"created_at":"2024-11-30T11:07:35.500Z","updated_at":"2026-04-09T02:02:08.442Z","avatar_url":"https://github.com/Defite.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What is BOM, baby don't hurt me, no more...\n**BOM - Byte Order Mark** - is Unicode character (`U+FEFF`) which is placed at the start of the text stream. Its appearence at the start of the text stream means that:\n\n- the byte order of the text stream\n- the fact that text stream is encoded in Unicode\n- signals to a program which Unicode encoding the text stream is encoded\n\n[Read more about BOM](https://en.wikipedia.org/wiki/Byte_order_mark)\n\n# bom-bom\nParse directory, find files with bom and remove BOM from these files\n\n## Install\n\n`npm i` or `yarn`\n\n## Use\n\nThis will simply scan target folder and recursively remove BOM from all files inside.\n\n`npm run bom_bom /myfolder/new_folder/` or\n\n`yarn bom_bom /myfolder/new_folder/`\n\nSometimes you don't want to touch all files. You can provide extension of files which yon wanna cure.\n\n`npm run bom_bom /myfolder/new_folder/ .js` or\n\n`yarn bom_bom /myfolder/new_folder/ .js`\n\nGet files from target dir and rewrite 'em w/o BOM. Hooray.\n\n## Check for BOM\n\nTo be ensured that final file/files doesn't contain BOM, you can use eslint:\n\n`npm run lint`\n\nIf you have BOM in your files, you'll get following error:\n\n![BOM Eslint error](https://user-images.githubusercontent.com/299118/42520000-e4fc658c-846d-11e8-9594-6f1ba723d5b4.png)\n\n## Play\n\nYou can generate more files with BOM in case you have fixed previous files. Simply run:\n\n`npm run gen_bom`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefite%2Fbom-bom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefite%2Fbom-bom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefite%2Fbom-bom/lists"}