Skip to content

Commit

Permalink
Add license header everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
tgpholly committed Oct 24, 2023
1 parent 558c3c2 commit aabf5cd
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 0 deletions.
3 changes: 3 additions & 0 deletions base/ReaderBase.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 3 additions & 0 deletions base/WriterBase.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 3 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
3 changes: 3 additions & 0 deletions readers/IReader.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
3 changes: 3 additions & 0 deletions readers/ReaderBE.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
3 changes: 3 additions & 0 deletions readers/ReaderLE.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
3 changes: 3 additions & 0 deletions tooling/cleanup.ts
Original file line number Diff line number Diff line change
@@ -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");
Expand Down
3 changes: 3 additions & 0 deletions tooling/fileSmasher.ts
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
10 changes: 10 additions & 0 deletions tooling/mangle.ts
Original file line number Diff line number Diff line change
@@ -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}`);
})();
3 changes: 3 additions & 0 deletions writers/IWriter.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
3 changes: 3 additions & 0 deletions writers/WriterBE.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
3 changes: 3 additions & 0 deletions writers/WriterLE.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down

0 comments on commit aabf5cd

Please sign in to comment.