this would be really cool as a stream. for the people too lazy to click on the link what this library does is detect file type by reading a bit of it.
@mscdex is there a list of types that it can detect? On Sun, Jul 15, 2012 at 2:06 PM, mscdex <[email protected]> wrote: > For those interested, mmmagic 0.2.0 has been released. (Get it now via `npm > install mmmagic`). > > After much wrangling, the highlights of this new and improved version > include: > > * Libmagic now compiles on Windows under MSVC! No more bundled precompiled > binaries! > * GYP goodness all the way down! > * The bundled magic database is now used by all OSes that do not have an > existing magic database installed in any of the usual places. Previously, > only Windows users enjoyed this feature. > * Zlib requirement removed. > * Support for Windows, Linux, Mac, and FreeBSD (all tested). > > mmmagic is an addon that lets you harness the power of the `file` command in > your scripts without spinning up a child process! > > GitHub Repo: https://github.com/mscdex/mmmagic > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
