micro-js/micro-js

语言:

git: https://github.com/micro-js/micro-js

概述和目标。
Overview and goals.
README.md (中文)

微JS

micro-js是javascript的微型实用程序模块的集合。这个存储库不是一个捆绑包 - 捆绑包与micro-js的哲学背道而驰,即你的代码库应该包含你需要的东西,仅此而已。

模块

可用的micro-js模块列表在这里。

设计目标

micro-js模块应该:

  • 大约90%的性能与最佳理论实施*相同。
  • 仅依赖于其他micro-js模块,即便如此,只有依赖于那些模块大致相当于实现内联相同的东西。
  • 简单,小巧,专注。这与目标1一致 - micro-js模块不会增加复杂性和尺寸以实现小的性能提升。

*这显然不是一个严谨的声明。假设n = 1000的值约为90%。

安装

所有micro-js模块都有简单的名称,并且作用域为@f。

例如。 npm install @ f / map - > var map = require('@ f / map')

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

micro-js

micro-js is a collection of tiny utility modules for javascript. This repository is not a bundle - bundles are contrary to the philosophy of micro-js, which is that your codebase should include exactly the things you need and nothing more.

Modules

The list of available micro-js modules is here.

Design goals

micro-js modules should:

  • Be roughly 90% as performant as the best theoretical implementation*.
  • Depend only on other micro-js modules, and even then, only if depending on those modules is roughly equivalent to implementing the same thing inline.
  • Be simple, small, and focused. This goes along with goal 1 - micro-js modules will not go to extraordinary lengths adding complexity and size to achieve small performance gains.

*This is obviously not a rigorous statement. Let's say roughly 90% for values of n=1000.

Installation

All micro-js modules have simple names, and are scoped @f.

E.g. npm install @f/map -> var map = require('@f/map')