This package has been deprecated

Author message:

@rhao/web-utils 已废弃,推荐使用 nice-fns,具体查看 README.md

@rhao/web-utils
TypeScript icon, indicating that this package has built-in type declarations

0.6.1 • Public • Published

@rhao/web-utils

废弃声明:该包已被废弃,推荐使用 nice-fns,拥有完整的单测和文档!

迁移至指南

安装 nice-fns

# npm
npm i nice-fns

# yarn or pnpm
pnpm add nice-fns

函数迁移指南:

  1. arrayToDictionary 更改调用方式
  2. createBEM.is => classState.is
  3. createDictionary 更改调用方式
  4. cssVarNameFactory => cssVarName
  5. getParentScroll 更改调用方式
  6. isClient() => isClient
  7. pxToXxx 功能优化
  8. pxWithRatio => scalePx
  9. saveAs 优化
  10. unitToPx 支持 vminvmax

Package Sidebar

Install

npm i @rhao/web-utils

Weekly Downloads

2

Version

0.6.1

License

MIT

Unpacked Size

49.6 kB

Total Files

6

Last publish

Collaborators

  • lei-hh