xmanages-package 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 (3) hide show
  1. package/README.md +31 -0
  2. package/index.js +3 -0
  3. package/package.json +8 -9
package/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # my-package
2
+
3
+ A simple npm package with an `init` function.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install my-package
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```javascript
14
+ import { init } from 'my-package';
15
+
16
+ init('your-public-token');
17
+ // Output: public_token: your-public-token
18
+ ```
19
+
20
+ ## API
21
+
22
+ ### `init(public_token)`
23
+
24
+ Logs the provided public token to the console.
25
+
26
+ - **Parameters:**
27
+ - `public_token` - The public token to log
28
+
29
+ ## License
30
+
31
+ ISC
package/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export function init(public_token) {
2
+ console.log('public_token:', public_token);
3
+ }
package/package.json CHANGED
@@ -1,14 +1,13 @@
1
1
  {
2
2
  "name": "xmanages-package",
3
- "version": "1.0.0",
4
- "main": "dist/index.js",
5
- "module": "dist/index.mjs",
6
- "types": "dist/index.d.ts",
3
+ "version": "1.0.1",
4
+ "description": "A simple package with an init function",
5
+ "main": "index.js",
6
+ "type": "module",
7
7
  "scripts": {
8
- "build": "tsup src/index.ts --dts --format esm,cjs"
8
+ "test": "echo \"Error: no test specified\" && exit 1"
9
9
  },
10
- "devDependencies": {
11
- "tsup": "^8.5.1",
12
- "typescript": "^5.9.3"
13
- }
10
+ "keywords": [],
11
+ "author": "",
12
+ "license": "ISC"
14
13
  }