chiaweilee / aliba

a library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Aliba · GitHub license npm version npm downloads PRs Welcome

Aliba is a JavaScript library.

  • hyphenateCss: convert JavaScript style object into style string by using react-dom's shared hyphenateStyleName, e.g, hyphenateCss({ fontSize: '12px' }) result font-size: 12px;
  • keyValue: 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: set-cookie as react's setState() like
  • shallowEqual: react's shallowEqual

Installation

npm install aliba

About

a library


Languages

Language:TypeScript 51.6%Language:JavaScript 48.4%