sindresorhus / shebang-regex
Regular expression for matching a shebang line
☆46Updated 3 years ago
Alternatives and similar repositories for shebang-regex:
Users that are interested in shebang-regex are comparing it to the libraries listed below
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- List of vendor prefixes known to the web platform☆11Updated 2 years ago
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆22Updated 2 years ago
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Get the version of a binary in semver format☆35Updated 10 months ago
- fs read and write streams based on minipass☆20Updated 6 months ago
- List of archive file extensions☆14Updated 9 months ago
- Get all emails in a text file or stdin☆24Updated 3 years ago
- Lowercase the keys of an object☆40Updated last year
- Strip shebang (eg. #!/bin/sh) from a string☆11Updated 3 years ago
- Expand POSIX bracket expressions (character classes) in glob patterns.☆27Updated 3 years ago
- Check if an Array is sorted☆34Updated 3 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Updated 2 years ago
- Check if a path is inside another path☆37Updated 2 years ago
- Get the user home directory with fallback to the system temp directory☆30Updated 3 years ago
- Strip UTF-8 byte order mark (BOM) from a buffer☆19Updated last year
- Track the list of currently unhandled promise rejections☆24Updated 6 years ago
- Strip the final newline character from a string/buffer☆36Updated 3 months ago
- Split a string at one or more indices☆23Updated 3 years ago
- Check if a file path is a binary file☆44Updated 9 months ago
- ES2015 Number.isFinite() ponyfill☆19Updated 3 years ago
- Slice a string with ANSI escape codes☆47Updated 8 months ago
- Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz☆19Updated 2 years ago
- Check if a string has ANSI escape codes☆45Updated 7 months ago
- Create ansi colors by passing open and close codes.☆18Updated 10 months ago
- Check if a file path is a compressed file☆17Updated 9 months ago
- Convert a time string to seconds: '0017' → 1337☆35Updated 3 years ago
- Returns an object with the base path and the actual pattern from a glob.☆17Updated 7 years ago
- Check if a value is an error constructor☆13Updated 3 years ago
- Turn a Git URL into its canonical form.☆14Updated 4 years ago