Gathering detailed insights and metrics for @types/nanotimer
Gathering detailed insights and metrics for @types/nanotimer
Gathering detailed insights and metrics for @types/nanotimer
Gathering detailed insights and metrics for @types/nanotimer
The repository for high quality TypeScript type definitions.
npm install @types/nanotimer
Typescript
Module System
TypeScript (99.84%)
JavaScript (0.15%)
Shell (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
50,054 Stars
89,753 Commits
30,432 Forks
640 Watchers
6 Branches
9,957 Contributors
Updated on Jul 17, 2025
Latest Version
0.3.2
Package Id
@types/nanotimer@0.3.2
Unpacked Size
5.10 kB
Size
1.91 kB
File Count
5
Published on
Nov 07, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
npm install --save @types/nanotimer
This package contains type definitions for nanotimer (https://github.com/Krb686/nanotimer).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nanotimer.
1declare namespace NanoTimer { 2 interface TimeoutResults { 3 waitTime: number; 4 } 5} 6 7declare class NanoTimer { 8 /** 9 * Creates an instance of NanoTimer. 10 * @param log - if true, will enable logging. 11 */ 12 constructor(log?: boolean); 13 14 /** 15 * Call the task after the waiting the the timeout specified. 16 */ 17 setTimeout( 18 task: (...args: any[]) => void, 19 args: any[] | string, 20 timeout: string, 21 callback?: (results: NanoTimer.TimeoutResults) => void, 22 ): void; 23 24 /** 25 * Clears current running timeOut. 26 */ 27 clearTimeout(): void; 28 29 /** 30 * Call the task at the regular interval specified in interval. 31 */ 32 setInterval( 33 task: (...args: any[]) => void, 34 args: any[] | string, 35 interval: string, 36 callback?: (error: Error) => void, 37 ): void; 38 39 /** 40 * Clears current running interval. 41 */ 42 clearInterval(): void; 43 44 /** 45 * Calculate the time it tooks to execute the task. 46 */ 47 time( 48 task: (cb: () => void) => void, 49 args: string | any[], 50 interval: string, 51 callback?: (error: Error) => void, 52 ): number; 53 54 /** 55 * Returns true if the timer currently has a scheduled timeout, or false otherwise 56 */ 57 hasTimeout(): boolean; 58} 59 60export = NanoTimer; 61
These definitions were written by Samuel Bodin.
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
Found 27/30 approved changesets -- score normalized to 9
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More