npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@moomfe/zenjs

v5.0.0-beta.5

Published

ZenJS 是一个高性能的 JavaScript 工具库。

Downloads

413

Readme

浏览器支持

| Chrome | Firefox | Safari | Android | Edge | Internet Explorer | | :- | :- | :- | :- | :- | :- | | 23+ | 21+ | 6+ | 4.4+ | 12+ | 10+ |

安装

npm 安装

  npm install @moomfe/zenjs

CDN

jsdelivr https://cdn.jsdelivr.net/npm/@moomfe/[email protected]/dist/

unpkg https://unpkg.com/@moomfe/[email protected]/dist/

在 v2.1.0 版本之前, ZenJS 需要 polyfill 作为依赖项 :

大小 - 版本详解

Default

| | Default | Gzip | - | Module | Use in | | :- | :- | :- | :-: | :- | :- | | zen.js | 57.01kb | 15.94kb | | | UMD | Browser | | zen.min.js | 20.42kb | 7.69kb | | | UMD | Browser | | zen.common.js | 53.12kb | 15.65kb | | | CommonJS | NodeJS or browserify or webpack 1 | | zen.esm.js | 53.11kb | 15.63kb | | | ES Module | webpack 2 or rollup |

Fat : Default And DOM API

| | Default | Gzip | - | Module | Use in | | :- | :- | :- | :-: | :- | :- | | zen.fat.js | 101.99kb | 27.36kb | | | UMD | Browser | | zen.fat.min.js | 36.36kb | 13.44kb | | | UMD | Browser | | zen.fat.common.js | 95.27kb | 26.90kb | | | CommonJS | NodeJS or browserify or webpack 1 | | zen.fat.esm.js | 95.25kb | 26.89kb | | | ES Module | webpack 2 or rollup |

参考

更详细的使用方法及介绍请参照 index.d.ts

  • Array

    • $chunk
    • $copy
    • $create
    • $create
    • $each
    • $equals
    • $isArrayLike
    • $toArray
  • Array.prototype

    • $chunk
    • $each
    • $equals
    • $add
    • $delete / $remove
    • $deleteValue / $removeValue
    • $concat
    • $concatTo
    • $find
    • $findIndex
    • $findChunk
    • $findLast
    • $findLastIndex
    • $findLastChunk
    • $findAll
    • $findAllIndex
    • $findAllChunk
    • $findSome
    • $findSomeIndex
    • $findSomeChunk
    • $findLastSome
    • $findLastSomeIndex
    • $findLastSomeChunk
    • $findNot
    • $findNotIndex
    • $findNotChunk
    • $findLastNot
    • $findLastNotIndex
    • $findLastNotChunk
    • $findAllNot
    • $findAllNotIndex
    • $findAllNotChunk
    • $findSomeNot
    • $findSomeNotIndex
    • $findSomeNotChunk
    • $findLastSomeNot
    • $findLastSomeNotIndex
    • $findLastSomeNotChunk
    • $get
    • $set
    • $edit
    • $inArray
    • $move
    • $moveRange
    • $push
    • $pop
    • $unshift
    • $shift
    • $splice
  • Object

    • $assign
    • $equals
    • $each
    • $isEmptyObject
    • $isPlainObject
  • Object.prototype

    • $assign
    • $equals
    • $each
    • $get
    • $set / $edit
    • $delete / $remove
    • $deleteValue / $removeValue
    • $self
  • Number

    • $isNumber
  • Number.prototype

    • $add / $jia
    • $subtract / $jian
    • $multiply / $cheng
    • $divide / $chu
  • Math

    • $random
    • $add / $jia
    • $subtract / $jian
    • $multiply / $cheng
    • $divide / $chu
    • $mean
  • String

    • $random
    • $someRandom
  • String.prototype

    • $replaceAll
    • $toCapitalize / $toUpperFirstCase
    • $toLowerFirstCase
  • Date

    • $parse
    • $format
    • $year
    • $month
    • $date
    • $day
    • $hour
    • $minute
    • $second
    • $millisecond
    • $set
    • $add
    • $subtract
    • $startOf
    • $endOf
    • $diff
    • $valueOf
    • $unix
    • $daysInMonth
    • $toArray
    • $toObject
    • $isBefore
    • $isSame
    • $isAfter
    • $isBetween
    • $isSameOrBefore
    • $isSameOrAfter
    • $isLeapYear
  • Date.prototype

    • $dayjs
    • $isValid
    • $year
    • $month
    • $date
    • $day
    • $hour
    • $minute
    • $second
    • $millisecond
    • $set
    • $add
    • $subtract
    • $startOf
    • $endOf
    • $format
    • $diff
    • $valueOf
    • $unix
    • $daysInMonth
    • $toArray
    • $toObject
    • $isBefore
    • $isSame
    • $isAfter
    • $isBetween
    • $isSameOrBefore
    • $isSameOrAfter
    • $isLeapYear
  • Function.prototype

    • $after
    • $args
    • $one / $once
  • RegExp

    • $parse
  • Window / Global

    • $typeof
    • $querystring
      • stringify
      • parse
    • ZenJS
      • guid
      • assign
      • repeat
      • keys
      • entries
      • values
      • fromEntries
      • congruence
      • equals
      • define
      • defineValue
      • defineGet
      • intRandom
      • returnArg
      • returnTrue
      • returnFalse
      • noop
      • parametersDefault
      • parametersRest
      • isString
      • isBoolean
      • isArray
      • isNumber
      • isRegExp
      • isSet
      • isMap
      • isFunction
      • isObject
      • isReferenceType
      • mapSetToArray
    • dayjs
  • Document ( Fat )

    • $id
    • $ready
    • $query / $find
    • $queryFirst / $findFirst
  • Window ( Fat )

    • $ready
  • Location ( Fat )

    • $search
    • $urlSearch
  • Element.prototype ( Fat )

    • $addClass
    • $removeClass / $deleteClass
    • $hasClass
    • $toggleClass
    • $is
    • $not
    • $first / $firstChild
    • $last / $lastChild
    • $next
    • $prev
    • $nextAll
    • $prevAll
    • $child / $children
    • $parent
    • $parents
    • $siblings
    • $prop
    • $hasProp
    • $removeProp / $deleteProp
    • $attr
    • $hasAttr
    • $removeAttr / $deleteAttr
    • $append
    • $prepend
    • $appendTo
    • $prependTo
    • $before
    • $after
    • $delete / $remove
    • $query / $find
    • $queryFirst / $findFirst
    • $replaceWith / $replace
    • $clone
    • $index
    • $html
    • $val / $value
    • $width
    • $height
    • $css
    • _nodeName
  • EventTarget.prototype ( Fat )

    • $data
    • $hasData
    • $removeData/ $deleteData
    • $on
    • $one / $once
    • $off
    • $emit
  • document ( Plugins )

    • $cookie
    • $removeCookie / $deleteCookie

在本地构建ZenJS

克隆到本地:

git clone https://github.com/MoomFE/ZenJS.git

安装依赖项:

cd ZenJS && npm install

构建项目:

npm run build

实时监听项目修改:

npm run watch

Include

License

ZenJS is licensed under a MIT License.