You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

has-bom-string

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

has-bom-string

Returns true if string has a byte order mark (BOM)


Version published
Weekly downloads
357
increased by0.28%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

1.0.0 - 2015-10-11

  • Release v1.0.0 / npm@v1.0.0
  • add related
  • implement :cat2:

Readme

Source

has-bom-string npmjs.com The MIT License

Returns true if string has a byte order mark (BOM)

code climate standard code style travis build status coverage status dependency status

Install

npm i has-bom-string --save

Usage

For more use-cases see the tests

var hasBomString = require('has-bom-string')

hasBomString('\ufefffoo')
// => true

hasBomString('foo')
// => false
hasBomString(new Buffer('\ufefffoo'))
// => false
hasBomString(new Buffer('foo'))
// => false
  • has-bom: Returns true if a buffer or string has a byte order mark (BOM)
  • is-buffer: Determine if an object is Buffer
  • strip-bom: Strip UTF-8 byte order mark (BOM) from a string/buffer
  • strip-bom-buffer: Strip a byte order mark (BOM) from a buffer.
  • strip-bom-string: Strip a byte order mark (BOM) from a string.

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
But before doing anything, please read the CONTRIBUTING.md guidelines.

Charlike Make Reagent new message to charlike freenode #charlike

tunnckocore.tk keybase tunnckocore tunnckoCore npm tunnckoCore twitter tunnckoCore github

Keywords

FAQs

Package last updated on 11 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc