sindresorhus / arrify
Convert a value to an array
☆129Updated 3 years ago
Alternatives and similar repositories for arrify:
Users that are interested in arrify are comparing it to the libraries listed below
- Write a package.json file☆88Updated 8 months ago
- Detect the dominant newline character of a string☆55Updated last year
- Let a globally installed package use a locally installed version of itself if available☆154Updated 8 months ago
- Get the directory of globally installed packages and binaries☆75Updated last year
- Read a package.json file☆165Updated last year
- Check if a value is a plain object☆102Updated 11 months ago
- Get your PATH prepended with locally installed binaries☆104Updated 5 months ago
- Check if a path exists☆151Updated 3 years ago
- Resolve the path of a module like require.resolve() but from a given path☆140Updated 4 years ago
- Find the closest package.json file☆162Updated last year
- Check whether a request can be retried based on the `error.code`☆80Updated 3 years ago
- Resolve the path of a module like `require.resolve()` but from the current working directory☆68Updated 4 years ago
- Get the auth token set for an npm registry☆35Updated 2 months ago
- Check if your package was installed globally☆70Updated last year
- Sort the keys of an object☆102Updated 7 months ago
- If you use globs, this will make your code faster. Returns `true` if the given string looks like a glob pattern or an extglob pattern. Th…☆92Updated 2 years ago
- Get the path of the caller module☆64Updated 3 years ago
- Wordwrap a string with ANSI escape codes☆123Updated last year
- Get metadata of a package from the npm registry☆240Updated 9 months ago
- Find the first file matching a given pattern in the current directory or the nearest ancestor directory.☆98Updated last year
- Like findup-sync, but 2-4x faster and supports XDG-style `.config/` directories.☆41Updated 5 years ago
- Import a module like with `require()` but from a given path☆85Updated 2 years ago
- Copy a file☆120Updated last year
- Truncate a string to a specific width in the terminal☆87Updated last year
- ☆45Updated 2 years ago
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Filter object keys and values into a new object☆101Updated 10 months ago
- Check if a path is a file, directory, or symlink☆78Updated 8 months ago
- Toggle the CLI cursor☆107Updated 8 months ago
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆93Updated 2 years ago