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 {
|
export class ReaderBase {
|
||||||
public buffer:Buffer;
|
public buffer:Buffer;
|
||||||
public offset:number;
|
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 {
|
export class WriterBase {
|
||||||
public buffer:Buffer;
|
public buffer:Buffer;
|
||||||
public offset:number;
|
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 { IReader } from "./readers/IReader";
|
||||||
import { IWriter } from "./writers/IWriter";
|
import { IWriter } from "./writers/IWriter";
|
||||||
import { ReaderBE } from "./readers/ReaderBE";
|
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 {
|
export interface IReader {
|
||||||
readBuffer(bytes:number): Buffer,
|
readBuffer(bytes:number): Buffer,
|
||||||
readUint8Array(bytes:number): Uint8Array,
|
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 { IReader } from "./IReader";
|
||||||
import { ReaderBase } from "../base/ReaderBase";
|
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 { IReader } from "./IReader";
|
||||||
import { ReaderBase } from "../base/ReaderBase";
|
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";
|
import { readdirSync, rmSync, renameSync } from "fs";
|
||||||
|
|
||||||
const libFiles = readdirSync("./lib");
|
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 ~.~
|
// 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
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 {
|
export interface IWriter {
|
||||||
toBuffer(): Buffer,
|
toBuffer(): Buffer,
|
||||||
toString(): string,
|
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 { IWriter } from "./IWriter";
|
||||||
import { WriterBase } from "../base/WriterBase";
|
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 { IWriter } from "./IWriter";
|
||||||
import { WriterBase } from "../base/WriterBase";
|
import { WriterBase } from "../base/WriterBase";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue