Tom

Results 281 comments of Tom

PR is very welcome!

Happy to merge a PR with the fix.

You can import and instantiate this class, then call the `match()` method passing the bytes buffer: https://github.com/h2non/filetype.py/blob/master/filetype/types/archive.py#L173

I guess you would have to read the file contents first, whether from the local file system or remotely (HTTP, SFTP...).

Thanks! I have no time, but PRs are very welcome :)

Yes, it is. It was already implemented in the Go port of this package: https://github.com/h2non/filetype#documents PR would be very welcome!

I'm not very convinced about this code generation approach. It will lead to inconsistency in the way to declare matches in the library unless all matches are ported to be...

toxy is no longer actively maintained, I'm sorry. Although, it can be easily adapted to work with node v14+, but it would be quicker to use other maintained solutions out...

Right, [just done](https://github.com/h2non/toxy/commit/95ff4630e5de16c96d744467e595031382d05c71)!

You can write a middleware for that route where you can rewrite and strip the incoming request path, such as: ```js proxy.all("/papyrus") .use((req, res, next) => { req.url = '/'...