You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@corefunc/corefunc

Package Overview
Dependencies
Maintainers
1
Versions
237
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@corefunc/corefunc

Collection of utilities

0.1.64
Source
npm
Version published
Weekly downloads
245
-76.51%
Maintainers
1
Weekly downloads
 
Created
Source

CoreFunc

CoreFunc

NPM Version NPM Downloads

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

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.

📚 Documentation ➜ corefunc.github.io

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:

Keywords

ECMAScript

FAQs

Package last updated on 06 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts