npm.io
3.0.0 • Published 2d ago

@jsfns/core

Licence
MIT
Version
3.0.0
Deps
0
Size
94 kB
Vulns
0
Weekly
0
Stars
5

@jsfns/core

Code Coverage 100

@jsfns/core documentation

This is a collection of simple, no dependency, JavaScript snippets with the aim of making it easier to work with vanilla JavaScript.

Available methods

MicroEventsRGBToHexcamelCasecapitalize
chunkStringclampdebouncedeleteProperty
formatCurrencyformatNumberfuzzySearchgetObjectName
getPropertyhashhexToNumberhexToRGB
isBooleanisEmptyisFunctionisGenerator
isMapisNumberisNumericisObject
isObjectLikeisPlainObjectisSetisString
kebabCaseleadingZerolimitDecimalsminDecimals
numberToHexpascalCasephrasifypopAtIndex
popItempromisefyrandomCryptoIdrandomHexColor
randomIdrandomIntrandomRGBColorroundDecimals
safeDateChangesafeToFixedsnakeCasethrottle
toSafeFractionDigitstoWordstruncatetypes
uniqueArray

@jsfns/web

Searching for browser specific methods? Check out: @jsfns/web

ES version support

These packages use modern JavaScript with no bundled polyfills or fallbacks. If you need to support older runtimes, add polyfills through your build pipeline (Babel, core-js, etc.) — most are injected automatically. Keeping the library polyfill-free makes it leaner and more future-proof, since modern browsers and Node versions already cover the vast majority of features.

Installation

npm i @jsfns/core
yarn add @jsfns/core
pnpm i @jsfns/core
bun add @jsfns/core

Usage

// JS + MJS Modules
import { camelCase } from '@jsfns/core/camelCase';
camelCase('Camel cased phrase'); // camelCasedPhrase

Something missing?

Questions, bugs, or ideas for new functionality? Open an issue, or submit a pull request with your contribution.

Keywords