feat: 초기 프로젝트 설정 및 룰.md 파일 추가

This commit is contained in:
2025-07-28 09:53:31 +09:00
commit 09a4d38512
8165 changed files with 1021855 additions and 0 deletions

20
api.hyungi.net/node_modules/bodec/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2014 Tim Caswell
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

4
api.hyungi.net/node_modules/bodec/README.md generated vendored Normal file
View File

@@ -0,0 +1,4 @@
bodec
=====
Binary ops using typed arrays

172
api.hyungi.net/node_modules/bodec/bodec-node.js generated vendored Normal file
View File

@@ -0,0 +1,172 @@
module.exports = {
Binary: Buffer,
// Utility functions
isBinary: Buffer.isBuffer,
create: Buffer,
join: Buffer.concat,
// Binary input and output
copy: copy,
slice: slice,
// String input and output
toRaw: toRaw,
fromRaw: fromRaw,
toUnicode: toUnicode,
fromUnicode: fromUnicode,
toHex: toHex,
fromHex: fromHex,
toBase64: toBase64,
fromBase64: fromBase64,
// Array input and output
toArray: toArray,
fromArray: fromArray,
// Raw <-> Hex-encoded codec
decodeHex: decodeHex,
encodeHex: encodeHex,
decodeBase64: decodeBase64,
encodeBase64: encodeBase64,
// Unicode <-> Utf8-encoded-raw codec
encodeUtf8: encodeUtf8,
decodeUtf8: decodeUtf8,
// Hex <-> Nibble codec
nibbleToCode: nibbleToCode,
codeToNibble: codeToNibble
};
function slice(binary, start, end) {
return binary.slice(start, end);
}
function copy(source, binary, offset) {
return source.copy(binary, offset);
}
// Like slice, but encode as a hex string
function toHex(binary, start, end) {
return binary.toString('hex', start, end);
}
// Like copy, but decode from a hex string
function fromHex(hex, binary, offset) {
if (binary) {
binary.write(hex, offset, "hex");
return binary;
}
return new Buffer(hex, 'hex');
}
function toBase64(binary, start, end) {
return binary.toString('base64', start, end);
}
function fromBase64(base64, binary, offset) {
if (binary) {
binary.write(base64, offset, 'base64');
return binary;
}
return new Buffer(base64, 'base64');
}
function nibbleToCode(nibble) {
nibble |= 0;
return (nibble + (nibble < 10 ? 0x30 : 0x57))|0;
}
function codeToNibble(code) {
code |= 0;
return (code - ((code & 0x40) ? 0x57 : 0x30))|0;
}
function toUnicode(binary, start, end) {
return binary.toString('utf8', start, end);
}
function fromUnicode(unicode, binary, offset) {
if (binary) {
binary.write(unicode, offset, 'utf8');
return binary;
}
return new Buffer(unicode, 'utf8');
}
function decodeHex(hex) {
var j = 0, l = hex.length;
var raw = "";
while (j < l) {
raw += String.fromCharCode(
(codeToNibble(hex.charCodeAt(j++)) << 4)
| codeToNibble(hex.charCodeAt(j++))
);
}
return raw;
}
function encodeHex(raw) {
var hex = "";
var length = raw.length;
for (var i = 0; i < length; i++) {
var byte = raw.charCodeAt(i);
hex += String.fromCharCode(nibbleToCode(byte >> 4)) +
String.fromCharCode(nibbleToCode(byte & 0xf));
}
return hex;
}
function decodeBase64(base64) {
return (new Buffer(base64, 'base64')).toString('binary');
}
function encodeBase64(raw) {
return (new Buffer(raw, 'binary')).toString('base64');
}
function decodeUtf8(utf8) {
return (new Buffer(utf8, 'binary')).toString('utf8');
}
function encodeUtf8(unicode) {
return (new Buffer(unicode, 'utf8')).toString('binary');
}
function toRaw(binary, start, end) {
return binary.toString('binary', start, end);
}
function fromRaw(raw, binary, offset) {
if (binary) {
binary.write(raw, offset, 'binary');
return binary;
}
return new Buffer(raw, 'binary');
}
function toArray(binary, start, end) {
if (end === undefined) {
end = binary.length;
if (start === undefined) start = 0;
}
var length = end - start;
var array = new Array(length);
for (var i = 0; i < length; i++) {
array[i] = binary[i + start];
}
return array;
}
function fromArray(array, binary, offset) {
if (!binary) return new Buffer(array);
var length = array.length;
if (offset === undefined) {
offset = 0;
}
for (var i = 0; i < length; i++) {
binary[offset + i] = array[i];
}
return binary;
}

246
api.hyungi.net/node_modules/bodec/bodec.js generated vendored Normal file
View File

