Detect the file type of a file, stream, or data
- nodejs
- javascript
- uint8array
- buffer
47,133 repositories indexed
1–9 of 9 · Most stars
Detect the file type of a file, stream, or data
Convert a string/promise/array/iterable/asynciterable/buffer/typedarray/arraybuffer/object into a stream
Adds console.table method that prints an array of objects as a table in console
Gets you a JSON Schema from PostgreSQL or SQLite3. Also supports arrays and default values. Use it for introspection or preparing your domain models like with Rails's Active Record.
Recursively flatten an array or arrays. This is the fastest implementation of array flatten.
Returns an array with only the unique values from all given arrays using strict equality for comparisons.
Return the last element in an array. Faster than `.slice`
Return true if a value exists in an array. Faster than using indexOf and won't blow up on null values.
Get the first element or first n elements of an array.