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 {
public buffer:Buffer;
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 {
public buffer:Buffer;
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 { IWriter } from "./writers/IWriter";
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 {
readBuffer(bytes:number): Buffer,
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 { 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 { 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";
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 ~.~
// for when you're just too lazy to
// 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 {
toBuffer(): Buffer,
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 { 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 { WriterBase } from "../base/WriterBase";