8.0.5 • Published 10 months ago

@noqcks/generated v8.0.5

Weekly downloads
117
License
MIT
Repository
github
Last release
10 months ago

Generated

Not all files are written by humans. Generated will detect files that have been generated by computers. Items like a package-lock.json or files in node_modules.

For a full list of generated files detected, see generated.ts.

This project is largely a node.js port of the generated functionality of GitHub linguist.

Installation

pnpm add @noqcks/generated

Usage

See file scripts/example.ts for an example of usage.

import * as fs from "fs";
import * as path from "path";
import Generated from "@noqcks/generated";

const name: string = "JavaScript/json2_backbone.js";
const filePath: string = path.join("./samples", name);
const contents = fs.readFileSync(filePath, "utf8");

const g: Generated = new Generated(name, Buffer.from(contents));

console.log(g.isGenerated());

LICENSE

MIT © 2025 Benji Visser benji@093b.org

8.0.5

10 months ago

8.0.4

10 months ago

8.0.1

10 months ago

8.0.0

10 months ago

7.23.1

10 months ago

7.23.0

3 years ago

1.0.1

4 years ago

1.0.0

7 years ago

0.1.5

7 years ago