sindresorhus / fn-argsView external linksLinks
Get the arguments of a function, arrow function, generator function, async function
☆54Oct 30, 2023Updated 2 years ago
Alternatives and similar repositories for fn-args
Users that are interested in fn-args are comparing it to the libraries listed below
Sorting:
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- Check if a string is email like☆25Nov 11, 2025Updated 3 months ago
- Truncate a semver version: 1.2.3 → 1.2.0☆18Jul 9, 2022Updated 3 years ago
- Create a noop process and get the PID☆14Aug 10, 2021Updated 4 years ago
- Get the bundle identifier of the default browser (macOS). Example: com.apple.Safari☆13Nov 14, 2025Updated 2 months ago
- Strip a path from a path☆18Aug 18, 2021Updated 4 years ago
- Parse and stringify file paths with line and column like `unicorn.js14`☆24Nov 22, 2025Updated 2 months ago
- Check if a path is the current working directory☆22May 10, 2025Updated 9 months ago
- Get a random property from an object☆15Jul 2, 2024Updated last year
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 4 years ago
- Check if a value is an error constructor☆14Apr 7, 2021Updated 4 years ago
- Get the URL from a web shortcut file☆14Aug 14, 2021Updated 4 years ago
- Get free disk space info from `df -kP`☆64Sep 13, 2025Updated 5 months ago
- Modify the filename in a path☆17Jul 9, 2022Updated 3 years ago
- Get the iTerm2 version☆11Jan 5, 2026Updated last month
- List of platforms supported by Node.js☆12Nov 3, 2021Updated 4 years ago
- Check if a path is in the current working directory☆23May 3, 2021Updated 4 years ago
- Get a random key from an object☆18Jul 2, 2024Updated last year
- Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆63Apr 1, 2024Updated last year
- Modify the values of an object☆29Sep 10, 2021Updated 4 years ago
- Regular expression for matching scoped npm package names☆27Jul 9, 2022Updated 3 years ago
- Get the avatar of a GitHub user☆21Oct 14, 2021Updated 4 years ago
- Check if a file path is an archive file☆16Apr 30, 2024Updated last year
- Get the name of a named function☆34Apr 7, 2021Updated 4 years ago
- Get the terminal window size on macOS☆42Nov 4, 2023Updated 2 years ago
- A safer `.hasOwnProperty()`☆29Jun 21, 2023Updated 2 years ago
- Check if a string is a scoped npm package name☆25Jul 9, 2022Updated 3 years ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆40Jan 24, 2026Updated 3 weeks ago
- Get the passwd user entry from a username or uid☆30Jul 9, 2022Updated 3 years ago
- Get the version of a binary in semver format☆42Apr 3, 2024Updated last year
- Lowercase the keys of an object☆41Feb 2, 2026Updated last week
- Create an array with values that are present in the first input array but not additional ones☆40Sep 14, 2021Updated 4 years ago
- Regular expression for matching JavaScript comments☆32Jul 8, 2025Updated 7 months ago
- Check if a value is a Blob☆24Oct 27, 2023Updated 2 years ago
- Check if your code is running as an npm or yarn script☆66Sep 10, 2025Updated 5 months ago
- Strip comments from JSON. Lets you use comments in your JSON files!☆26Nov 1, 2023Updated 2 years ago
- Include only certain items in an array☆19Jun 13, 2025Updated 8 months ago
- Check if a filepath is a Markdown file☆22May 4, 2021Updated 4 years ago
- Check if a value is a regular expression☆26Oct 31, 2021Updated 4 years ago