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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@manoelfernandes/validate

v1.4.1

Published

A simple and lightweight vanilla JavaScript library for type validation of primitive values (number, string, boolean, bigint, undefined, null, and symbol).

Readme

npm License Test Status bundle size

⚠️ License Notice

Starting from the next release, this project will be licensed under the Apache 2.0 license.

I have no intention of closing the source code or limiting its use in any way — the project will remain 100% free, both for personal and commercial use.

However, it's important to have legal protection against third parties trying to create patents based on this project — something the MIT license does not provide. That kind of risk could jeopardize the future of the project, and that's why this change is necessary.

This change does not affect anyone already using the library, whether in personal or commercial projects. All previous versions will remain under the original MIT license.

In short: the project is still open and free — now it’s just better protected.

What is Validate?

Validate is a simple and lightweight library for validating primitive types in JavaScript. It was originally created to solve a personal need for safely validating input data and to prevent bugs caused by JavaScript's lack of strict typing. It helps ensure that values from both external and internal sources match the expected types before being used.

Documentation

Full documentation is available on Gitbook.

Changelog

The Changelog for this package is available on GitHub.

License


MIT © Manoel Fernandes