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

@n3dst4/fizzbuzzify

v1.0.5

Published

Turn numbers into their corresponding fizzbuzz result

Downloads

3

Readme

@n3dst4/fizzbuzzify

Travis status

Turn numbers into their corresponding fizzbuzz result

Usage

Install:

npm install fizzbuzzify --save

Use:

// es6 style import:
import fizzbuzzify from "@n3dst4/fizzbuzzify"

// or cjs/node/browserify-style:
var fizzbuzzify = require("@n3dst4/fizzbuzzify")

// then:
console.log(fizzbuzzify(15)) // "FizzBuzz"

Hacking and contribution

The code is written in es6 and transpiled into the __build folder as es5 by babel. This is done automatically before publishing to npm by the prepublish script config.

If you're working on this package and you want to generate the transpiled output, run:

npm run prepublish

Alternatively to keep babel running in watch mode while you work, run

npm run watch

Compatibility

This code should work fine in node and browsers.

Running tests

As usual, you can run npm test to run the tests. This will fire up Karma and attempt to start a Firefox instance.

When running in a Continuous Integration environment, the Karma configuration will run once and exit. Otherwise it will start up in "watch" mode.

Alternatively you can run npm run mocha to run the tests directly in Mocha (not using Karma) or npm run mocha-watch to keep mocha running the background and re-running the tests when the code changes.

For the love of gosh, why?

This package is part of a larger project that's half joke and half genuine demonstration of "cool things in software development". Go see @n3dst4/fizzbuzz-cli for the full write-up.