https://github.com/wasabi-io/wasabi-common
Common Javascript Classes
https://github.com/wasabi-io/wasabi-common
common-library javascript typescript
Last synced: about 1 year ago
JSON representation
Common Javascript Classes
- Host: GitHub
- URL: https://github.com/wasabi-io/wasabi-common
- Owner: wasabi-io
- License: mit
- Created: 2017-03-12T02:40:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-07-07T01:26:35.000Z (about 6 years ago)
- Last Synced: 2025-06-01T19:12:40.966Z (about 1 year ago)
- Topics: common-library, javascript, typescript
- Language: TypeScript
- Homepage:
- Size: 901 KB
- Stars: 4
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## wasabi-common
[](https://badge.fury.io/gh/wasabi-io%2Fwasabi-common.svg)
[](https://travis-ci.org/wasabi-io/wasabi-common)
[](https://codecov.io/gh/wasabi-io/wasabi-common)
#### Motivation
Provides some common operations.
#### [Type Docs](https://wasabi-io.github.io/wasabi-common)
#### Common Classes
* collection [..more](./usage/collection.md)
- [Collection](https://wasabi-io.github.io/wasabi-common/modules/_collection_collection_.html) :
Provides forEach, map utility methods for Object and Array.
- [Iterator](https://wasabi-io.github.io/wasabi-common/modules/_collection_iterator_.html):
Provides iterate on array.
- [Set](https://wasabi-io.github.io/wasabi-common/modules/_collection_set_.html):
Provides set list.
- [Map](https://wasabi-io.github.io/wasabi-common/modules/_collection_map_.html):
Provides map entry list.
- [Tree] - (https://wasabi-io.github.io/wasabi-common/modules/_collection_tree_.html):
Provides tree list.
* lang [..more](./usage/lang.md)
- [Binder](https://wasabi-io.github.io/wasabi-common/modules/_lang_binder_.html) :
Provides to bind all methods of the instance when construct.
- [Type](https://wasabi-io.github.io/wasabi-common/modules/_lang_type_.html):
Provides define new Type by some default methods. It is useful when cloning or merging. (isEmpty, isPrimitive, isJsonType, isNativeType, getClone, getName, getSize, equals)
* types [..more](./usage/types.md)
- [Arrays](https://wasabi-io.github.io/wasabi-common/modules/_types_arrays_.html):
Provides some operation on Array type
- [Chars](https://wasabi-io.github.io/wasabi-common/modules/_types_chars_.html):
Provides some operation for chars.
- [Functions](https://wasabi-io.github.io/wasabi-common/modules/_types_functions_.html):
Provides some operation on Function type.
- [Maps](https://wasabi-io.github.io/wasabi-common/modules/_types_maps_.html):
Provides some operation on Map type.
- [Objects](https://wasabi-io.github.io/wasabi-common/modules/_types_objects_.html):
Provides some operation on Object type
- [Strings](https://wasabi-io.github.io/wasabi-common/modules/_types_strings_.html):
Provides some operation on String type
* util [..more](./usage/util.md)
- [Validations](https://wasabi-io.github.io/wasabi-common/modules/_util_validations_):
It used for validations.
- [Assertions](https://wasabi-io.github.io/wasabi-common/modules/_util_assertions_.html):
It used for assertions.
- [Generator](https://wasabi-io.github.io/wasabi-common/modules/_util_generator_.html):
Provides to generate some used values like **guid**.
- [Properties](https://wasabi-io.github.io/wasabi-common/modules/_util_properties_.html):
Provides to hold properties (key and value or keys and value) and provides some operation on property like add, get, merge.
- [Functions](https://wasabi-io.github.io/wasabi-common/modules/_util_functions_.html):
Provides some useful methods (getType, has, requireEs6)
- [Resolver](https://wasabi-io.github.io/wasabi-common/modules/_util_resolver_.html):
Provides add module paths to the resolver.
- [Types](https://wasabi-io.github.io/wasabi-common/modules/_util_types_.html):
Provides some operations on any types and defined some standard types in it. (Number, Boolean, Array, String, Date, RegExp: , Null, Function, Undefined, Object)
* util/ajax [..more](./usage/ajax.md)
#### Usage
```bash
npm install wasabi-common --save
```