Skip to content
/ jsmodern Public

An extension to existing JavaScript, influenced by other great languages such as Rust, Dart, Java, Golang, etc.

License

Notifications You must be signed in to change notification settings

motss/jsmodern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Apr 1, 2020
a685231 Β· Apr 1, 2020
Apr 1, 2020
Oct 12, 2019
Apr 1, 2020
Jun 24, 2019
Jun 24, 2019
Nov 7, 2019
Jul 7, 2019
Jun 24, 2019
Jul 14, 2019
Jun 24, 2019
Apr 1, 2020
Apr 1, 2020
Apr 1, 2020
Nov 7, 2019
Jul 14, 2019
Jul 7, 2019
Jun 24, 2019
Jun 24, 2019

Repository files navigation

jsmodern

An extension to existing JavaScript, influenced by other great languages such as Rust, Dart, Java, Golang, etc.


Buy Me A Coffee tippin.me Follow me

Version Node version MIT License

Downloads Total downloads Packagephobia Bundlephobia

ci Dependency Status codecov Coverage Status

codebeat badge Codacy Badge Code of Conduct

This is, by no means, to replace JavaScript or anything like that. This is just a rather straightforward module that extends native JavaScript with useful methods that are available in some other great languages such as Rust, Dart, Java, Golang, just to name a few. This is the state what I wanted JavaScript to be in next few years. If you're with me, let's hit me up for collaboration! πŸ’―

Table of contents

Pre-requisites

  • [OPTIONAL] TypeScript >= 3.8.3 Minimum version for TypeScript users

Installation

# Install via NPM
$ npm install --save jsmodern

Usage

// It is recommended to only import those extensions you need instead of everything.
import { extend } from 'jsmodern';
import { sum } from 'jsmodern/dist/array/index.js';

extend({ array: [sum] });

const total = [1, 2, 3].sum();

console.log(total === 6); // true

Available extensions

License

MIT License Β© Rong Sen Ng (motss)