JSPM

has-bom-string

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 90
  • Score
    100M100P100Q99500F
  • License MIT

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

Package Exports

  • has-bom-string

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (has-bom-string) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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