@enjoy-graming/rng 0.0.0-stage → 1.0.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/README.md +28 -2
- package/index.js +3 -0
- package/package.json +11 -4
package/README.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @enjoy-graming/rng
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Version 1.0.0. Logs the current UTC time as an ISO 8601 timestamp when imported.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install @enjoy-graming/rng@1.0.0
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Use
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
require("@enjoy-graming/rng");
|
|
15
|
+
// Example output: 2026-11-13T12:34:56.789Z
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
`index.js` is the Node.js entry point. It logs automatically when the module
|
|
19
|
+
first loads. Repeated `require()` calls use Node.js's module cache and do not
|
|
20
|
+
log again. The package has no exported API or dependencies.
|
|
21
|
+
|
|
22
|
+
## Publish
|
|
23
|
+
|
|
24
|
+
Log in to npm as `enjoy-graming`, then publish from this directory:
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
npm login
|
|
28
|
+
npm publish --access public
|
|
29
|
+
```
|
package/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enjoy-graming/rng",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Logs the current time when imported.",
|
|
5
|
+
"type": "commonjs",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"index.js"
|
|
9
|
+
],
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
}
|
|
13
|
+
}
|