New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@roit/roit-utils

Package Overview
Dependencies
Maintainers
11
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@roit/roit-utils

### V1 - Normalize string method - Create md5 hash (no dependencies)

latest
npmnpm
Version
1.0.2
Version published
Maintainers
11
Created
Source

ROIT Utils

V1

  • Normalize string method
  • Create md5 hash (no dependencies)

Usage

npm install @roit/roit-utils

  • Creating md5 hash
import {md5} from '@roit/roit-utils'

md5('any_name')
// 13a55449ce38a9d14343d79fdbb8860b

  • Normalizing strings
import {normalizeString} from '@roit/roit-utils'

normalizeString('são paulo') // default use Canonical Decomposition.  (remove all accents from string and normalize it)
//SAO PAULO

//also you can use an explicit type ("NFC" | "NFD" | "NFKC" | "NFKD")
normalizeString('any_text', 'NFC')
//check normalize method for details: 
//https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/String/normalize

FAQs

Package last updated on 11 May 2021

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