Library of utility functions for use in personal projects.
If you're using this as a published package, install it via:
npm install @nameer/utils
# or
yarn add @nameer/utilsThis package supports both CommonJS and ES Modules out of the box.
ESM
import * as utils from "@nameer/utils";CommonJS
const utils = require("@nameer/utils");If you're using this as a starting point for your own package, clone and set it up:
# Clone project
git clone https://github.com/nameer/utils.git
# Change into project
cd utils
# Install dependencies
yarn install# Build CJS and ESM outputs
yarn build
# Lint source files
yarn lint
# Auto-fix lint errors
yarn lint:fix
# Test both CJS and ESM outputs
yarn testMIT