@dawntech/blip-tools 0.1.3
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 +21 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +17 -0
- package/package.json +40 -0
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# blip-tools
|
|
2
|
+
Node package for Blip.
|
|
3
|
+
|
|
4
|
+
## Installation
|
|
5
|
+
```sh
|
|
6
|
+
npm install @dawntech/blip-tools
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
```javascript
|
|
11
|
+
import Blip from '@dawntech/blip-tools';
|
|
12
|
+
|
|
13
|
+
// Example usage
|
|
14
|
+
const blip = new Blip();
|
|
15
|
+
blip.someMethod();
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Development
|
|
19
|
+
- `npm run build`: Build the project.
|
|
20
|
+
- `npm run lint`: Lint the project.
|
|
21
|
+
- `npm publish`: Publish the package to NPM.
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default class Blip {
|
|
2
|
+
baseUrl;
|
|
3
|
+
constructor(baseUrl) {
|
|
4
|
+
this.baseUrl = baseUrl;
|
|
5
|
+
}
|
|
6
|
+
someMethod() {
|
|
7
|
+
// Example method
|
|
8
|
+
}
|
|
9
|
+
fetchData(endpoint) {
|
|
10
|
+
return fetch(endpoint)
|
|
11
|
+
.then((response) => response.json())
|
|
12
|
+
.catch((error) => {
|
|
13
|
+
console.error('Error fetching data:', error);
|
|
14
|
+
throw error;
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dawntech/blip-tools",
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "Node package for Blip API",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "tsc",
|
|
11
|
+
"lint": "eslint . --ignore-pattern 'dist/*'",
|
|
12
|
+
"lint:fix": "eslint . --fix --ignore-pattern 'dist/*'",
|
|
13
|
+
"publish": "npm publish --access=public",
|
|
14
|
+
"format": "prettier --check 'src/**/*.ts'",
|
|
15
|
+
"format:fix": "prettier --write 'src/**/*.ts'",
|
|
16
|
+
"test": "npm run lint && npm run format",
|
|
17
|
+
"preversion": "npm test",
|
|
18
|
+
"version": "npm run build && git add -A dist",
|
|
19
|
+
"postversion": "git push && git push --tags"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist",
|
|
23
|
+
"README.md"
|
|
24
|
+
],
|
|
25
|
+
"keywords": [
|
|
26
|
+
"blip",
|
|
27
|
+
"api",
|
|
28
|
+
"node"
|
|
29
|
+
],
|
|
30
|
+
"author": "Francisco Knebel",
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@eslint/js": "^9.22.0",
|
|
34
|
+
"@typescript-eslint/eslint-plugin": "^8.26.0",
|
|
35
|
+
"eslint": "^9.22.0",
|
|
36
|
+
"prettier": "^3.5.3",
|
|
37
|
+
"typescript": "^5.8.2",
|
|
38
|
+
"typescript-eslint": "^8.26.0"
|
|
39
|
+
}
|
|
40
|
+
}
|