sindresorhus / random-itemLinks
Get a random item from an array
☆56Updated 3 years ago
Alternatives and similar repositories for random-item
Users that are interested in random-item are comparing it to the libraries listed below
Sorting:
- Exit the process when the `esc` key is pressed☆57Updated last year
- Get the first path that exists on disk of multiple paths☆60Updated last month
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Detect the dominant newline character of a string☆56Updated 2 years ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆142Updated last month
- Check if your package was installed globally☆69Updated last year
- Filter object keys and values into a new object☆104Updated last year
- Run promise-returning & async functions repeatedly until you end it☆47Updated 4 years ago
- Wait for any promise to be fulfilled☆56Updated 3 years ago
- Fill in a range of numbers or letters, positive or negative, optionally passing an increment or multiplier to use.☆58Updated last year
- Get the directory of globally installed packages and binaries☆76Updated last year
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- Check if a string matches the name of a Node.js builtin module☆61Updated 7 months ago
- Turn an object into a string of HTML attributes☆49Updated 2 years ago
- While a condition returns true, calls a function repeatedly, and then resolves the promise☆57Updated last year
- Split a string on the first occurrence of a given separator☆74Updated 2 months ago
- Check if a value is an object☆41Updated 4 years ago
- A safer `.hasOwnProperty()`☆29Updated 2 years ago
- Regular expression for matching issue references☆49Updated last year
- Truncate a URL to a specific length☆61Updated last month
- Indent each line in a string☆113Updated 3 years ago
- Check if the process is running with elevated privileges☆42Updated 4 years ago
- Simple wildcard matching☆34Updated last month
- Get the visual width of the widest line in a string - the number of columns required to display it☆39Updated last year
- Split lines into an array of lines☆45Updated last year
- Check if argv has a specific flag☆94Updated 4 years ago
- Wordwrap a string with ANSI escape codes☆129Updated last month
- Make a function mimic another one☆96Updated 11 months ago
- Generate a random integer☆87Updated last month
- Convert a string/Buffer/Uint8Array to a readable stream☆91Updated 3 years ago