@2snail/libs
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

2snail-libs

引入第三方 libs 的入口,原样或加工后重新导出,再在其他项目中使用,而非每个项目都直接使用第三方库.

Version Downloads Min MinZip

Test CodeCov Issues

Stargazers Forks Contributors License

tools

常用库

Ready:

  • [x] fp-ts
  • [x] ramda
  • [x] rxjs
  • [x] yargs

Todo:

  • [ ] loadash
  • [ ] ixjs
  • [ ] debug
  • [ ] jest
  • [ ] react
  • [ ] umi
  • [ ] dumi
  • [ ] father

Installation

use npm:

npm i -S @snail/libs

or yarn:

yarn add @snail/libs

Useage

import all:

import * as libs from "@2snail/libs";
// libs: { fp, R, rx, ...};

import multi:

import { fp, R, rx } from "@2snail/libs";
// fp: fp-ts
// R: ramda
// rx: rxjs
// rx.operators.map: operators

import one:

// fp-ts:
import fp from "@2snail/libs/fp";

Structor & Customize

![Customize][customize-url]

License

(MIT)

Visited: Visitor Count

Readme

Keywords

Package Sidebar

Install

npm i @2snail/libs

Weekly Downloads

1

Version

1.3.0

License

MIT

Unpacked Size

19.2 kB

Total Files

17

Last publish

Collaborators

  • zhangaz1