Skip to content

A versatile collection of utility functions for simplifying JavaScript development.

License

Notifications You must be signed in to change notification settings

MilosPaunovic/utils

Repository files navigation

utils.

A versatile collection of utility functions for simplifying JavaScript development.

version downloads ci

Official documentation

⚡️ Online Playground

Explore and experiment with our code in an interactive online playground on CodePen. Click the link below to dive into the online playground environment!

Open in CodePen

🚀 Features

  • 📝 Strings - Versatile utilities for generating and manipulating strings.
  • 🔢 Numbers - Utilities for generating, manipulating, and validating numbers.
  • 🧩 Various - A collection of utilities for diverse purposes.

📦 Install

# Using npm to install as a development dependency
npm install --save-dev @paunovic/utils

# Using Yarn to add as a development dependency
yarn add --dev @paunovic/utils

# Using pnpm to add as a development dependency
pnpm add --save-dev @paunovic/utils

🪄 Usage

// Importing specific function using ESM syntax
import { uniqueIdentifier } from '@paunovic/utils'

// Importing specific function using CommonJS syntax
const { uniqueIdentifier } = require('@paunovic/utils')

// Seeing the imported function in action
const ID = uniqueIdentifier()

🌐 Browser

// Importing specific function directly from the URL
import { uniqueIdentifier } from 'https://unpkg.com/@paunovic/utils'

// Seeing the imported function in action
const ID = uniqueIdentifier()

License

MIT Copyright © 2024 Miloš Paunović