-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: Require encoding option to avoid inspecting chunks for UTF-8 encoding #8
Conversation
@phated I've merged the latest master branch, modified to use |
@phated I merged your follow up code and fixed the cause of test failures on Node.js <= v11. Please review this updated code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great! I'll make a follow-up issue to clean up this implementation when we drop older node support
This PR is to fix the issue #5.
This PR changes that:
remove-bom-buffer
.remove-bom-buffer
.Buffer.isBuffer
instead ofis-buffer
module.is-utf8
, which is used inremove-bom-buffer
.(fixes #5)