mirror of
https://github.com/S2-/gitlit
synced 2025-08-03 21:00:04 +02:00
packager
This commit is contained in:
8
app/node_modules/utf8-byte-length/index.js
generated
vendored
Normal file
8
app/node_modules/utf8-byte-length/index.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function getByteLength(string) {
|
||||
if (typeof string !== "string") {
|
||||
throw new Error("Input must be string");
|
||||
}
|
||||
return Buffer.byteLength(string, "utf8");
|
||||
};
|
Reference in New Issue
Block a user