@corefunc/corefunc
TypeScript icon, indicating that this package has built-in type declarations

0.3.67 • Public • Published

CoreFunc

CoreFunc

NPM Version NPM Downloads Maintainability Rating CodeFactor


CoreFunc - is a collection of core functions for various tasks. It consists of useful one-liner helpers and more complicated functions.

➡️ C o r e F u n c . G i t H u b . i o ⬅️

Introduction

Why.

  • All functions are written to work with CommonJS and ECMAScript modules.

  • .JS, .CJS, .MJS, .TS files are in package. Wherever you prefer.

  • Don't extend any built-in objects. No prototype pollution at all.

  • You can steal the code if you don't want to use the whole package. Most functions are not bound to other functions in the library.

  • It's super easy for Tree Shaking, no need for Dead Code Hunting.

What is the purpose?

  • Iterate, check, sort, find on primitives, arrays, objects.

  • Manipulate, convert, generate values.


Recommended usage for Tree Shaking

CommonJS import

const {
  bubbleSort
} = require("@corefunc/corefunc/array/sort/bubble.cjs");
bubbleSort([3, 1, 2]);

ECMAScript Module

import {
  bubbleSort
} from "@corefunc/corefunc/array/sort/bubble.mjs";
bubbleSort([3, 1, 2]);

TypeScript

import {
  bubbleSort
} from "@corefunc/corefunc/array/sort/bubble";
bubbleSort([3, 1, 2]);

See also

My other projects

Open Source Map


Also there is more useful links:


Package Sidebar

Install

npm i @corefunc/corefunc

Weekly Downloads

112

Version

0.3.67

License

MIT

Unpacked Size

868 kB

Total Files

1486

Last publish

Collaborators

  • r37r0m0d3l