wisdomtreetest 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/LICENSE +21 -0
- package/README.md +55 -0
- package/index.d.ts +16 -0
- package/index.js +16 -0
- package/package.json +118 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 wisdomtree
|
|
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/README.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# wisdomtreetest
|
|
2
|
+
|
|
3
|
+
A minimal npm package that exposes a single `hello()` function which prints `hello` to the console.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install wisdomtreetest
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
CommonJS:
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
const hello = require('wisdomtreetest');
|
|
17
|
+
|
|
18
|
+
hello(); // prints "hello"
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
ES Module / TypeScript:
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
import hello from 'wisdomtreetest';
|
|
25
|
+
|
|
26
|
+
hello(); // prints "hello"
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Named import is also supported:
|
|
30
|
+
|
|
31
|
+
```js
|
|
32
|
+
const { hello } = require('wisdomtreetest');
|
|
33
|
+
hello();
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## API
|
|
37
|
+
|
|
38
|
+
### `hello(): string`
|
|
39
|
+
|
|
40
|
+
Prints `hello` to `stdout` and returns the string `"hello"`.
|
|
41
|
+
|
|
42
|
+
## npm Lifecycle Scripts
|
|
43
|
+
|
|
44
|
+
This package is configured with the full set of npm lifecycle scripts (`preinstall`, `install`, `postinstall`, `preuninstall`, `uninstall`, `postuninstall`, `preversion`, `version`, `postversion`, `prepare`, `prepublishOnly`, `prepack`, `postpack`, `publish`, `postpublish`, `prestart`/`start`/`poststart`, `pretest`/`test`/`posttest`, `prestop`/`stop`/`poststop`, `prerestart`/`restart`/`postrestart`). See `package.json` for details.
|
|
45
|
+
|
|
46
|
+
## Publish
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
npm login
|
|
50
|
+
npm publish --access public
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## License
|
|
54
|
+
|
|
55
|
+
[MIT](./LICENSE)
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Print "hello" to stdout and return the same string.
|
|
3
|
+
*
|
|
4
|
+
* @returns The string "hello".
|
|
5
|
+
*/
|
|
6
|
+
declare function hello(): string;
|
|
7
|
+
|
|
8
|
+
declare namespace hello {
|
|
9
|
+
// Named export to support `import { hello } from 'wisdomtreetest'`.
|
|
10
|
+
const hello: () => string;
|
|
11
|
+
// Default export interop.
|
|
12
|
+
const _default: typeof hello;
|
|
13
|
+
export { _default as default };
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export = hello;
|
package/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Print "hello" to stdout and return the same string.
|
|
5
|
+
*
|
|
6
|
+
* @returns {string} The string "hello".
|
|
7
|
+
*/
|
|
8
|
+
function hello() {
|
|
9
|
+
const message = 'hello';
|
|
10
|
+
console.log(message);
|
|
11
|
+
return message;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
module.exports = hello;
|
|
15
|
+
module.exports.hello = hello;
|
|
16
|
+
module.exports.default = hello;
|
package/package.json
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "wisdomtreetest",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A simple npm package that exports a hello function which prints \"hello\".",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"hello",
|
|
7
|
+
"demo",
|
|
8
|
+
"wisdomtreetest",
|
|
9
|
+
"example"
|
|
10
|
+
],
|
|
11
|
+
"homepage": "https://github.com/wisdomtree/wisdomtreetest#readme",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/wisdomtree/wisdomtreetest/issues",
|
|
14
|
+
"email": "zhezhi.lzz@alibaba-inc.com"
|
|
15
|
+
},
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"author": {
|
|
18
|
+
"name": "wisdomtree",
|
|
19
|
+
"email": "zhezhi.lzz@alibaba-inc.com",
|
|
20
|
+
"url": "https://github.com/wisdomtree"
|
|
21
|
+
},
|
|
22
|
+
"contributors": [
|
|
23
|
+
{
|
|
24
|
+
"name": "wisdomtree",
|
|
25
|
+
"email": "zhezhi.lzz@alibaba-inc.com",
|
|
26
|
+
"url": "https://github.com/wisdomtree"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"funding": {
|
|
30
|
+
"type": "individual",
|
|
31
|
+
"url": "https://github.com/sponsors/wisdomtree"
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"index.js",
|
|
35
|
+
"index.d.ts",
|
|
36
|
+
"README.md",
|
|
37
|
+
"LICENSE"
|
|
38
|
+
],
|
|
39
|
+
"main": "index.js",
|
|
40
|
+
"types": "index.d.ts",
|
|
41
|
+
"exports": {
|
|
42
|
+
".": {
|
|
43
|
+
"types": "./index.d.ts",
|
|
44
|
+
"require": "./index.js",
|
|
45
|
+
"default": "./index.js"
|
|
46
|
+
},
|
|
47
|
+
"./package.json": "./package.json"
|
|
48
|
+
},
|
|
49
|
+
"type": "commonjs",
|
|
50
|
+
"sideEffects": false,
|
|
51
|
+
"directories": {
|
|
52
|
+
"lib": ".",
|
|
53
|
+
"test": "test",
|
|
54
|
+
"doc": "."
|
|
55
|
+
},
|
|
56
|
+
"repository": {
|
|
57
|
+
"type": "git",
|
|
58
|
+
"url": "git+https://github.com/wisdomtree/wisdomtreetest.git"
|
|
59
|
+
},
|
|
60
|
+
"scripts": {
|
|
61
|
+
"test": "echo \"test\"",
|
|
62
|
+
"preinstall": "echo \"preinstall\"",
|
|
63
|
+
"install": "echo \"install\"",
|
|
64
|
+
"postinstall": "echo \"postinstall\"",
|
|
65
|
+
"preuninstall": "echo \"preuninstall\"",
|
|
66
|
+
"uninstall": "echo \"uninstall\"",
|
|
67
|
+
"postuninstall": "echo \"postuninstall\"",
|
|
68
|
+
"preversion": "echo \"preversion\"",
|
|
69
|
+
"version": "echo \"version\"",
|
|
70
|
+
"postversion": "echo \"postversion\"",
|
|
71
|
+
"prepare": "echo \"prepare\"",
|
|
72
|
+
"prepublishOnly": "echo \"prepublishOnly\"",
|
|
73
|
+
"prepack": "echo \"prepack\"",
|
|
74
|
+
"postpack": "echo \"postpack\"",
|
|
75
|
+
"publish": "echo \"publish\"",
|
|
76
|
+
"postpublish": "echo \"postpublish\"",
|
|
77
|
+
"prestart": "echo \"prestart\"",
|
|
78
|
+
"start": "echo \"start\"",
|
|
79
|
+
"poststart": "echo \"poststart\"",
|
|
80
|
+
"pretest": "echo \"pretest\"",
|
|
81
|
+
"posttest": "echo \"posttest\"",
|
|
82
|
+
"prestop": "echo \"prestop\"",
|
|
83
|
+
"stop": "echo \"stop\"",
|
|
84
|
+
"poststop": "echo \"poststop\"",
|
|
85
|
+
"prerestart": "echo \"prerestart\"",
|
|
86
|
+
"restart": "echo \"restart\"",
|
|
87
|
+
"postrestart": "echo \"postrestart\""
|
|
88
|
+
},
|
|
89
|
+
"config": {
|
|
90
|
+
"name": "wisdomtreetest"
|
|
91
|
+
},
|
|
92
|
+
"dependencies": {},
|
|
93
|
+
"devDependencies": {},
|
|
94
|
+
"peerDependencies": {},
|
|
95
|
+
"peerDependenciesMeta": {},
|
|
96
|
+
"optionalDependencies": {},
|
|
97
|
+
"bundledDependencies": [],
|
|
98
|
+
"overrides": {},
|
|
99
|
+
"engines": {
|
|
100
|
+
"node": ">=12.0.0",
|
|
101
|
+
"npm": ">=6.0.0"
|
|
102
|
+
},
|
|
103
|
+
"os": [
|
|
104
|
+
"darwin",
|
|
105
|
+
"linux",
|
|
106
|
+
"win32"
|
|
107
|
+
],
|
|
108
|
+
"cpu": [
|
|
109
|
+
"x64",
|
|
110
|
+
"arm64"
|
|
111
|
+
],
|
|
112
|
+
"private": false,
|
|
113
|
+
"publishConfig": {
|
|
114
|
+
"access": "public",
|
|
115
|
+
"registry": "https://registry.npmjs.org/",
|
|
116
|
+
"tag": "latest"
|
|
117
|
+
}
|
|
118
|
+
}
|