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

@utils-fns/utils-fns

v10.0.0

Published

![npm](https://img.shields.io/npm/v/@utils-fns/utils-fns) [![License](https://img.shields.io/github/license/ccqueiroz/utils-fns)](LICENSE) [![Repository](https://img.shields.io/badge/repository-GitHub-blue.svg)](https://github.com/ccqueiroz/utils-fn) ## R

Downloads

11

Maintainers

caiocezarqueirozcaiocezarqueiroz

Readme

@utils-fns/utils-fns

npm License Repository

README versions

Portuguese 🇧🇷 | English 🇺🇸

✨ Features

Validators: The @utils-fns/validators library provides the following validators:

  • [x] cpfValidator
  • [x] nisValidator
  • [x] emailValidator
  • [x] cnpjValidator
  • [x] phoneValidator
  • [x] paymentCardValidator (luhn algorithm)
  • [x] paymentSlipValidator (ITF-14)
  • [x] stateRegistrationValidator (inscrição estadual - BR)
  • [x] voterRegistrationValidation (título de eleitor - BR)
  • [x] cnhValidator
  • [x] renavamValidator
  • [x] cepValidator (cep - BR)

Link to module documentation @utils-fns/validators: https://github.com/ccqueiroz/utils-fns/blob/main/packages/validators/README.md

Mask: The @utils-fns/mask library provides the following masks:

  • [x] cpf
  • [x] nis
  • [x] cnpj
  • [x] date
  • [x] paymentSlip
  • [x] phone
  • [x] renavam
  • [x] cnh
  • [x] voterRegister
  • [x] cep
  • [x] generic masks
  • [x] numbers

Link to module documentation @utils-fns/mask: https://github.com/ccqueiroz/utils-fns/blob/main/packages/mask/README.md

Utils: The @utils-fns/utils library provides the following utilities:

Module under construction

  • [x] Data List Cities (BR)
  • [x] Data List States (BR)
  • [x] Data List Countries
  • [x] Lunh Algorithm
  • [x] Lunh Algorithm Mod10
  • [x] Lunh Algorithm Mod11
  • [x] Payment Card Data List
  • [x] Normalize Words
  • [ ] Sorting Algorithms
    • [ ] Bubble Sort
    • [ ] Merge Sort
    • [ ] Quick Sort
    • [ ] Heap Sort
    • [ ] Alphanumeric Sort
    • [ ] Heap
    • [ ] Selection
    • [ ] Bubble
    • [ ] Merge
  • [ ] Searching Algorithms
    • [ ] Binary Search
    • [ ] Breadth-First
    • [ ] Depth-First
    • [ ] Exponential Search
    • [ ] Heap Sort
  • [ ] Generate File Hash
  • [ ] converter base64
  • [ ] unConverter base64
  • [ ] Params serializer
  • [ ] PrintPDF
  • [ ] Blob dowload
  • [ ] Generate Password
  • [ ] Convert Hex To RGB
  • [ ] Add Opacity In Color Rgb

Link to module documentation @utils-fns/utils: https://github.com/ccqueiroz/utils-fns/blob/main/packages/utils/README.md

🖥 Supported Environments

  • Applications with javascript ES6 or higher
    • Modern Browsers
    • Server-side
    • Electron
    • Mobile

📦 Install

To install the @utils-fns/utils-fns library: use your preferred package manager

  yarn add @utils-fns/utils-fns

  or

  npm install @utils-fns/utils-fns

🔨 How to use

To access the features, just follow the example:

  //ES6
  import { validators, utils, mask } from "@utils-fns/utils-fns";
  //CommomJS
  const { validators, utils, mask } = require("@utils-fns/utils-fns");

So, just choose which validation tool will be used.

  const cpfValidation = validators.cpf('64912007013')
  //return true

Typescript

@utils-fns/utils-fns is written in TypeScript with complete definitions.

Author

Linkedin Badge Gmail Badge

Licença

This API is licensed MIT.