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

@curong/regexp

v0.5.0

Published

Downloads

18

Readme

@curong/regexp

@curong/regexp 主要包含以下的方法:

  • execAll: 循环遍历 RegExp.exec 方法捕获到的内容
  • inChinese: 是否包含中文汉字
  • inChkPunctuation: 是否包含中日韩标点符号
  • inJapanese: 是否包含日文
  • isEmail: 是否为合法的邮箱地址
  • isIp: 是不是一个 IP 地址
  • isURI: 是否为合法的链接地址
  • mapReplace: 使用一组正则表达式来替换字符串中的内容
  • matchNextIndex: 获取正则匹配对象的当前项的下一个字符的开始索引位置
  • testEvery: 使用一组正则来验证一个字符串是否符合预期
  • testSome: 使用一组正则来验证一个字符串是否符合预期

@curong/regexp 主要包含以下的属性:

  • ascii: 验证 ASCII 的正则字符串
  • blank: 验证所有的空白字符的正则字符串,比如空格
  • chkPunctuation: 验证中日韩的标点符号的正则字符串
  • control: 验证所有的控制字符的正则字符串,包含 \r\n\t 等等
  • email: 验证邮箱的正则字符串
  • han: 验证汉文的正则字符串 (包含特殊字符)
  • hiragana: 验证平假名的正则字符串
  • japanese: 验证日文的正则字符串
  • katakana: 验证片假名的正则字符串
  • korean: 验证韩文的正则字符串
  • punctuation: 验证所有的标点符号的正则字符串
  • unifiedIdeograph: 验证中文汉字的正则字符串
  • uri: 验证 URI 连接的正则字符串