Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 983 Bytes

README.md

File metadata and controls

35 lines (22 loc) · 983 Bytes

Meritt Utility functions

This is a collection of utility functions that are often used in Meritt projects.

Actions

Changes NPM Publish on Release

Installation

For npm:

npm install @mhmdhammoud/meritt-utils

or for yarn:

yarn add @mhmdhammoud/meritt-utils

Usage

// Import the classes you need
import {Crypto, Formatter} from '@mhmdhammoud/meritt-utils'

// Example of creating a product slug
const slug = Formatter.slugify('My Product Name') // my-product-name

// Example of encrypting and decrypting a string

const encryptedMessage = Crypto.encrypt('Hello World', 7) // [23,235,141,414]