{"id":18746898,"url":"https://github.com/iainjreid/micro","last_synced_at":"2025-04-12T22:22:00.335Z","repository":{"id":57101122,"uuid":"61499513","full_name":"iainjreid/micro","owner":"iainjreid","description":"A toolbox of practical everyday functions, each wrapped up into their own tiny library","archived":false,"fork":false,"pushed_at":"2020-05-09T11:31:39.000Z","size":587,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-27T16:31:45.568Z","etag":null,"topics":["browser","javascript","micro-library","nodejs","utilities","utils"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iainjreid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2016-06-19T20:42:43.000Z","updated_at":"2024-08-07T20:18:37.000Z","dependencies_parsed_at":"2022-08-20T17:31:03.959Z","dependency_job_id":null,"html_url":"https://github.com/iainjreid/micro","commit_stats":null,"previous_names":["iainreid820/micro-queue","iainreid820/micro","chaffity/micro","iainjreid/micro","emphori/micro"],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iainjreid%2Fmicro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iainjreid%2Fmicro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iainjreid%2Fmicro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iainjreid%2Fmicro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iainjreid","download_url":"https://codeload.github.com/iainjreid/micro/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223275611,"owners_count":17118165,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser","javascript","micro-library","nodejs","utilities","utils"],"created_at":"2024-11-07T16:27:31.294Z","updated_at":"2024-11-07T16:27:31.759Z","avatar_url":"https://github.com/iainjreid.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://cdn.jsdelivr.net/gh/emphori/micro@master/.github/logo-141x122@2x.png\" width=\"141px\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://travis-ci.org/Emphori/micro\"\u003e\n    \u003cimg src=\"https://img.shields.io/travis/Emphori/micro/master.svg?style=flat-square\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://codecov.io/gh/Emphori/micro\"\u003e\n    \u003cimg src=\"https://img.shields.io/codecov/c/github/Emphori/micro/master.svg?style=flat-square\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://lgtm.com/projects/g/Emphori/micro\"\u003e\n    \u003cimg src=\"https://img.shields.io/lgtm/grade/javascript/github/Emphori/micro.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nThis library is currently under active development, so please avoid using any\nof the exposed methods in projects that depend on any degree of upstream\nstability!\n\n## Description\n\nThis is a unique approach to the standard utility library, leveraging modern\nmeta-programming techniques now widely available in most JavaScript runtimes,\nMicro brings to the table a huge reduction in the bundle size for any project\ncurrently using Lodash, Ramda, or Underscore.\n\nAs well as the above, this project plays host to a collection of individually\npackaged helpers, functional blocks, and generally useful knick-knacks that\noften get repeated between projects.\n\n## Comparison with other libraries\n\n\n## Library coverage\n\nIn theory, Micro covers every instance method exposed by JavaScript's standard\nbuilt-in objects. Below is a short excerpt from the official documentation\noutlining the current testing and documentation efforts.\n\n### Array\n\n| Method              | Summary                                                                 | Tested             | Documented |\n| ---                 | ---                                                                     | :---:              | :---:      |\n| `concat`            | Merge two arrays                                                        | :white_check_mark: |            |\n| `copyWithin`        | Shallow copy part of an array to another location in that array         | :white_check_mark: |            |\n| `entries`           | Retrieve an iterator from an array                                      | :white_check_mark: |            |\n| `every`             | Tests whether all of the elements match the given condition             | :white_check_mark: |            |\n| `fill`              |                                                                         |                    |            |\n| `filter`            | Create a new array with all of the elements that pass a given condition | :white_check_mark: |            |\n| `find`              |                                                                         |                    |            |\n| `findIndex`         |                                                                         |                    |            |\n| `flat`              |                                                                         |                    |            |\n| `flatMap`           |                                                                         |                    |            |\n| `forEach`           |                                                                         |                    |            |\n| `includes`          |                                                                         |                    |            |\n| `indexOf`           |                                                                         |                    |            |\n| `join`              |                                                                         |                    |            |\n| `keys`              |                                                                         |                    |            |\n| `lastIndexOf`       |                                                                         |                    |            |\n| `map`               | Apply a function over each element in an array                          | :white_check_mark: |            |\n| `pop`               |                                                                         |                    |            |\n| `push`              |                                                                         |                    |            |\n| `reduce`            | Reduce an array to a single output value                                | :white_check_mark: |            |\n| `reduceRight`       |                                                                         |                    |            |\n| `reverse`           |                                                                         |                    |            |\n| `shift`             |                                                                         |                    |            |\n| `slice`             |                                                                         |                    |            |\n| `some`              | Tests that none of the element match the given condition                | :white_check_mark: |            |\n| `sort`              |                                                                         |                    |            |\n| `splice`            |                                                                         |                    |            |\n| `toLocaleString`    |                                                                         |                    |            |\n| `toString`          |                                                                         |                    |            |\n| `unshift`           |                                                                         |                    |            |\n| `values`            |                                                                         |                    |            |\n\n### Map\n\n| Method    | Summary                                                                                                               | Tested             | Documented |\n| ---       | ---                                                                                                                   | :---:              | :---:      |\n| `clear`   | Removes all of the elements from a Map object                                                                         | :white_check_mark: |            |\n| `delete`  | Removes a specified element from a Map object, returning true if the element existed and false if the element did not | :white_check_mark: |            |\n| `entries` | Creates a new Iterator containing an array of `[key, value]` for each element in a Map object                         | :white_check_mark: |            |\n| `forEach` | Calls the given callback function once for every key value pair in a Map object                                       | :white_check_mark: |            |\n| `get`     | Return a specified element from a Map object                                                                          | :white_check_mark: |            |\n| `has`     | Returns a boolean indicating whether or not the given key exists in a Map object                                      | :white_check_mark: |            |\n| `keys`    | Creates a new Iterator containing each key in a Map object                                                            | :white_check_mark: |            |\n| `set`     | Assign or update a specified element in a Map object                                                                  | :white_check_mark: |            |\n| `values`  | Creates a new Iterator containing each value in a Map object                                                          | :white_check_mark: |            |\n\n### Number\n\n| Method              | Summary                                                                 | Tested             | Documented |\n| ---                 | ---                                                                     | :---:              | :---:      |\n| `toExponential`     |                                                                         |                    |            |\n| `toFixed`           |                                                                         |                    |            |\n| `toLocaleString`    |                                                                         |                    |            |\n| `toPrecision`       |                                                                         |                    |            |\n| `toString`          |                                                                         |                    |            |\n| `valueOf`           |                                                                         |                    |            |\n\n### Promise\n\n| Method              | Summary                                                                 | Tested             | Documented |\n| ---                 | ---                                                                     | :---:              | :---:      |\n| `catch`             |                                                                         |                    |            |\n| `finally`           |                                                                         |                    |            |\n| `then`              |                                                                         |                    |            |\n\n### Set\n\n| Method              | Summary                                                                 | Tested             | Documented |\n| ---                 | ---                                                                     | :---:              | :---:      |\n| `add`               |                                                                         |                    |            |\n| `clear`             |                                                                         |                    |            |\n| `delete`            |                                                                         |                    |            |\n| `entries`           |                                                                         |                    |            |\n| `forEach`           |                                                                         |                    |            |\n| `has`               |                                                                         |                    |            |\n| `keys`              |                                                                         |                    |            |\n| `values`            |                                                                         |                    |            |\n\n### String\n\n| Method              | Summary                                                                 | Tested             | Documented |\n| ---                 | ---                                                                     | :---:              | :---:      |\n| `charAt`            |                                                                         |                    |            |\n| `charCodeAt`        |                                                                         |                    |            |\n| `codePointAt`       |                                                                         |                    |            |\n| `concat`            |                                                                         |                    |            |\n| `endsWith`          |                                                                         |                    |            |\n| `includes`          |                                                                         |                    |            |\n| `indexOf`           |                                                                         |                    |            |\n| `lastIndexOf`       |                                                                         |                    |            |\n| `localeCompare`     |                                                                         |                    |            |\n| `match`             |                                                                         |                    |            |\n| `matchAll`          |                                                                         |                    |            |\n| `normalize`         |                                                                         |                    |            |\n| `padEnd`            |                                                                         |                    |            |\n| `padStart`          |                                                                         |                    |            |\n| `repeat`            |                                                                         |                    |            |\n| `replace`           |                                                                         |                    |            |\n| `search`            |                                                                         |                    |            |\n| `slice`             |                                                                         |                    |            |\n| `split`             |                                                                         |                    |            |\n| `startsWith`        |                                                                         |                    |            |\n| `substring`         |                                                                         |                    |            |\n| `toLocaleLowerCase` |                                                                         |                    |            |\n| `toLocaleUpperCase` |                                                                         |                    |            |\n| `toLowerCase`       |                                                                         |                    |            |\n| `toString`          |                                                                         |                    |            |\n| `toUpperCase`       |                                                                         |                    |            |\n| `trim`              |                                                                         |                    |            |\n| `trimEnd`           |                                                                         |                    |            |\n| `trimLeft`          |                                                                         |                    |            |\n| `trimRight`         |                                                                         |                    |            |\n| `trimStart`         |                                                                         |                    |            |\n| `valueOf`           |                                                                         |                    |            |\n\n### WeakMap\n\n| Method              | Summary                                                                 | Tested             | Documented |\n| ---                 | ---                                                                     | :---:              | :---:      |\n| `delete`            |                                                                         |                    |            |\n| `get`               |                                                                         |                    |            |\n| `has`               |                                                                         |                    |            |\n| `set`               |                                                                         |                    |            |\n\n### WeakSet\n\n| Method              | Summary                                                                 | Tested             | Documented |\n| ---                 | ---                                                                     | :---:              | :---:      |\n| `add`               |                                                                         |                    |            |\n| `delete`            |                                                                         |                    |            |\n| `has`               |                                                                         |                    |            |\n\n## License\n\nThis project is released under the [MIT License](./LICENSE). Enjoy responsibly ✌️\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiainjreid%2Fmicro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiainjreid%2Fmicro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiainjreid%2Fmicro/lists"}