Hello,
I am new to node.js I am trying to use the module UTF-8-Validate to check
a simple test buffer.
https://www.npmjs.com/package/utf-8-validate
However I am not sure how to call the function.
'use strict';
var isValid = require('utf-8-validate').isValidUTF8;
The module exposes 1 function:
*isValidUTF8* <https://www.npmjs.com/package/utf-8-validate#isvalidutf8>
Validate if the passed in buffer contains valid UTF-8 chars.
bu.isValidUTF8(buffer);
If anybody know how to do this or can point me to some sample code it would
be very helpful.
Thanks
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/01a2b4b9-961a-4f2d-b6cb-3021ef8dec89%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.