gold-dz 0.0.0-stage → 1.0.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.
Files changed (3) hide show
  1. package/README.md +6 -2
  2. package/index.js +17 -0
  3. package/package.json +15 -3
package/README.md CHANGED
@@ -1,3 +1,7 @@
1
- # Temporary Holding Version
1
+ # gold-dz
2
+ Prix du jour de l'or en Algérie - by Ben Mokhtar Fares Oran
2
3
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
4
+ ```js
5
+ const { getGoldPrice } = require('gold-dz');
6
+ console.log(getGoldPrice());
7
+ ```
package/index.js ADDED
@@ -0,0 +1,17 @@
1
+ // gold-dz - awal package ta3ek! - by Fares Oran
2
+ function getGoldPrice() {
3
+ return {
4
+ date: new Date().toLocaleDateString('fr-DZ'),
5
+ location: "Oran, Algérie",
6
+ gold_18k: "12,500 DA/g",
7
+ gold_21k: "14,200 DA/g",
8
+ gold_24k: "16,800 DA/g",
9
+ message: "Souk Oran - Prix du jour"
10
+ };
11
+ }
12
+
13
+ console.log("=== GOLD DZ - Prix du jour ===");
14
+ console.log(getGoldPrice());
15
+ console.log("==============================");
16
+
17
+ module.exports = { getGoldPrice };
package/package.json CHANGED
@@ -1,6 +1,18 @@
1
1
  {
2
2
  "name": "gold-dz",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "1.0.0",
4
+ "description": "Prix du jour de l'or en Alg\u00e9rie - Gold price Algeria",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "node index.js"
8
+ },
9
+ "keywords": [
10
+ "gold",
11
+ "algeria",
12
+ "dz",
13
+ "or",
14
+ "dheb"
15
+ ],
16
+ "author": "Ben Mokhtar Fares - Oran",
17
+ "license": "MIT"
6
18
  }