@typescript-calendar-lib/cli 0.1.1 → 0.2.2
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/LICENSE +21 -0
- package/package.json +8 -4
- package/src/bin.ts +5 -5
- package/src/calendar.ts +1 -1
- package/src/month.ts +1 -1
- package/src/types.ts +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 nazozokc
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-calendar-lib/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
|
-
"typescript-calendar": "src/bin.ts"
|
|
6
|
+
"typescript-calendar-lib": "src/bin.ts"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/nazozokc/typescript-calendar-lib"
|
|
7
11
|
},
|
|
8
12
|
"main": "src/index.ts",
|
|
9
13
|
"types": "src/index.ts",
|
|
@@ -12,10 +16,10 @@
|
|
|
12
16
|
"!src/*.test.ts"
|
|
13
17
|
],
|
|
14
18
|
"dependencies": {
|
|
15
|
-
"@typescript-calendar/core": "
|
|
19
|
+
"@typescript-calendar-lib/core": "0.2.2",
|
|
16
20
|
"cli-table3": "^0.6.5"
|
|
17
21
|
},
|
|
18
22
|
"peerDependencies": {
|
|
19
23
|
"typescript": "^5"
|
|
20
24
|
}
|
|
21
|
-
}
|
|
25
|
+
}
|
package/src/bin.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type {
|
|
|
3
3
|
HighlightStyle,
|
|
4
4
|
Locale,
|
|
5
5
|
WeekStart,
|
|
6
|
-
} from "@typescript-calendar/core";
|
|
6
|
+
} from "@typescript-calendar-lib/core";
|
|
7
7
|
import { calendar } from "./calendar.ts";
|
|
8
8
|
import type { ColorSchemeName, ThemeName } from "./theme.ts";
|
|
9
9
|
|
|
@@ -183,11 +183,11 @@ export function parseArgs(args: readonly string[]): ParseResult {
|
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
export function printUsage(): string {
|
|
186
|
-
return `Usage: typescript-calendar [YYYY] [MM] [options]
|
|
186
|
+
return `Usage: typescript-calendar-lib [YYYY] [MM] [options]
|
|
187
187
|
|
|
188
|
-
typescript-calendar Render the current month
|
|
189
|
-
typescript-calendar 2026 Render the current month of 2026
|
|
190
|
-
typescript-calendar 2026 9 Render September 2026
|
|
188
|
+
typescript-calendar-lib Render the current month
|
|
189
|
+
typescript-calendar-lib 2026 Render the current month of 2026
|
|
190
|
+
typescript-calendar-lib 2026 9 Render September 2026
|
|
191
191
|
|
|
192
192
|
Options:
|
|
193
193
|
--theme <name> Look: default | modern (default: default)
|
package/src/calendar.ts
CHANGED
package/src/month.ts
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getWeekdayHeaders,
|
|
5
5
|
isDateInRange,
|
|
6
6
|
isSameDay,
|
|
7
|
-
} from "@typescript-calendar/core";
|
|
7
|
+
} from "@typescript-calendar-lib/core";
|
|
8
8
|
import { centerText, centerTextFull, padStartWidth } from "./align.ts";
|
|
9
9
|
import { colorize } from "./ansi.ts";
|
|
10
10
|
import { bottomBorder, innerWidth, separatorRow, topBorder } from "./border.ts";
|
package/src/types.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type {
|
|
|
3
3
|
CalendarRangeOptions as CoreCalendarRangeOptions,
|
|
4
4
|
CalendarYearOptions as CoreCalendarYearOptions,
|
|
5
5
|
RenderMonthOptions as CoreRenderMonthOptions,
|
|
6
|
-
} from "@typescript-calendar/core";
|
|
6
|
+
} from "@typescript-calendar-lib/core";
|
|
7
7
|
import type {
|
|
8
8
|
CliPalette,
|
|
9
9
|
CliTheme,
|