microsandbox 0.1.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 +33 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +19 -0
- package/package.json +38 -0
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Microsandbox JavaScript SDK
|
|
2
|
+
|
|
3
|
+
A minimal JavaScript SDK for the Microsandbox project.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install microsandbox
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```javascript
|
|
14
|
+
const { greet } = require("microsandbox");
|
|
15
|
+
|
|
16
|
+
// Print a greeting
|
|
17
|
+
greet("World");
|
|
18
|
+
|
|
19
|
+
// Using ES modules
|
|
20
|
+
// import { greet } from 'microsandbox';
|
|
21
|
+
// greet('World');
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Examples
|
|
25
|
+
|
|
26
|
+
Check out the [examples directory](./examples) for sample scripts that demonstrate how to:
|
|
27
|
+
|
|
28
|
+
- Use the SDK in both JavaScript and TypeScript
|
|
29
|
+
- See simple usage patterns
|
|
30
|
+
|
|
31
|
+
## License
|
|
32
|
+
|
|
33
|
+
[MIT](LICENSE)
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Microsandbox JavaScript SDK
|
|
3
|
+
*
|
|
4
|
+
* A minimal SDK for the Microsandbox project.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Returns a greeting message for the given name.
|
|
8
|
+
*
|
|
9
|
+
* @param name - The name to greet
|
|
10
|
+
* @returns A greeting message
|
|
11
|
+
*/
|
|
12
|
+
export declare function greet(name: string): string;
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Microsandbox JavaScript SDK
|
|
4
|
+
*
|
|
5
|
+
* A minimal SDK for the Microsandbox project.
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.greet = greet;
|
|
9
|
+
/**
|
|
10
|
+
* Returns a greeting message for the given name.
|
|
11
|
+
*
|
|
12
|
+
* @param name - The name to greet
|
|
13
|
+
* @returns A greeting message
|
|
14
|
+
*/
|
|
15
|
+
function greet(name) {
|
|
16
|
+
const message = `Hello, ${name}! Welcome to Microsandbox!`;
|
|
17
|
+
console.log(message);
|
|
18
|
+
return message;
|
|
19
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "microsandbox",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Microsandbox JavaScript SDK",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "tsc",
|
|
12
|
+
"test": "jest",
|
|
13
|
+
"lint": "eslint src --ext .ts",
|
|
14
|
+
"prepare": "npm run build"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"microsandbox",
|
|
18
|
+
"sdk"
|
|
19
|
+
],
|
|
20
|
+
"author": "Microsandbox Team <team@microsandbox.dev>",
|
|
21
|
+
"license": "Apache-2.0",
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/microsandbox/microsandbox.git"
|
|
25
|
+
},
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://github.com/microsandbox/microsandbox/issues"
|
|
28
|
+
},
|
|
29
|
+
"homepage": "https://github.com/microsandbox/microsandbox",
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@types/jest": "^29.5.0",
|
|
32
|
+
"@types/node": "^18.15.0",
|
|
33
|
+
"eslint": "^8.36.0",
|
|
34
|
+
"jest": "^29.5.0",
|
|
35
|
+
"ts-jest": "^29.1.0",
|
|
36
|
+
"typescript": "^5.0.2"
|
|
37
|
+
}
|
|
38
|
+
}
|