Skip to content
A toolbox of practical everyday functions, each wrapped up into their own tiny library
JavaScript TypeScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github chore: Update logo Jan 5, 2020
docs chore: Correct array some summary Apr 2, 2020
packages chore: Add test for array some Apr 1, 2020
.editorconfig Add .editorconfig May 8, 2019
.gitignore Update testing approach Mar 4, 2019
.travis.yml Update secure credentials Oct 16, 2019
LICENSE chore: Reformat license Mar 29, 2020
README.md chore: Center tested and documented columns Apr 2, 2020
lerna.json Add branch restriction to versioning Mar 4, 2019
package.json chore: Start migration to TS Mar 29, 2020
tsconfig.json chore: Start migration to TS Mar 29, 2020

README.md

This library is currently under active development, so please avoid using any of the exposed methods in projects that depend on any degree of upstream stability!

Description

This is a unique approach to the standard utility library, leveraging modern meta-programming techniques now widely available in most JavaScript runtimes, Micro brings to the table a huge reduction in the bundle size for any project currently using Lodash, Ramda, or Underscore.

As well as the above, this project plays host to a collection of individually packaged helpers, functional blocks, and generally useful knick-knacks that often get repeated between projects.

Comparison with other libraries

Library coverage

In theory, Micro covers every instance method exposed by JavaScript's standard built-in objects. Below is a short excerpt from the official documentation outlining the current testing and documentation efforts.

Array

Method Summary Tested Documented
concat Merge two arrays
copyWithin Shallow copy part of an array to another location in that array
entries Retrieve an iterator from an array
every Tests whether all of the elements match the given condition
fill
filter Create a new array with all of the elements that pass a given condition
find
findIndex
flat
flatMap
forEach
includes
indexOf
join
keys
lastIndexOf
map Apply a function over each element in an array
pop
push
reduce Reduce an array to a single output value
reduceRight
reverse
shift
slice
some Tests that none of the element match the given condition
sort
splice
toLocaleString
toString
unshift
values

Map

Method Summary Tested Documented
clear
delete
entries
forEach
get
has
keys
set
values

Number

Method Summary Tested Documented
toExponential
toFixed
toLocaleString
toPrecision
toString
valueOf

Promise

Method Summary Tested Documented
catch
finally
then

Set

Method Summary Tested Documented
add
clear
delete
entries
forEach
has
keys
values

String

Method Summary Tested Documented
charAt
charCodeAt
codePointAt
concat
endsWith
includes
indexOf
lastIndexOf
localeCompare
match
matchAll
normalize
padEnd
padStart
repeat
replace
search
slice
split
startsWith
substring
toLocaleLowerCase
toLocaleUpperCase
toLowerCase
toString
toUpperCase
trim
trimEnd
trimLeft
trimRight
trimStart
valueOf

WeakMap

Method Summary Tested Documented
delete
get
has
set

WeakSet

Method Summary Tested Documented
add
delete
has

License

This project is released under the MIT License. Enjoy responsibly ✌️

You can’t perform that action at this time.