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

newtonify

v1.0.8

Published

Newton School of Technology's official fun npm package πŸŽπŸ’‘ (thanks, gravity!)

Readme

🧩 Usage

Import

Use destructuring to import the functions you need:

const {
  newtonify,
  lawOfCoding,
  appleFall,
  gravityText,
  newtonRandom
} = require('newtonify');

🧲 1. newtonify(text, mode)

Adds a Newton-inspired twist (with emojis and humor) to any message.

| Mode | Description | | :---------- | :------------------------------------- | | light | For simple, light-hearted messages. | | heavy | For intense or "buggy" situations. | | discovery | For moments of insight or realization. |

console.log(newtonify("Learning JavaScript", "discovery"));
console.log(newtonify("Debugging life", "heavy"));

Output:

Learning JavaScript 🧠 (thanks, gravity!)
Debugging life ⚑⚑ (thanks, gravity!)

🧠 2. lawOfCoding(num?)

Returns one of Newton’s "Laws of Coding" β€” funny and relatable programming truths. Pass a number to get a specific law, or call it without arguments for a random one.

console.log(lawOfCoding());   // Get a random law
console.log(lawOfCoding(2));  // Get the 2nd law

Example Output:

Newton's 2α΅—Κ° Law of Coding:
A coder in motion stays in motion unless stopped by production bugs. πŸ§‘β€πŸ’»

πŸ’₯ 3. appleFall(text, mode?)

Literally drop an apple 🍎 or an idea πŸ’‘ around your message.

| Mode | Output Symbol | Default? | | :------ | :------------ | :------- | | apple | 🍎 | βœ… | | idea | πŸ’‘ | ❌ |

console.log(appleFall("Eureka!", "apple"));
console.log(appleFall("New idea incoming!", "idea"));

Output:

🍎 Eureka! 🍎
πŸ’‘ New idea incoming! πŸ’‘

πŸ“ 4. gravityText(text, delay?)

Simulates gravity pulling your text down. Each letter prints on a new line with a specified delay (in milliseconds). Great for fun console effects! Note: This is an async function.

await gravityText("Newton School", 150);

Output:

N
e
w
t
o
n
S
c
h
o
o
l

πŸ§ͺ 5. newtonRandom()

Retrieves a random, witty Newton fact, quote, or coding-related line.

console.log(newtonRandom());

Possible Outputs:

Gravity pulled apples, curiosity pulls coders. 🍎
An object at rest stays at rest until the next deadline hits. πŸ˜…
Innovation is just applied curiosity. πŸš€

πŸ’‘ Function Summary

| Function | Description | Example | | :----------------------------- | :---------------------------------------------------------------------- | :-------------------------------- | | 🧲 newtonify(text, mode) | Adds Newton-style emojis & humor (light, heavy, discovery modes). | newtonify("Debugging", "heavy") | | 🧠 lawOfCoding(num?) | Returns a random or numbered β€œLaw of Coding.” | lawOfCoding(3) | | πŸ’₯ appleFall(text, mode?) | Adds 🍎 (default) or πŸ’‘ around your text. | appleFall("Eureka!", "idea") | | πŸ“ gravityText(text, delay?) | Animates text vertically (like gravity) with a delay (ms). | await gravityText("Newton") | | πŸ§ͺ newtonRandom() | Returns a random Newton fact or quote. | newtonRandom() |


πŸŽ“ Why We Built This

This project was created by students of Newton School of Technology to combine creativity 🎨 with code πŸ’». It served as a valuable, hands-on learning experience covering core development concepts:

  • βœ… String manipulation and regex
  • βœ… Asynchronous functions and delays
  • βœ… JS modules & exports
  • βœ… The npm publishing process
  • βœ… Collaboration & open-source contribution

πŸ’¬ Contributing

Have a cool, Newton-inspired idea? 🍏 We’d love to see your creativity!

  1. Fork this repository.
  2. Add your new feature or function (like inertiaMode() πŸ˜„).
  3. Create a descriptive pull request.

Your idea could be the next gravity-defying addition! πŸš€


πŸ“œ License

MIT License Β© Newton School of Technology Made with ❀️, curiosity, and gravity πŸŽπŸ’‘


β€œGravity pulled apples. Curiosity pulls coders.” β€” Newton School of Technology