@jithinp96/time-converter 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/README.md +57 -0
  2. package/package.json +5 -3
package/README.md CHANGED
@@ -0,0 +1,57 @@
1
+ # @jithinp96/time-converter
2
+
3
+ A lightweight TypeScript utility package to convert UTC dates into any timezone using the native JavaScript `Intl.DateTimeFormat` API.
4
+
5
+ No external date libraries required.
6
+
7
+ ---
8
+
9
+ ## Features
10
+
11
+ - Convert UTC dates into any timezone
12
+ - Supports custom locale formatting
13
+ - Supports all `Intl.DateTimeFormat` options
14
+ - Zero external dependencies
15
+ - Works in Node.js and browsers
16
+ - TypeScript support included
17
+
18
+ ---
19
+
20
+ ## Installation
21
+
22
+ ```bash
23
+ npm install @jithinp96/time-converter
24
+ ```
25
+
26
+ ---
27
+
28
+ ## Usage
29
+
30
+ ```ts
31
+ import { convertUtcToTimezone } from "@jithinp96/time-converter";
32
+
33
+ const result = convertUtcToTimezone({
34
+ utcDate: new Date(),
35
+ timezone: "Asia/Kolkata",
36
+ options: {
37
+ dateStyle: "full",
38
+ timeStyle: "long",
39
+ },
40
+ });
41
+
42
+ console.log(result);
43
+ ```
44
+
45
+ ---
46
+
47
+ ## Example Output
48
+
49
+ ```txt
50
+ Thursday, May 14, 2026 at 3:30:00 PM IST
51
+ ```
52
+
53
+ ---
54
+
55
+ ## License
56
+
57
+ MIT
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@jithinp96/time-converter",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Convert UTC dates into different timezones",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",
8
- "files": ["dist"],
8
+ "files": [
9
+ "dist"
10
+ ],
9
11
  "scripts": {
10
12
  "build": "tsup src/index.ts --format cjs,esm --dts",
11
13
  "dev": "tsup src/index.ts --watch"
@@ -18,4 +20,4 @@
18
20
  ],
19
21
  "author": "Jithin",
20
22
  "license": "MIT"
21
- }
23
+ }