Gathering detailed insights and metrics for @types/moment-hijri
Gathering detailed insights and metrics for @types/moment-hijri
Gathering detailed insights and metrics for @types/moment-hijri
Gathering detailed insights and metrics for @types/moment-hijri
The repository for high quality TypeScript type definitions.
npm install @types/moment-hijri
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,033 Stars
89,737 Commits
30,434 Forks
640 Watchers
6 Branches
9,957 Contributors
Updated on Jul 14, 2025
Latest Version
2.1.4
Package Id
@types/moment-hijri@2.1.4
Unpacked Size
5.08 kB
Size
1.86 kB
File Count
5
Published on
Jan 26, 2024
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
1
npm install --save @types/moment-hijri
This package contains type definitions for moment-hijri (https://github.com/xsoh/moment-hijri).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/moment-hijri.
1import moment = require("moment");
2
3export = moment;
4
5declare module "moment" {
6 type IUnitOfTime = "iYear" | "iMonth" | "iDate";
7
8 function iDaysInMonth(year: number, month: number): number;
9
10 namespace iConvert {
11 interface GregorianResult {
12 gy: number;
13 gm: number;
14 gd: number;
15 }
16
17 interface HijriResult {
18 hy: number;
19 hm: number;
20 hd: number;
21 }
22
23 function toHijri(gy: number, gm: number, gd: number): HijriResult;
24 function toGregorian(hy: number, hm: number, hd: number): GregorianResult;
25 }
26
27 interface Moment {
28 startOf(unit: IUnitOfTime): Moment;
29 endOf(unit: IUnitOfTime): Moment;
30
31 add(amount: string | number, unit: IUnitOfTime): Moment;
32 subtract(amount: string | number, unit: IUnitOfTime): Moment;
33
34 iYear(y: number): Moment;
35 iYear(): number;
36 iMonth(m: number | string): Moment;
37 iMonth(): number;
38 iDate(d: number): Moment;
39 iDate(): number;
40 iWeek(d: number): Moment;
41 iWeek(): number;
42 iWeekYear(d: number): Moment;
43 iWeekYear(): number;
44 iDayOfYear(d: number): Moment;
45 iDayOfYear(): number;
46 iDaysInMonth(): number;
47 }
48}
49
These definitions were written by Alaa Masoud.
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-07
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