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

hurnjs

v0.0.7

Published

Lorem Ipsum generator for Yung Hurn lyrics

Downloads

3

Readme

HurnJS

Generate random rap lyrics in the style of Austrian rapper Yung Hurn.

Installation

npm install hurnjs

How to use

hurn() takes up to three parameters, keyword, limit and useAll and returns a promise resolving with a string.

  • keyword (String, default: random): The response will contain the set keyword.
  • limit (Number, default: 100): The response will contain the number of words set with limit.
  • useAll (Boolean, default: false): If useAll is set to true, the response will be generated from a text file containing more lyrics, when false it will use only the lyrics of the top 10 most listened tracks.
const hurn = require('hurnjs');

hurn().then(response => {
  console.log(response); // response contains text according to defaults
});

hurn('baby').then(response => {
  console.log(response); // response will contain "baby"
});

hurn('pillen', 1000, true).then(response => {
  console.log(response); // response contains text containing "pillen", 1000 words and was seeded by a larger textfile
});

Example response

Drogen jetzt? verkaufen Freunde Deine crazy mich nenn' Baby, Schluck der ein' Hand wie und glitzerst ich du hab' Brudi, noch glaubs paar wirklich Karten schnell, für schnell dich schnell, wenn Aber du nie, willst, das dann und Werd' Stadt Ich die ich weiß mach' sind die Schuhe

Commands

  • npm run clean - Remove lib/ directory.
  • npm test - Run tests.
  • npm test:watch - Run tests and watch for file changes.
  • npm run cover - Yes. You can even cover ES6 code.
  • npm run lint - Lint using airbnb-config
  • npm run test:examples - Runs written examples for better module understanding.
  • npm run build - Compiles ES6 to ES5.
  • npm run prepare - Hook for npm. Do all the checks before publishing you module.