currency_contry_exchange 1.3.5 → 1.3.6

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.
Files changed (2) hide show
  1. package/README.md +35 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -21,12 +21,44 @@ $ pnpm install
21
21
  $ pnpm run dev
22
22
  ```
23
23
 
24
+ ## Import
25
+ ```bash
26
+ import { Faastlocation } from 'faastlocation';
27
+ const location = new Faastlocation();
28
+ ```
24
29
 
25
- ## Deplymen
30
+ ## Methods the app
26
31
 
27
32
  ```bash
28
- $ pnpm run build
29
- $ npm publish --access=public
33
+ labels({ contry = '', label = 'cliente' }): string
34
+ Devuelve una etiqueta específica basada en el país y la etiqueta proporcionada.
35
+
36
+ validateFormaterRut({ contry = '', rut = '', isValidate = false }): string
37
+ Valida o formatea un RUT (Rol Único Tributario) según el país especificado.
38
+
39
+ formaterCurrency({ contry = '', currency = 0 }): string
40
+ Formatea una cantidad de moneda específica según el país.
41
+
42
+ formaterInputProps({ contry = '' }): object
43
+ Devuelve propiedades de entrada específicas según el país.
44
+
45
+ formaterAmount({ contry = '', amount = '' }): string
46
+ Formatea una cantidad según el país especificado.
30
47
  ```
31
48
 
49
+ ## Example
50
+ ```bash
51
+ const location = new Faastlocation();
52
+
53
+ const label = location.labels({ contry: 'cl', label: 'cliente' });
54
+ console.log(label);
55
+
56
+ const formattedRut = location.validateFormaterRut({ contry: 'pe', rut: '123456789', isValidate: true });
57
+ console.log(formattedRut);
58
+
59
+ const formattedCurrency = location.formaterCurrency({ contry: 'cl', currency: 1000 });
60
+ console.log(formattedCurrency);
61
+ ```
62
+
63
+
32
64
  **Note:** Before publishing, run npm, commit the version and upload it to git, then change the versioning in the package.json
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "currency_contry_exchange",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",