Detect the file type of a file, stream, or data
- nodejs
- javascript
- uint8array
- buffer
47,133 repositories indexed
1–3 of 3 · Most stars
Detect the file type of a file, stream, or data
JavaScript/Node.js utility. Returns `true` if the value is a number or string number. Useful for checking regex match results, user input, parsed strings, etc.
Finds prime numbers using the Sieve of Eratosthenes algorithm.