nepali-date-kit 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/antd.cjs +1 -0
- package/dist/adapters/antd.d.cts +2 -0
- package/dist/adapters/antd.d.ts +2 -0
- package/dist/adapters/antd.js +0 -0
- package/dist/core.cjs +1 -0
- package/dist/core.d.cts +22 -0
- package/dist/core.d.ts +22 -0
- package/dist/core.js +1 -0
- package/dist/react-native.cjs +1 -0
- package/dist/react-native.d.cts +2 -0
- package/dist/react-native.d.ts +2 -0
- package/dist/react-native.js +0 -0
- package/dist/react.cjs +1 -0
- package/dist/react.d.cts +2 -0
- package/dist/react.d.ts +2 -0
- package/dist/react.js +0 -0
- package/package.json +62 -0
- package/readme.md +33 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';
|
|
File without changes
|
package/dist/core.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var u={year:1944,month:1,day:1},o={year:2e3,month:9,day:17},a=[[30,32,31,32,31,30,30,30,29,30,29,31],[31,31,32,31,32,31,29,30,30,29,30,30],[30,32,31,32,31,30,30,30,29,30,29,31],[31,31,32,31,31,31,30,29,30,29,30,30],[31,31,32,32,31,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[30,32,31,32,31,30,30,30,29,30,29,31],[31,31,32,31,31,31,30,29,30,29,30,30],[31,31,32,32,31,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[31,31,31,32,31,31,29,30,30,29,29,31],[31,31,32,31,31,31,30,29,30,29,30,30],[31,31,32,32,31,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[31,31,31,32,31,31,29,30,30,29,30,30],[31,31,32,31,31,31,30,29,30,29,30,30],[31,31,32,32,31,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[31,31,31,32,31,31,29,30,30,29,30,30],[31,31,32,31,31,31,30,29,30,29,30,30],[31,32,31,32,31,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,30,29,31],[31,31,31,32,31,31,30,29,30,29,30,30],[31,31,32,31,31,31,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,30],[31,32,31,32,31,30,30,30,29,30,29,31],[31,31,31,32,31,31,30,29,30,29,30,30],[31,31,32,31,31,31,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[30,32,31,32,31,30,30,30,29,30,29,31],[31,31,32,31,31,31,30,29,30,29,30,30],[31,31,32,31,32,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[30,32,31,32,31,30,30,30,29,30,29,31],[31,31,32,31,31,31,30,29,30,29,30,30],[31,31,32,32,31,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[30,32,31,32,31,31,29,30,30,29,29,31],[31,31,32,31,31,31,30,29,30,29,30,30],[31,31,32,32,31,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[31,31,31,32,31,31,29,30,30,29,30,30],[31,31,32,31,31,31,30,29,30,29,30,30],[31,31,32,32,31,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[31,31,31,32,31,31,29,30,30,29,30,30],[31,31,32,31,31,31,30,29,30,29,30,30],[31,32,31,32,31,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[31,31,31,32,31,31,30,29,30,29,30,30],[31,31,32,31,31,31,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,30],[31,32,31,32,31,30,30,30,29,30,29,31],[31,31,31,32,31,31,30,29,30,29,30,30],[31,31,32,31,31,31,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,30],[31,32,31,32,31,30,30,30,29,30,29,31],[31,31,32,31,31,31,30,29,30,29,30,30],[31,31,32,31,32,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[30,32,31,32,31,30,30,30,29,30,29,31],[31,31,32,31,31,31,30,29,30,29,30,30],[31,31,32,32,31,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[31,31,31,32,31,31,29,30,29,30,29,31],[31,31,32,31,31,31,30,29,30,29,30,30],[31,31,32,32,31,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[31,31,31,32,31,31,29,30,30,29,29,31],[31,31,32,31,31,31,30,29,30,29,30,30],[31,31,32,32,31,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[31,31,31,32,31,31,29,30,30,29,30,30],[31,31,32,31,31,31,30,29,30,29,30,30],[31,32,31,32,31,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[31,31,31,32,31,31,30,29,30,29,30,30],[31,31,32,31,31,31,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,30],[31,32,31,32,31,30,30,30,29,30,29,31],[31,31,31,32,31,31,30,29,30,29,30,30],[31,31,32,31,31,31,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,30],[31,32,31,32,31,30,30,30,29,30,29,31],[31,31,32,31,31,31,30,29,30,29,30,30],[31,31,32,31,31,30,30,30,29,30,30,30],[31,31,32,31,31,30,30,30,29,30,30,30],[31,32,31,32,30,31,30,30,29,30,30,30],[30,32,31,32,31,30,30,30,29,30,30,30],[31,31,32,31,31,31,30,30,30,30,30,30],[30,31,32,32,30,31,30,30,29,30,30,30],[30,32,31,32,31,30,30,30,29,30,30,30],[30,32,31,32,31,30,30,30,29,30,30,30],[31,31,32,31,31,31,30,30,29,30,30,30],[30,31,32,32,31,30,30,30,29,30,30,30],[30,32,31,32,31,30,30,30,29,30,30,30],[31,31,32,31,31,30,30,30,29,30,30,30],[31,31,32,31,31,31,30,29,30,30,30,30],[30,31,32,32,31,30,30,29,30,29,30,30],[31,32,31,31,31,30,30,30,29,30,30,30],[31,31,32,31,31,31,29,30,29,30,29,31],[31,32,31,32,31,30,30,30,29,29,30,31]],d=2e3+a.length-1;function A(e){return e%4===0&&(e%100!==0||e%400===0)}function f(e,r){if(r<1||r>12)throw new RangeError("Invalid AD month");let t=[31,28,31,30,31,30,31,31,30,31,30,31];return r===2&&A(e)?29:t[r-1]}function D(e){if(e.month<1||e.month>12)throw new RangeError("Invalid AD month");let r=f(e.year,e.month);if(e.day<1||e.day>r)throw new RangeError("Invalid AD day");if(e.year<u.year)throw new RangeError("AD out of range")}function c(e){if(e.year<o.year||e.year>d)throw new RangeError("BS out of range");if(e.month<1||e.month>12)throw new RangeError("Invalid BS month");let r=a[e.year-2e3][e.month-1];if(e.day<1||e.day>r)throw new RangeError("Invalid BS day")}function s(e){let r=0;for(let t=u.year;t<e.year;t++)r+=A(t)?366:365;for(let t=1;t<e.month;t++)r+=f(e.year,t);return r+(e.day-1)}function S(e){let r=0;if(e.year===o.year){if(e.month<o.month||e.month===o.month&&e.day<o.day)throw new RangeError("BS before supported range");for(let n=o.month;n<e.month;n++)r+=a[0][n-1];return r+(e.day-o.day)}for(let n=o.month;n<=12;n++)r+=a[0][n-1];r-=o.day;for(let n=o.year+1;n<e.year;n++)r+=a[n-2e3].reduce((m,i)=>m+i,0);let t=e.year-2e3;for(let n=1;n<e.month;n++)r+=a[t][n-1];return r+(e.day-1)}function B(e){let r=u.year,t=u.month,n=u.day;for(;e>0;)n++,n>f(r,t)&&(n=1,t++,t>12&&(t=1,r++)),e--;return {year:r,month:t,day:n}}function R(e){let r=o.year,t=o.month,n=o.day;for(;e>0;)n++,n>a[r-2e3][t-1]&&(n=1,t++,t>12&&(t=1,r++)),e--;return {year:r,month:t,day:n}}function b(e){return D(e),R(s(e))}function Y(e){return c(e),B(S(e))}var T=6;function _(e,r){let t=0;for(let m=o.year;m<e;m++){let i=m-2e3;t+=a[i].reduce((h,l)=>h+l,0);}let n=e-2e3;for(let m=o.month;m<r;m++)t+=a[n][m-1];return t}function p(e,r){if(e<2e3||e>d)throw new RangeError("BS year out of range");if(r<1||r>12)throw new RangeError("Invalid BS month")}function v(e,r){p(e,r);let t=e-2e3,n=a[t][r-1],m=_(e,r),i=(T+m)%7;return {year:e,month:r,days:n,startDay:i}}exports.adToBs=b;exports.bsToAd=Y;exports.getNepaliMonth=v;
|
package/dist/core.d.cts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
interface AdDate {
|
|
2
|
+
year: number;
|
|
3
|
+
month: number;
|
|
4
|
+
day: number;
|
|
5
|
+
}
|
|
6
|
+
interface BsDate {
|
|
7
|
+
year: number;
|
|
8
|
+
month: number;
|
|
9
|
+
day: number;
|
|
10
|
+
}
|
|
11
|
+
declare function adToBs(ad: AdDate): BsDate;
|
|
12
|
+
declare function bsToAd(bs: BsDate): AdDate;
|
|
13
|
+
|
|
14
|
+
interface NepaliMonthMeta {
|
|
15
|
+
year: number;
|
|
16
|
+
month: number;
|
|
17
|
+
days: number;
|
|
18
|
+
startDay: number;
|
|
19
|
+
}
|
|
20
|
+
declare function getNepaliMonth(year: number, month: number): NepaliMonthMeta;
|
|
21
|
+
|
|
22
|
+
export { type AdDate, type BsDate, type NepaliMonthMeta, adToBs, bsToAd, getNepaliMonth };
|
package/dist/core.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
interface AdDate {
|
|
2
|
+
year: number;
|
|
3
|
+
month: number;
|
|
4
|
+
day: number;
|
|
5
|
+
}
|
|
6
|
+
interface BsDate {
|
|
7
|
+
year: number;
|
|
8
|
+
month: number;
|
|
9
|
+
day: number;
|
|
10
|
+
}
|
|
11
|
+
declare function adToBs(ad: AdDate): BsDate;
|
|
12
|
+
declare function bsToAd(bs: BsDate): AdDate;
|
|
13
|
+
|
|
14
|
+
interface NepaliMonthMeta {
|
|
15
|
+
year: number;
|
|
16
|
+
month: number;
|
|
17
|
+
days: number;
|
|
18
|
+
startDay: number;
|
|
19
|
+
}
|
|
20
|
+
declare function getNepaliMonth(year: number, month: number): NepaliMonthMeta;
|
|
21
|
+
|
|
22
|
+
export { type AdDate, type BsDate, type NepaliMonthMeta, adToBs, bsToAd, getNepaliMonth };
|
package/dist/core.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var u={year:1944,month:1,day:1},o={year:2e3,month:9,day:17},a=[[30,32,31,32,31,30,30,30,29,30,29,31],[31,31,32,31,32,31,29,30,30,29,30,30],[30,32,31,32,31,30,30,30,29,30,29,31],[31,31,32,31,31,31,30,29,30,29,30,30],[31,31,32,32,31,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[30,32,31,32,31,30,30,30,29,30,29,31],[31,31,32,31,31,31,30,29,30,29,30,30],[31,31,32,32,31,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[31,31,31,32,31,31,29,30,30,29,29,31],[31,31,32,31,31,31,30,29,30,29,30,30],[31,31,32,32,31,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[31,31,31,32,31,31,29,30,30,29,30,30],[31,31,32,31,31,31,30,29,30,29,30,30],[31,31,32,32,31,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[31,31,31,32,31,31,29,30,30,29,30,30],[31,31,32,31,31,31,30,29,30,29,30,30],[31,32,31,32,31,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,30,29,31],[31,31,31,32,31,31,30,29,30,29,30,30],[31,31,32,31,31,31,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,30],[31,32,31,32,31,30,30,30,29,30,29,31],[31,31,31,32,31,31,30,29,30,29,30,30],[31,31,32,31,31,31,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[30,32,31,32,31,30,30,30,29,30,29,31],[31,31,32,31,31,31,30,29,30,29,30,30],[31,31,32,31,32,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[30,32,31,32,31,30,30,30,29,30,29,31],[31,31,32,31,31,31,30,29,30,29,30,30],[31,31,32,32,31,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[30,32,31,32,31,31,29,30,30,29,29,31],[31,31,32,31,31,31,30,29,30,29,30,30],[31,31,32,32,31,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[31,31,31,32,31,31,29,30,30,29,30,30],[31,31,32,31,31,31,30,29,30,29,30,30],[31,31,32,32,31,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[31,31,31,32,31,31,29,30,30,29,30,30],[31,31,32,31,31,31,30,29,30,29,30,30],[31,32,31,32,31,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[31,31,31,32,31,31,30,29,30,29,30,30],[31,31,32,31,31,31,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,30],[31,32,31,32,31,30,30,30,29,30,29,31],[31,31,31,32,31,31,30,29,30,29,30,30],[31,31,32,31,31,31,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,30],[31,32,31,32,31,30,30,30,29,30,29,31],[31,31,32,31,31,31,30,29,30,29,30,30],[31,31,32,31,32,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[30,32,31,32,31,30,30,30,29,30,29,31],[31,31,32,31,31,31,30,29,30,29,30,30],[31,31,32,32,31,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[31,31,31,32,31,31,29,30,29,30,29,31],[31,31,32,31,31,31,30,29,30,29,30,30],[31,31,32,32,31,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[31,31,31,32,31,31,29,30,30,29,29,31],[31,31,32,31,31,31,30,29,30,29,30,30],[31,31,32,32,31,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[31,31,31,32,31,31,29,30,30,29,30,30],[31,31,32,31,31,31,30,29,30,29,30,30],[31,32,31,32,31,30,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,31],[31,31,31,32,31,31,30,29,30,29,30,30],[31,31,32,31,31,31,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,30],[31,32,31,32,31,30,30,30,29,30,29,31],[31,31,31,32,31,31,30,29,30,29,30,30],[31,31,32,31,31,31,30,29,30,29,30,30],[31,32,31,32,31,30,30,30,29,29,30,30],[31,32,31,32,31,30,30,30,29,30,29,31],[31,31,32,31,31,31,30,29,30,29,30,30],[31,31,32,31,31,30,30,30,29,30,30,30],[31,31,32,31,31,30,30,30,29,30,30,30],[31,32,31,32,30,31,30,30,29,30,30,30],[30,32,31,32,31,30,30,30,29,30,30,30],[31,31,32,31,31,31,30,30,30,30,30,30],[30,31,32,32,30,31,30,30,29,30,30,30],[30,32,31,32,31,30,30,30,29,30,30,30],[30,32,31,32,31,30,30,30,29,30,30,30],[31,31,32,31,31,31,30,30,29,30,30,30],[30,31,32,32,31,30,30,30,29,30,30,30],[30,32,31,32,31,30,30,30,29,30,30,30],[31,31,32,31,31,30,30,30,29,30,30,30],[31,31,32,31,31,31,30,29,30,30,30,30],[30,31,32,32,31,30,30,29,30,29,30,30],[31,32,31,31,31,30,30,30,29,30,30,30],[31,31,32,31,31,31,29,30,29,30,29,31],[31,32,31,32,31,30,30,30,29,29,30,31]],d=2e3+a.length-1;function A(e){return e%4===0&&(e%100!==0||e%400===0)}function f(e,r){if(r<1||r>12)throw new RangeError("Invalid AD month");let t=[31,28,31,30,31,30,31,31,30,31,30,31];return r===2&&A(e)?29:t[r-1]}function D(e){if(e.month<1||e.month>12)throw new RangeError("Invalid AD month");let r=f(e.year,e.month);if(e.day<1||e.day>r)throw new RangeError("Invalid AD day");if(e.year<u.year)throw new RangeError("AD out of range")}function c(e){if(e.year<o.year||e.year>d)throw new RangeError("BS out of range");if(e.month<1||e.month>12)throw new RangeError("Invalid BS month");let r=a[e.year-2e3][e.month-1];if(e.day<1||e.day>r)throw new RangeError("Invalid BS day")}function s(e){let r=0;for(let t=u.year;t<e.year;t++)r+=A(t)?366:365;for(let t=1;t<e.month;t++)r+=f(e.year,t);return r+(e.day-1)}function S(e){let r=0;if(e.year===o.year){if(e.month<o.month||e.month===o.month&&e.day<o.day)throw new RangeError("BS before supported range");for(let n=o.month;n<e.month;n++)r+=a[0][n-1];return r+(e.day-o.day)}for(let n=o.month;n<=12;n++)r+=a[0][n-1];r-=o.day;for(let n=o.year+1;n<e.year;n++)r+=a[n-2e3].reduce((m,i)=>m+i,0);let t=e.year-2e3;for(let n=1;n<e.month;n++)r+=a[t][n-1];return r+(e.day-1)}function B(e){let r=u.year,t=u.month,n=u.day;for(;e>0;)n++,n>f(r,t)&&(n=1,t++,t>12&&(t=1,r++)),e--;return {year:r,month:t,day:n}}function R(e){let r=o.year,t=o.month,n=o.day;for(;e>0;)n++,n>a[r-2e3][t-1]&&(n=1,t++,t>12&&(t=1,r++)),e--;return {year:r,month:t,day:n}}function b(e){return D(e),R(s(e))}function Y(e){return c(e),B(S(e))}var T=6;function _(e,r){let t=0;for(let m=o.year;m<e;m++){let i=m-2e3;t+=a[i].reduce((h,l)=>h+l,0);}let n=e-2e3;for(let m=o.month;m<r;m++)t+=a[n][m-1];return t}function p(e,r){if(e<2e3||e>d)throw new RangeError("BS year out of range");if(r<1||r>12)throw new RangeError("Invalid BS month")}function v(e,r){p(e,r);let t=e-2e3,n=a[t][r-1],m=_(e,r),i=(T+m)%7;return {year:e,month:r,days:n,startDay:i}}export{b as adToBs,Y as bsToAd,v as getNepaliMonth};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';
|
|
File without changes
|
package/dist/react.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';
|
package/dist/react.d.cts
ADDED
package/dist/react.d.ts
ADDED
package/dist/react.js
ADDED
|
File without changes
|
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "nepali-date-kit",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Lightweight Nepali (BS) date utilities with React and React Native support",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/core.d.ts",
|
|
13
|
+
"import": "./dist/core.js",
|
|
14
|
+
"require": "./dist/core.cjs"
|
|
15
|
+
},
|
|
16
|
+
"./react": {
|
|
17
|
+
"types": "./dist/react.d.ts",
|
|
18
|
+
"import": "./dist/react.js",
|
|
19
|
+
"require": "./dist/react.cjs"
|
|
20
|
+
},
|
|
21
|
+
"./react-native": {
|
|
22
|
+
"types": "./dist/react-native.d.ts",
|
|
23
|
+
"import": "./dist/react-native.js",
|
|
24
|
+
"require": "./dist/react-native.cjs"
|
|
25
|
+
},
|
|
26
|
+
"./adapters/antd": {
|
|
27
|
+
"types": "./dist/adapters/antd.d.ts",
|
|
28
|
+
"import": "./dist/adapters/antd.js",
|
|
29
|
+
"require": "./dist/adapters/antd.cjs"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "tsup",
|
|
34
|
+
"prepublishOnly": "npm run build"
|
|
35
|
+
},
|
|
36
|
+
"keywords": [
|
|
37
|
+
"nepali-date",
|
|
38
|
+
"nepali-date-kit",
|
|
39
|
+
"bs-ad",
|
|
40
|
+
"calendar",
|
|
41
|
+
"react",
|
|
42
|
+
"react-native"
|
|
43
|
+
],
|
|
44
|
+
"license": "MIT",
|
|
45
|
+
"author": {
|
|
46
|
+
"name": "Nischal-Ad",
|
|
47
|
+
"url": "https://github.com/nischal-ad"
|
|
48
|
+
},
|
|
49
|
+
"repository": {
|
|
50
|
+
"type": "git",
|
|
51
|
+
"url": "https://github.com/Nischal-Ad/nepali-date-kit"
|
|
52
|
+
},
|
|
53
|
+
"bugs": {
|
|
54
|
+
"url": "https://github.com/Nischal-Ad/nepali-date-kit/issues"
|
|
55
|
+
},
|
|
56
|
+
"homepage": "https://github.com/Nischal-Ad/nepali-date-kit#readme",
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@types/node": "^25.0.3",
|
|
59
|
+
"tsup": "^8.5.1",
|
|
60
|
+
"typescript": "^5.9.3"
|
|
61
|
+
}
|
|
62
|
+
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# 🇳🇵 nepali-date-kit
|
|
2
|
+
|
|
3
|
+
> **Lightweight Nepali (BS) date utilities for Web & Mobile**
|
|
4
|
+
> Convert dates, generate Nepali calendars, and use Nepali date pickers with **React, React Native, Ant Design, Formik, React Hook Form**, or anywhere you want.
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## ✨ Features
|
|
9
|
+
|
|
10
|
+
- 🔁 **Convert English (AD) ↔ Nepali (BS) dates**
|
|
11
|
+
- 📅 **Generate Nepali calendar data**
|
|
12
|
+
- ⚛️ **React support**
|
|
13
|
+
- 📱 **React Native support**
|
|
14
|
+
- 🧩 **Nepali Date Picker**
|
|
15
|
+
- 📅 **Nepali calendar**
|
|
16
|
+
- Fully supports **Ant Design Form**
|
|
17
|
+
- Works independently with **Formik**
|
|
18
|
+
- Works with **React Hook Form**
|
|
19
|
+
- Can be used with plain React state
|
|
20
|
+
- 🌳 **Tree-shakable**
|
|
21
|
+
- 🚀 **No dependencies**
|
|
22
|
+
- 📦 **ESM & CommonJS builds**
|
|
23
|
+
- 🧠 **Calendar-data driven (accurate by design)**
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 📦 Installation
|
|
28
|
+
|
|
29
|
+
### npm
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npm install nepali-date-kit
|
|
33
|
+
```
|