@jsfns/core
This is a collection of simple, no dependency, JavaScript snippets with the aim of making it easier to work with vanilla JavaScript.
Available methods
@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.