@@ -0,0 +1,246 @@
"use strict";
/*global escape, unescape*/
var isNode = typeof process === 'object' &&
typeof process.versions === 'object' &&
process.versions.node &&
process.__atom_type !== "renderer";
if (isNode) {
var nodeRequire = require; // Prevent mine.js from seeing this require
module.exports = nodeRequire('./bodec-node.js');
}
else {
// This file must be served with UTF-8 encoding for the utf8 codec to work.
module.exports = {
Binary: Uint8Array,
// Utility functions
isBinary: isBinary,
create: create,
join: join,
// Binary input and output
copy: copy,
slice: slice,
// String input and output
toRaw: toRaw,
fromRaw: fromRaw,
toUnicode: toUnicode,
fromUnicode: fromUnicode,
toHex: toHex,
fromHex: fromHex,
toBase64: toBase64,
fromBase64: fromBase64,
// Array input and output
toArray: toArray,
fromArray: fromArray,
// Raw <-> Hex-encoded codec
decodeHex: decodeHex,
encodeHex: encodeHex,
decodeBase64: decodeBase64,
encodeBase64: encodeBase64,
// Unicode <-> Utf8-encoded-raw codec
encodeUtf8: encodeUtf8,
decodeUtf8: decodeUtf8,
// Hex <-> Nibble codec
nibbleToCode: nibbleToCode,
codeToNibble: codeToNibble
};
}
function isBinary(value) {
return value &&
typeof value === "object" &&
value instanceof Uint8Array || value.constructor.name === "Uint8Array";
}
function create(length) {
return new Uint8Array(length);
}
function join(chunks) {
var length = chunks.length;
var total = 0;
for (var i = 0; i < length; i++) {
total += chunks[i].length;
}
var binary = create(total);
var offset = 0;
for (i = 0; i < length; i++) {
var chunk = chunks[i];
copy(chunk, binary, offset);
offset += chunk.length;
}
return binary;
}
function slice(binary, start, end) {
if (end === undefined) {
end = binary.length;
if (start === undefined) start = 0;
}
return binary.subarray(start, end);
}
function copy(source, binary, offset) {
var length = source.length;
if (offset === undefined) {
offset = 0;
if (binary === undefined) binary = create(length);
}
for (var i = 0; i < length; i++) {
binary[i + offset] = source[i];
}
return binary;
}
// Like slice, but encode as a hex string
function toHex(binary, start, end) {
var hex = "";
if (end === undefined) {
end = binary.length;
if (start === undefined) start = 0;
}
for (var i = start; i < end; i++) {
var byte = binary[i];
hex += String.fromCharCode(nibbleToCode(byte >> 4)) +
String.fromCharCode(nibbleToCode(byte & 0xf));
}
return hex;
}
// Like copy, but decode from a hex string
function fromHex(hex, binary, offset) {
var length = hex.length / 2;
if (offset === undefined) {
offset = 0;
if (binary === undefined) binary = create(length);
}
var j = 0;
for (var i = 0; i < length; i++) {
binary[offset + i] = (codeToNibble(hex.charCodeAt(j++)) << 4)
| codeToNibble(hex.charCodeAt(j++));
}
return binary;
}
function toBase64(binary, start, end) {
return btoa(toRaw(binary, start, end));
}
function fromBase64(base64, binary, offset) {
return fromRaw(atob(base64), binary, offset);
}
function nibbleToCode(nibble) {
nibble |= 0;
return (nibble + (nibble < 10 ? 0x30 : 0x57))|0;
}
function codeToNibble(code) {
code |= 0;
return (code - ((code & 0x40) ? 0x57 : 0x30))|0;
}
function toUnicode(binary, start, end) {
return decodeUtf8(toRaw(binary, start, end));
}
function fromUnicode(unicode, binary, offset) {
return fromRaw(encodeUtf8(unicode), binary, offset);
}
function decodeHex(hex) {
var j = 0, l = hex.length;
var raw = "";
while (j < l) {
raw += String.fromCharCode(
(codeToNibble(hex.charCodeAt(j++)) << 4)
| codeToNibble(hex.charCodeAt(j++))
);
}
return raw;
}
function encodeHex(raw) {
var hex = "";
var length = raw.length;
for (var i = 0; i < length; i++) {
var byte = raw.charCodeAt(i);
hex += String.fromCharCode(nibbleToCode(byte >> 4)) +
String.fromCharCode(nibbleToCode(byte & 0xf));
}
return hex;
}
function decodeBase64(base64) {
return atob(base64);
}
function encodeBase64(raw) {
return btoa(raw);
}
function decodeUtf8(utf8) {
return decodeURIComponent(escape(utf8));
}
function encodeUtf8(unicode) {
return unescape(encodeURIComponent(unicode));
}
function toRaw(binary, start, end) {
var raw = "";
if (end === undefined) {
end = binary.length;
if (start === undefined) start = 0;
}
for (var i = start; i < end; i++) {
raw += String.fromCharCode(binary[i]);
}
return raw;
}
function fromRaw(raw, binary, offset) {
var length = raw.length;
if (offset === undefined) {
offset = 0;
if (binary === undefined) binary = create(length);
}
for (var i = 0; i < length; i++) {
binary[offset + i] = raw.charCodeAt(i);
}
return binary;
}
function toArray(binary, start, end) {
if (end === undefined) {
end = binary.length;
if (start === undefined) start = 0;
}
var length = end - start;
var array = new Array(length);
for (var i = 0; i < length; i++) {
array[i] = binary[i + start];
}
return array;
}
function fromArray(array, binary, offset) {
var length = array.length;
if (offset === undefined) {
offset = 0;
if (binary === undefined) binary = create(length);
}
for (var i = 0; i < length; i++) {
binary[offset + i] = array[i];
}
return binary;
}

10
api.hyungi.net/node_modules/bodec/package.json generated vendored Normal file
View File

@@ -0,0 +1,10 @@
{
"name": "bodec",
"version": "0.1.0",
"main": "bodec.js",
"repository": {
"type": "git",
"url": "https://github.com/creationix/bodec.git"
},
"license": "MIT"
}