Socket
Socket
Sign inDemoInstall

string-normalize-es6

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    string-normalize-es6

Normalize to NFD a string using ES6 String.Prototype.Normalize


Version published
Weekly downloads
11
increased by37.5%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

string-normalize-es6 Build Status

Normalize string using ES6 String.Prototype.Normalize

Install

$ yarn add string-normalize-es6

Usage

const stringNormalize = require('string-normalize-es6');

stringNormalize('Crème Brulée');
//=> 'Creme Brulee'

stringNormalize(123);
//=> null

API

stringNormalize(input)

input

Type: string

String you want to normalize to NFD.

Contribute

The module is based on this answer on Stackoverflow. I'm not completely sure the this is the correct implementation and maybe we can also specify the normalization type as argument. PR welcome! :rocket:

Test

$ yarn test

License

MIT © LasaleFamine

Keywords

FAQs

Last updated on 19 Feb 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc