Coder Social home page Coder Social logo

xyfir / rword Goto Github PK

View Code? Open in Web Editor NEW
158.0 7.0 20.0 2.7 MB

๐ŸŽฒ A cryptographically secure random generator for real English words. Contains 350,000+ English words.

Home Page: https://npmjs.com/package/rword

License: MIT License

TypeScript 100.00%
random-word-generator random random-generation words nodejs

rword's People

Contributors

mrxyfir avatar ruffrey avatar waspeer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

rword's Issues

Decrease size of "small" word list

Given the introduction of "small" and "big" word lists in v3.1.0, I'd like to decrease the size of the "small" word list from ~129k words to 100k at most, and possibly even down to 50k.

The small list should be acceptable for general use, and as lightweight as possible. We should remove any stop words, and any super rare words that you can hardly find a definition for.

script doesn't exit

When I include rword in a node project using const rword = require('rword'); my script never exits. It looks like this is due to the code block at the end of index.js:

if (!words.length) {
  words = require('./words/english');
  
  rword.shuffle();

  // Shuffle array on a random interval
  setInterval(() => rword.shuffle(), 60 * rand.range(10, 30) * 1000);
}

That setInterval waits at least 10 minutes, calls shuffle, and then waits several minutes again and calls it again. Forever. I'm not sure what it's supposed to accomplish, but I can't use your library like this.

Can I integrate it with Angular

I tried to integrate it with my angular code, but I failed.
I think the package is for nodejs, or am I wrong.

Sorry if this issue looks silly. Can you please guide me with if there is way to integrate it with angular.

Bad words

I'm not sure why there is a need for curse words in the list (small.json).

image

Can we remove these or add an option to not return them?

Add import example for require()

Firstly, thank you for your work in creating this package. It's really cool!

Is there any plan to make rword compatible with CommonJS, or will it only be available as a ES module?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.