xyfir / rword Goto Github PK
View Code? Open in Web Editor NEW๐ฒ A cryptographically secure random generator for real English words. Contains 350,000+ English words.
Home Page: https://npmjs.com/package/rword
License: MIT License
๐ฒ A cryptographically secure random generator for real English words. Contains 350,000+ English words.
Home Page: https://npmjs.com/package/rword
License: MIT License
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.
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.
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.
Is there a way to use an input as a seed?
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.