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 🙏

© 2026 – Pkg Stats / Ryan Hefner

destupidify

v1.1.1

Published

changes stupid return values like 'yes' and 'no' to true and false

Downloads

43

Readme

DeStupidify

1 Synopsis
2 Installation
3 Examples
3.1 Example 1
3.2 Example 2
3.3 Example 3
3.4 Example 4
3.4 Example 5
4 Why DeStupidify
5 Contributions
6 License

1 - Synopsis

Have you ever come across a really stupid function that returns "yes" or "no" instead of a useful value like true or false. Who does that?!?! In a recent contribution to DeBunk, a highly performant, state-of-the-art 3 and/or 17 verifier, somebody created some functions that return really stupid values.

Luckily with DeStupidify, you don't have to worry about stupid return values anymore! Simply run your functions through this life-changing module and get significantly less stupid values to work with!

2 - Installation

You can install Destupidify with npm:

npm install destupidify

3 - Examples

Here are some examples of how to use DeStupidify.

3.1 - Example 1

var destupidify = require('destupidify');
destupidify.destupidifyAffirmativeVal('YEAH'); //true

3.2 - Example 2

var destupidify = require('destupidify');
destupidify.destupidifyAffirmativeVal('I guess'); //true

3.3 - Example 3

var destupidify = require('destupidify');
destupidify.destupidifyNegativeVal('nope'); //false

3.4 - Example 4

var debunk = require('debunk');
var destupidify = require('destupidify');
destupidify.destupidifyNegativeVal(debunk.doesItEqualThree(1+9)); //false
// this is deprecated, debunk>=1.2 now proudly uses DeStupidify!

3.5 - Example 5

var destupidify = require('destupidify');
destupidify.isThisShitStupid('yep'); //true
destupidify.isThisShitStupid('no fucking way dude'); //true
destupidify.isThisShitStupid(Math.PI); //false

4 - Why DeStupidify

Some functions return really stupid values.

6 - Contributions

DeStupidify is open source. Contribute today at http://www.github.com/ekopelevich/destupidify.

7 - License

ISC License

©2016 Elana Kopelevich

[email protected]