Coder Social home page Coder Social logo

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:


CoreFunc's Projects

class-validator icon class-validator

Allows use of decorator and non-decorator based validation. Internally uses `class-validator` to perform validation.

corefunc icon corefunc

Modular utility library for JavaScript.

http icon http

Utilities and tools to help build HTTP requests.

type icon type

TypeScript common types.

upsert-map icon upsert-map

Addition of a method that will add a value to a map if the map does not already have something at key, and will also update an existing value at key.

v8 icon v8

JavaScript V8 engine specific utilities

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.