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.
- package/README.md +31 -0
- package/index.js +3 -0
- 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
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xmanages-package",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
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
|
-
"
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
9
|
},
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
10
|
+
"keywords": [],
|
|
11
|
+
"author": "",
|
|
12
|
+
"license": "ISC"
|
|
14
13
|
}
|