Current collected state Current
Observed since 20 Oct, 19:43 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
3h-count
A utility program that displays some information about the given file(s).
A utility program that displays some information about the given file(s).
$ 3h-count src/**/*.*
[summary]
fileCount: 4
totalLineCount: 228
emptyLineCount: 30
nonemptyLineCount: 198
$ 3h-count --help
A utility program that displays some information about the given file(s).
Usage:
3h-count <action> [options] -- [globs...]
Actions:
<globs...> File(s) to include.
Options:
--help, -h Show help info.
--mode, -m <file|project> Display mode. (default: project)
--file, -f Shortcut for "--mode file".
--project, -p Shortcut for "--mode project".
--root, -r <path> The root directory in which to search.
--include-dot-files, -d Include files whose name begin with a period.
--no-summary, -S Omit summary section in file mode.
-- [globs...] Additional file(s) to include.
export interface CountFileOptions {
filePath: string;
/**
* @default {false}
*/
noDisplay?: boolean;
}
export interface CountFileResult {
totalLineCount: number;
emptyLineCount: number;
nonemptyLineCount: number;
}
export declare const countFile: (options: CountFileOptions) => Promise<CountFileResult>;
export type CountGlobMode = 'file' | 'project';
export interface CountGlobOptions {
pattern: string[] | string;
/**
* @default {'project'}
*/
mode?: CountGlobMode;
cwd?: string;
/**
* @default {false}
*/
noDisplay?: boolean;
/**
* @default {false}
*/
noSummary?: boolean;
/**
* @default {false}
*/
includeDotFiles?: boolean;
}
export interface CountGlobResult {
results: CountFileResult[];
fileCount: number;
totalLineCount: number;
emptyLineCount: number;
nonemptyLineCount: number;
}
export declare const countGlob: (options: CountGlobOptions) => Promise<CountGlobResult>;
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
3h-cliEnvironment{
"local_name": "3h-cli",
"alias": false,
"peer_metadata": null
} | ^4.0.0 | runtime |
fast-globEnvironment{
"local_name": "fast-glob",
"alias": false,
"peer_metadata": null
} | ^3.3.1 | runtime |
Source distribution
{
"integrity": "sha512-TNlFHFABFtzohOaCSXfnBwDSB2+9w3FuVkZqtD14BYaQSZ2WC4TsA3tpzMNZg4Ob8SljP/aOdfRMOslojAvjNQ==",
"shasum": "66c38231592853718b01edd256f59985acaed7bb",
"tarball": "https://registry.npmjs.org/3h-count/-/3h-count-0.1.1.tgz",
"fileCount": 8,
"unpackedSize": 9967,
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEYCIQDIkfD6Xfr8VYT2uvJ3SAQrlrunz8EX3XrzLf1fAaWmvwIhANINxalU7xKaEK0RR5hXozBUwJN/pPCMAgn+Tl8trUyv"
}
]
}Observed since 20 Oct, 19:43 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:f6ca6f285a69a5b81d9c65e02b68cbf7ddcc2535edee702c8be1178b2b8561f4