strip-bom - npm
文章推薦指數: 80 %
Strip UTF-8 byte order mark (BOM) from a string. Latest version: 5.0.0, ... Start using strip-bom in your project by running `npm i strip-bom`. strip-bom5.0.0 • Public • PublishedayearagoReadmeExploreBETA0Dependencies976Dependents10Versions strip-bom StripUTF-8byteordermark(BOM)fromastring FromWikipedia: TheUnicodeStandardpermitstheBOMinUTF-8,butdoesnotrequirenorrecommenditsuse.ByteorderhasnomeaninginUTF-8. Install $npminstallstrip-bom Usage importstripBomfrom'strip-bom'; stripBom('\uFEFFunicorn'); //=>'unicorn' Related strip-bom-cli-CLIforthismodule strip-bom-buf-Bufferversionofthismodule strip-bom-stream-Streamversionofthismodule Getprofessionalsupportfor'strip-bom'withaTideliftsubscription Tidelifthelpsmakeopensourcesustainableformaintainerswhilegivingcompaniesassurancesaboutsecurity,maintenance,andlicensingfortheirdependencies. Keywordsstripbombyteordermarkunicodeutf8utf-8removedeletetrimtextstringInstallnpmistrip-bomRepositoryGitgithub.com/sindresorhus/strip-bomHomepagegithub.com/sindresorhus/strip-bom#readmeFundthispackageDownloadsWeeklyDownloads47,491,191Version5.0.0LicenseMITUnpackedSize3.63kBTotalFiles5LastpublishayearagoCollaboratorsTryonRunKitReportmalware
延伸文章資訊
- 1How to properly handle UTF-8 BOM files in Nodejs?
Tagged with node, nodejstip, javascript. ... This happens because 𝗡𝗼𝗱𝗲𝗷𝘀 does not strip 𝗕𝗢𝗠 when ...
- 2Removing BOM characters from AJAX-posted string
The characters are in the middle of strings I want to simply remove them all. The data comes from...
- 3Node.js去除文字檔案BOM頭
Node.js去除文字檔案BOM頭 · BOM · BOM新增 · BOM移除 · 參考.
- 4doesn't remove unicode BOM from empty file - Lightrun
Prettier 1.18.2 No playground. For example using CLI : prettier --write test.js. Input: Empty fil...
- 5How to remove the BOM from UTF-8 files
So, if it's not needed, the code below allows removing the BOM from the UTF-8 files. JavaScript/J...