Add license header everywhere
This commit is contained in:
parent
558c3c2025
commit
aabf5cdbb3
12 changed files with 43 additions and 0 deletions
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Holly Stubbs (tgpholly) - Licensed under MIT
|
||||
// Check LICENSE in repository root for more information.
|
||||
|
||||
export class ReaderBase {
|
||||
public buffer:Buffer;
|
||||
public offset:number;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Holly Stubbs (tgpholly) - Licensed under MIT
|
||||
// Check LICENSE in repository root for more information.
|
||||
|
||||
export class WriterBase {
|
||||
public buffer:Buffer;
|
||||
public offset:number;
|
||||
|
|
3
index.ts
3
index.ts
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Holly Stubbs (tgpholly) - Licensed under MIT
|
||||
// Check LICENSE in repository root for more information.
|
||||
|
||||
import { IReader } from "./readers/IReader";
|
||||
import { IWriter } from "./writers/IWriter";
|
||||
import { ReaderBE } from "./readers/ReaderBE";
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Holly Stubbs (tgpholly) - Licensed under MIT
|
||||
// Check LICENSE in repository root for more information.
|
||||
|
||||
export interface IReader {
|
||||
readBuffer(bytes:number): Buffer,
|
||||
readUint8Array(bytes:number): Uint8Array,
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Holly Stubbs (tgpholly) - Licensed under MIT
|
||||
// Check LICENSE in repository root for more information.
|
||||
|
||||
import { IReader } from "./IReader";
|
||||
import { ReaderBase } from "../base/ReaderBase";
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Holly Stubbs (tgpholly) - Licensed under MIT
|
||||
// Check LICENSE in repository root for more information.
|
||||
|
||||
import { IReader } from "./IReader";
|
||||
import { ReaderBase } from "../base/ReaderBase";
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Holly Stubbs (tgpholly) - Licensed under MIT
|
||||
// Check LICENSE in repository root for more information.
|
||||
|
||||
import { readdirSync, rmSync, renameSync } from "fs";
|
||||
|
||||
const libFiles = readdirSync("./lib");
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Holly Stubbs (tgpholly) - Licensed under MIT
|
||||
// Check LICENSE in repository root for more information.
|
||||
|
||||
// fileSmasher ~.~
|
||||
// for when you're just too lazy to
|
||||
// do it properly.
|
||||
|
|
10
tooling/mangle.ts
Normal file
10
tooling/mangle.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
import { readFileSync, writeFileSync } from "fs";
|
||||
import { minify } from "terser";
|
||||
|
||||
(async () => {
|
||||
const mangled = await minify(readFileSync("./lib/index.js").toString(), {
|
||||
mangle: true,
|
||||
toplevel: true,
|
||||
});
|
||||
writeFileSync("./lib/index.min.js", `${mangled.code}`);
|
||||
})();
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Holly Stubbs (tgpholly) - Licensed under MIT
|
||||
// Check LICENSE in repository root for more information.
|
||||
|
||||
export interface IWriter {
|
||||
toBuffer(): Buffer,
|
||||
toString(): string,
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Holly Stubbs (tgpholly) - Licensed under MIT
|
||||
// Check LICENSE in repository root for more information.
|
||||
|
||||
import { IWriter } from "./IWriter";
|
||||
import { WriterBase } from "../base/WriterBase";
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Holly Stubbs (tgpholly) - Licensed under MIT
|
||||
// Check LICENSE in repository root for more information.
|
||||
|
||||
import { IWriter } from "./IWriter";
|
||||
import { WriterBase } from "../base/WriterBase";
|
||||
|
||||
|
|
Loading…
Reference in a new issue