sindresorhus / is-ip
Check if a string is an IP address
☆113Updated last year
Related projects: ⓘ
- Check if a string is a valid filename☆59Updated 3 years ago
- Move a file - Even works across devices☆197Updated 10 months ago
- Check if a file path is an image☆92Updated last year
- Strip leading whitespace from each line in a string☆134Updated 3 years ago
- Wordwrap a string with ANSI escape codes☆119Updated 10 months ago
- Check if argv has a specific flag☆90Updated 3 years ago
- Write data to a random temporary file☆103Updated last month
- Isomorphic function to convert a bytes value (e.g. 3456) to a human-readable string ('3.5 kB')☆74Updated last month
- Check if your package was installed globally☆70Updated 10 months ago
- Convert RGB color to HEX☆117Updated last year
- Loosely validate a URL.☆163Updated 11 months ago
- Check if a URL is absolute☆77Updated 3 years ago
- Convert a string/Buffer/Uint8Array to a readable stream☆90Updated last year
- Filter object keys and values into a new object☆100Updated 3 months ago
- Find the closest package.json file☆158Updated 10 months ago
- Create a readable Node.js stream that produces no data (or optionally blank data) or a writable stream that discards data☆52Updated last year
- Less memory usage version of geoip-lite by supporting only country lookup.☆88Updated this week
- Check whether a request can be retried based on the `error.code`☆78Updated 2 years ago
- Sort the keys of an object☆101Updated last week
- Check if your code is running as an npm or yarn script☆64Updated 2 years ago
- Parse milliseconds into an object☆119Updated 4 months ago
- Check if a string is HTML☆96Updated 6 months ago
- Block the main thread for a given amount of time☆123Updated last year
- Detects if a file is binary in Node.js. Similar to Perl's -B☆162Updated 3 months ago
- Get the name of the current operating system. Example: macOS Sierra☆144Updated 3 months ago
- Get a random temporary file path☆79Updated last year
- Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many others!☆106Updated last year
- Get the directory of globally installed packages and binaries☆75Updated 10 months ago
- Check if something is a Node.js stream☆111Updated 4 months ago
- Check if a value is a plain object☆101Updated 4 months ago