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

@emeraldou/ryze

v0.4.0

Published

A simple and flexible tool in order to easily generate Doinb's Ryze Hack text-like strings.

Downloads

4

Readme

Doinb's Ryze Hack text generator

A simple and flexible tool in order to easily generate Doinb's Ryze Hack text-like strings.

Getting Started

npm i @emeraldou/ryze

If you're using ES6 + Typescript, simply import the component like that :

import RyzeHackGenerator from "@emeraldou/ryze";

Once you've imported the component, you will now be able to use its only static method : generate :

import RyzeHackGenerator from '@emeraldou/ryze';

const text = RyzeHackGenerator.generate();

Configurations

In order to set some configuration, pass an object to the generate method :

import RyzeHackGenerator from '@emeraldou/ryze';

const text = RyzeHackGenerator.generate({ /* config */ });

length

number default: 75

The maximum length corresponding to the amount of sequences of words added to the result.


punctuationProbability

number default: 25

The probability as percentage to add some punctuation at the end of a sequence of text. A punctuation is defined as "?", "!" and "¿". Each of these can be repeated three times.


lowercaseProbability

number default: 30

The probability as percentage to transform the generated sequence into lowercase. By default, everything is in uppercase.


peopleProbability

number default: 20

The probability to roll a person instead of a word. Then, there is 50% chance that the person's name will be followed by "FEAT any word"


minPeopleSpacing

number default: 2

Minimum amount of random words between two people names.


minFeaturingSpacing

number default: 10

Minimum amount of random words that must separate two "FEAT" strings.


minChineseSequenceLength

number default: 3

Minimum length of a sequence of Chinese characters generated by the end of a sequence of sequences of texts.


maxChineseSequenceLength

number default: 7

Same as minChineseSequenceLength but for the maximum length. Must obviously be higher.


minWordSequenceLength

number default: 7

Minimum length of a sequence of words.


maxWordSequenceLength

number default: 15

Maximum length of a sequence of words.


wordPool

Function default: undefined

Defines a callable configuration which is going to configure the array of available words.

If used, MUST return an array of strings.

import RyzeHackGenerator from '@emeraldou/ryze';

RyzeHackGenerator.generate({
    wordPool: (pool: Array<string>) => {
      pool.push("TEST");
      return pool;
    }
});

chinesePool

Function default: undefined

Defines a callable configuration which is going to configure the array of available chinese characters inserted by the end of sequences of words.

If used, MUST return an array of strings.

import RyzeHackGenerator from '@emeraldou/ryze';

RyzeHackGenerator.generate({
    chinesePool: (pool: Array<string>) => {
      pool.push("厦");
      return pool;
    }
});

peoplePool

Function default: undefined

Defines a callable configuration which is going to configure the array of available people names to insert instead of words.

If used, MUST return an array of strings.

import RyzeHackGenerator from '@emeraldou/ryze';

RyzeHackGenerator.generate({
    peoplePool: (pool: Array<string>) => {
      pool.push("SKYYART");
      return pool;
    }
});