MCPcopy Index your code
hub / github.com/dcodeIO/bcrypt.js / truncates

Function truncates

index.js:322–326  ·  view source on GitHub ↗
(password)

Source from the content-addressed store, hash-verified

320 * @returns {boolean} `true` if truncated, otherwise `false`
321 */
322export function truncates(password) {
323 if (typeof password !== "string")
324 throw Error("Illegal arguments: " + typeof password);
325 return utf8Length(password) > 72;
326}
327
328/**
329 * Continues with the callback after yielding to the event loop.

Callers

nothing calls this directly

Calls 1

utf8LengthFunction · 0.85

Tested by

no test coverage detected