Add license header everywhere

This commit is contained in:
Holly Stubbs 2023-10-24 12:04:07 +01:00
parent 558c3c2025
commit aabf5cdbb3
12 changed files with 43 additions and 0 deletions

View file

@ -1,3 +1,6 @@
// Copyright (c) Holly Stubbs (tgpholly) - Licensed under MIT
// Check LICENSE in repository root for more information.
export class ReaderBase { export class ReaderBase {
public buffer:Buffer; public buffer:Buffer;
public offset:number; public offset:number;

View file

@ -1,3 +1,6 @@
// Copyright (c) Holly Stubbs (tgpholly) - Licensed under MIT
// Check LICENSE in repository root for more information.
export class WriterBase { export class WriterBase {
public buffer:Buffer; public buffer:Buffer;
public offset:number; public offset:number;

View file

@ -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 { IReader } from "./readers/IReader";
import { IWriter } from "./writers/IWriter"; import { IWriter } from "./writers/IWriter";
import { ReaderBE } from "./readers/ReaderBE"; import { ReaderBE } from "./readers/ReaderBE";

View file

@ -1,3 +1,6 @@
// Copyright (c) Holly Stubbs (tgpholly) - Licensed under MIT
// Check LICENSE in repository root for more information.
export interface IReader { export interface IReader {
readBuffer(bytes:number): Buffer, readBuffer(bytes:number): Buffer,
readUint8Array(bytes:number): Uint8Array, readUint8Array(bytes:number): Uint8Array,

View file

@ -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 { IReader } from "./IReader";
import { ReaderBase } from "../base/ReaderBase"; import { ReaderBase } from "../base/ReaderBase";

View file

@ -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 { IReader } from "./IReader";
import { ReaderBase } from "../base/ReaderBase"; import { ReaderBase } from "../base/ReaderBase";

View file

@ -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"; import { readdirSync, rmSync, renameSync } from "fs";
const libFiles = readdirSync("./lib"); const libFiles = readdirSync("./lib");

View file

@ -1,3 +1,6 @@
// Copyright (c) Holly Stubbs (tgpholly) - Licensed under MIT
// Check LICENSE in repository root for more information.
// fileSmasher ~.~ // fileSmasher ~.~
// for when you're just too lazy to // for when you're just too lazy to
// do it properly. // do it properly.

10
tooling/mangle.ts Normal file
View 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}`);
})();

View file

@ -1,3 +1,6 @@
// Copyright (c) Holly Stubbs (tgpholly) - Licensed under MIT
// Check LICENSE in repository root for more information.
export interface IWriter { export interface IWriter {
toBuffer(): Buffer, toBuffer(): Buffer,
toString(): string, toString(): string,

View file

@ -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 { IWriter } from "./IWriter";
import { WriterBase } from "../base/WriterBase"; import { WriterBase } from "../base/WriterBase";

View file

@ -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 { IWriter } from "./IWriter";
import { WriterBase } from "../base/WriterBase"; import { WriterBase } from "../base/WriterBase";