0.13.0 • Published 3 years ago

@micro-ux/micro-dash v0.13.0

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

micro-dash · GitHub license PRs Welcome npm version

micro-dash offers a subset of lodash of the functionality found in lodash + additional useful utilities

Note: This is still work in progress

It is essentially a re-write of lodash (many things copied as is to keep the functionality intact) in an attempt to create a micro version of lodash that leverage on modern browser capabilities to make it more lightweight. This would also mean lesser/no support for legacy browsers.

Web optimized modules for individual methods

Each of the methods below are exported as an individual npm module (optimized for web). However, if you are planning to use this library in NodeJS environment you should be using the main @micro-ui/micro-dash library (optimized for node) instead. See section below for more details.

CategoryMethodInstallationNpm Module
ObjectisNullyarn add @micro-ux/micro-dash.isnullnpm version
ObjectisUndefinedyarn add @micro-ux/micro-dash.isundefinednpm version
ObjectisUndefinedOrNullyarn add @micro-ux/micro-dash.isundefinedornullnpm version
StringtoLowerCaseyarn add @micro-ux/micro-dash.tolowercasenpm version
StringtoUpperCaseyarn add @micro-ux/micro-dash.touppercasenpm version

Note Implementation of other methods is still in progress

Example usage

import toLowerCase from '@micro-ux/micro-dash.tolowercase';

toLowerCase('Foo Bar');

Node optimized module - complete library

If you are planning to use this library in NodeJS env you can use the main @micro-ui/micro-dash library (optimized for node).

Installation

yarn add @micro-ux/micro-dash

Example usage

const { toLowerCase } = require('@micro-ux/micro-dash')

toLowerCase('Foo Bar');

Comparision with Lodash

Will not implement the following methods

micro-dash will not implement certain methods from lodash to keep the library simple & lightweight.

CategoryLodash MethodRationale
String_.lowerCaseTBD
String_.upperCaseTBD

Contributing

Local setup

Unit Testing

  • Run test cases with the command yarn test
  • Run specific test cases with --testPathPattern flag. Ex: yarn test --testPathPattern=src/isNull

Special Thanks to

0.12.0

3 years ago

0.13.0

3 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8-canary-4

4 years ago

0.0.8-canary-3

4 years ago

0.0.8-canary-1

4 years ago

0.0.8-canary-2

4 years ago

0.0.8

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

0.0.1-canary-2

4 years ago

0.0.1-canary-1

4 years ago