@micro-ux/micro-dash.touppercase
TypeScript icon, indicating that this package has built-in type declarations

0.13.0 • Public • Published

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.

Category Method Installation Npm Module
Object isNull yarn add @micro-ux/micro-dash.isnull npm version
Object isUndefined yarn add @micro-ux/micro-dash.isundefined npm version
Object isUndefinedOrNull yarn add @micro-ux/micro-dash.isundefinedornull npm version
String toLowerCase yarn add @micro-ux/micro-dash.tolowercase npm version
String toUpperCase yarn add @micro-ux/micro-dash.touppercase npm 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

Category Method Functionality Bundle size (min + gzip) Performance
String toLowerCase Same as lodash micro-dash: 426B
lodash: 447B
Performance Benchmarking
String toUpperCase Same as lodash micro-dash: 426B
lodash: 440B
Performance Benchmarking

Will not implement the following methods

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

Category Lodash Method Rationale
String _.lowerCase TBD
String _.upperCase TBD

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

Readme

Keywords

none

Package Sidebar

Install

npm i @micro-ux/micro-dash.touppercase

Weekly Downloads

1

Version

0.13.0

License

MIT

Unpacked Size

7.52 kB

Total Files

5

Last publish

Collaborators

  • nischithbm