@likable-hair/cciaa-service 0.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 ADDED
@@ -0,0 +1,53 @@
1
+ <div align="center">
2
+ <h1><b>CCIAA-Service</b></h1>
3
+
4
+ <p>A package that provides a set of functions to interact with the CCIAA (Camera di Commercio, Industria, Artigianato e Agricoltura )</p>
5
+ </div>
6
+
7
+ ## Getting Started
8
+
9
+ This package is available in the npm registry.
10
+
11
+ ```bash
12
+ npm install cciaa-service
13
+ ```
14
+
15
+ Next, configure the .env file (by following the example) and set the following variables for testing the library:
16
+
17
+ <ul>
18
+ <li><strong>VITE_CCIAA_USERNAME</strong>: the username of the CCIAA portal </li>
19
+ <li><strong>VITE_CCIAA_PASSWORD</strong>: the password of the CCIAA portal </li>
20
+
21
+ </ul>
22
+
23
+ ## Installation
24
+
25
+ Install the package along with its required peer dependencies:
26
+
27
+ ```bash
28
+ npm install @likable-hair/cciaa-service
29
+ ```
30
+
31
+ > Puppeteer is listed as a peer dependency because it downloads a Chromium binary (~300MB) on install. This gives you full control over the version and avoids duplicate binaries if you already use Puppeteer in your project.
32
+
33
+ ## Requirements
34
+
35
+ <ul>
36
+ <li>
37
+ <strong>Node.js >= 22.5.4</strong>: Ensure that you have Node.js version 22.x or higher installed on your system.
38
+ You can check your version by running:
39
+ <pre><code>node -v</code></pre>
40
+ </li>
41
+ <li>
42
+ <strong>Access to CCIAA portal</strong>: You must have valid credentials (username and password) to access the CCIAA portal.
43
+ </li>
44
+ <li>ESM projects (`"type": "module"`) are fully supported</li>
45
+ </ul>
46
+
47
+ ## Usage
48
+
49
+ Run the following command to test the package
50
+
51
+ ```bash
52
+ npm run test
53
+ ```
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=cciaa-service.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cciaa-service.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=cciaa-service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cciaa-service.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from '../main'
package/package.json ADDED
@@ -0,0 +1,82 @@
1
+ {
2
+ "name": "@likable-hair/cciaa-service",
3
+ "private": false,
4
+ "version": "0.0.1",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vitest",
8
+ "build": "tsc && vite build",
9
+ "preview": "vite preview",
10
+ "lint": "eslint .",
11
+ "prepublishOnly": "npm run build",
12
+ "format": "prettier --write .",
13
+ "prepare": "husky",
14
+ "test": "vitest run"
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "main": "./dist/cciaa-service.cjs",
20
+ "module": "./dist/cciaa-service.cjs",
21
+ "types": "./dist/src/main.d.ts",
22
+ "devDependencies": {
23
+ "@commitlint/cli": "^19.3.0",
24
+ "@commitlint/config-conventional": "^19.2.2",
25
+ "@eslint/js": "^9.5.0",
26
+ "@types/node": "^20.14.9",
27
+ "@types/node-forge": "^1.3.11",
28
+ "@types/xml2js": "^0.4.14",
29
+ "eslint": "^9.5.0",
30
+ "eslint-config-prettier": "^9.1.0",
31
+ "eslint-plugin-prettier": "^5.1.3",
32
+ "globals": "^15.6.0",
33
+ "husky": "^9.0.11",
34
+ "lint-staged": "^15.2.7",
35
+ "prettier": "^3.3.2",
36
+ "typescript": "^5.2.2",
37
+ "typescript-eslint": "^7.14.1",
38
+ "vite": "^5.3.1",
39
+ "vite-plugin-dts": "^3.9.1",
40
+ "vitest": "^1.6.0"
41
+ },
42
+ "engines": {
43
+ "node": ">=20.11.1"
44
+ },
45
+ "overrides": {
46
+ "eslint": "^9.5.0"
47
+ },
48
+ "lint-staged": {
49
+ "**/*.{js,ts,tsx}": [
50
+ "eslint --fix"
51
+ ],
52
+ "**/*": "prettier --write --ignore-unknown"
53
+ },
54
+ "dependencies": {
55
+ "@paralleldrive/cuid2": "^2.2.2",
56
+ "axios": "^1.13.5",
57
+ "fast-xml-parser": "^5.3.7",
58
+ "node-fetch": "^3.3.2",
59
+ "node-forge": "^1.3.1",
60
+ "pdf2json": "^3.1.4",
61
+ "puppeteer": "^23.7.0",
62
+ "puppeteer-extra": "^3.3.6",
63
+ "puppeteer-extra-plugin-stealth": "^2.11.2",
64
+ "soap": "^1.0.4",
65
+ "xadesjs": "^2.4.4",
66
+ "xml2js": "^0.6.2"
67
+ },
68
+ "description": "CCIAA service for CCIAA API",
69
+ "directories": {
70
+ "test": "tests"
71
+ },
72
+ "repository": {
73
+ "type": "git",
74
+ "url": "git+https://github.com/likablehair/cciaa-service.git"
75
+ },
76
+ "author": "Filippo Passalacqua",
77
+ "license": "ISC",
78
+ "bugs": {
79
+ "url": "https://github.com/likablehair/cciaa-service/issues"
80
+ },
81
+ "homepage": "https://github.com/likablehair/cciaa-service#readme"
82
+ }