https://github.com/chiaweilee/aliba
a library
https://github.com/chiaweilee/aliba
alibaba library typescript
Last synced: 8 months ago
JSON representation
a library
- Host: GitHub
- URL: https://github.com/chiaweilee/aliba
- Owner: chiaweilee
- Created: 2019-03-15T10:42:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-08T04:48:22.000Z (over 6 years ago)
- Last Synced: 2025-02-14T09:25:03.098Z (8 months ago)
- Topics: alibaba, library, typescript
- Language: TypeScript
- Homepage:
- Size: 86.9 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [Aliba](#) · [](https://github.com/chiaweilee/aliba/blob/master/LICENSE) [](https://www.npmjs.com/package/aliba) [](https://npmcharts.com/compare/aliba?minimal=true) [](#)
Aliba is a JavaScript library.
* **[hyphenateCss](https://github.com/chiaweilee/aliba/tree/master/src/hyphenate-css):** convert JavaScript style object into style string by using `react-dom`'s shared [hyphenateStyleName](https://github.com/chiaweilee/aliba/blob/master/src/shared/hyphenateStyleName.ts), e.g, `hyphenateCss({ fontSize: '12px' })` result `font-size: 12px;`
* **[keyValue](https://github.com/chiaweilee/aliba/tree/master/src/key-value):** pair/unpair key-value pair, e.g, `pair({ a: 1, b: 2 })` result `a=1;b=2`, `unpair('a=1&b=2', '&')` result `{ a: 1, b: 2 }`
* **[setCookie](https://github.com/chiaweilee/aliba/tree/master/src/set-cookie):** set-cookie as `react`'s `setState()` like
* **[shallowEqual](https://github.com/chiaweilee/aliba/blob/master/src/shared/shallowEqual.md):** `react`'s `shallowEqual`## Installation
```
npm install aliba
```