western-signs 1.1.0 → 1.2.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.
- package/LICENSE +21 -0
- package/README.md +8 -3
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Marc Mariné
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
# Western
|
|
1
|
+
# Western Signs
|
|
2
2
|
|
|
3
3
|
Simple interface for [western astrological](https://en.wikipedia.org/wiki/Western_astrology) signs.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+

|
|
6
|
+

|
|
7
|
+
|
|
8
|
+

|
|
9
|
+
|
|
10
|
+
The **Western Signs** library provides detailed information about each astrological sign, including its `name`, `element`, `modality`, `rulingPlanet` and `glyph`, among other things. Additionally, you can specify the language for translations.
|
|
6
11
|
|
|
7
12
|
## Installation
|
|
8
13
|
|
|
@@ -34,7 +39,7 @@ It should returns an object with the following properties:
|
|
|
34
39
|
element: 'Earth',
|
|
35
40
|
modality: 'Fixed',
|
|
36
41
|
rulingPlanet: 'Venus',
|
|
37
|
-
|
|
42
|
+
glyph: '♉'
|
|
38
43
|
[...]
|
|
39
44
|
}
|
|
40
45
|
```
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var r={ARIES:"aries",TAURUS:"taurus",GEMINI:"gemini",CANCER:"cancer",LEO:"leo",VIRGO:"virgo",LIBRA:"libra",SCORPIO:"scorpio",SAGITTARIUS:"sagittarius",CAPRICORN:"capricorn",AQUARIUS:"aquarius",PISCES:"pisces"},t={MARS:"mars",VENUS:"venus",MERCURY:"mercury",MOON:"moon",SUN:"sun",PLUTO:"pluto",JUPITER:"jupiter",SATURN:"saturn",URANUS:"uranus",NEPTUNE:"neptune"},a={CARDINAL:"cardinal",FIXED:"fixed",MUTABLE:"mutable"},o={FIRE:"fire",EARTH:"earth",AIR:"air",WATER:"water"},n={POSITIVE:"positive",NEGATIVE:"negative"},E={HEAD:"head",THROAT:"throat",LUNGS:"lungs",STOMACH:"stomach",HEART:"heart",BOWELS:"bowels",REINS:"reins",SECRETS:"secrets",THIGHS:"thighs",KNEES:"knees",ANKLES:"ankles",FEET:"feet"},s={RAM:"ram",BULL:"bull",TWINS:"twins",CRAB:"crab",LION:"lion",VIRGIN:"virgin",BALANCE:"balance",SCORPION:"scorpion",ARCHER:"archer",GOAT:"goat",THE_MAN:"the-man",THE_FISHES:"the-fishes"},A={SPRING:"spring",SUMMER:"summer",AUTUMN:"autumn",WINTER:"winter"};var l={aries:{bodyPart:E.HEAD,character:s.RAM,element:o.FIRE,endDate:new Date(2020,3,20),glyph:"\u2648",modality:a.CARDINAL,name:r.ARIES,number:1,pole:n.POSITIVE,rulingPlanet:t.MARS,season:A.SPRING,startDate:new Date(2020,2,20)},taurus:{bodyPart:E.THROAT,character:s.BULL,element:o.EARTH,endDate:new Date(2020,4,21),glyph:"\u2649",modality:a.FIXED,name:r.TAURUS,number:2,pole:n.NEGATIVE,rulingPlanet:t.VENUS,season:A.SPRING,startDate:new Date(2020,3,21)},gemini:{bodyPart:E.LUNGS,character:s.TWINS,element:o.AIR,endDate:new Date(2020,5,22),glyph:"\u264A",modality:a.MUTABLE,name:r.GEMINI,number:3,pole:n.POSITIVE,rulingPlanet:t.MERCURY,season:A.SPRING,startDate:new Date(2020,4,22)},cancer:{bodyPart:E.STOMACH,character:s.CRAB,element:o.WATER,endDate:new Date(2020,6,22),glyph:"\u264B",modality:a.CARDINAL,name:r.CANCER,number:4,pole:n.NEGATIVE,rulingPlanet:t.MOON,season:A.SUMMER,startDate:new Date(2020,5,23)},leo:{bodyPart:E.HEART,character:s.LION,element:o.FIRE,endDate:new Date(2020,7,22),glyph:"\u264C",modality:a.FIXED,name:r.LEO,number:5,pole:n.POSITIVE,rulingPlanet:t.SUN,season:A.SUMMER,startDate:new Date(2020,6,23)},virgo:{bodyPart:E.BOWELS,character:s.VIRGIN,element:o.EARTH,endDate:new Date(2020,8,22),glyph:"\u264D",modality:a.MUTABLE,name:r.VIRGO,number:6,pole:n.NEGATIVE,rulingPlanet:t.MERCURY,season:A.SUMMER,startDate:new Date(2020,7,23)},libra:{bodyPart:E.REINS,character:s.BALANCE,element:o.AIR,endDate:new Date(2020,9,22),glyph:"\u264E",modality:a.CARDINAL,name:r.LIBRA,number:7,pole:n.POSITIVE,rulingPlanet:t.VENUS,season:A.AUTUMN,startDate:new Date(2020,8,23)},scorpio:{bodyPart:E.SECRETS,character:s.SCORPION,element:o.WATER,endDate:new Date(2020,10,22),glyph:"\u264F",modality:a.FIXED,name:r.SCORPIO,number:8,pole:n.NEGATIVE,rulingPlanet:t.PLUTO,season:A.AUTUMN,startDate:new Date(2020,9,23)},sagittarius:{bodyPart:E.THIGHS,character:s.ARCHER,element:o.FIRE,endDate:new Date(2020,11,22),glyph:"\u2650",modality:a.MUTABLE,name:r.SAGITTARIUS,number:9,pole:n.POSITIVE,rulingPlanet:t.JUPITER,season:A.AUTUMN,startDate:new Date(2020,10,23)},capricorn:{bodyPart:E.KNEES,character:s.GOAT,element:o.EARTH,endDate:new Date(2020,1,21),glyph:"\u2651",modality:a.CARDINAL,name:r.CAPRICORN,number:10,pole:n.NEGATIVE,rulingPlanet:t.SATURN,season:A.WINTER,startDate:new Date(2019,11,23)},aquarius:{bodyPart:E.ANKLES,character:s.THE_MAN,element:o.AIR,endDate:new Date(2020,2,20),glyph:"\u2652",modality:a.FIXED,name:r.AQUARIUS,number:11,pole:n.POSITIVE,rulingPlanet:t.URANUS,season:A.WINTER,startDate:new Date(2020,1,22)},pisces:{bodyPart:E.FEET,character:s.THE_FISHES,element:o.WATER,endDate:new Date(2020,2,19),glyph:"\u2653",modality:a.MUTABLE,name:r.PISCES,number:12,pole:n.NEGATIVE,rulingPlanet:t.NEPTUNE,season:A.WINTER,startDate:new Date(2020,2,21)}},I=l;var P={aries:"Aries",taurus:"Taurus",gemini:"Gemini",cancer:"Cancer",leo:"Leo",virgo:"Virgo",libra:"Libra",scorpio:"Scorpio",sagittarius:"Sagittarius",capricorn:"Capricorn",aquarius:"Aquarius",pisces:"Pisces",fire:"Fire",earth:"Earth",air:"Air",water:"Water",cardinal:"Cardinal",fixed:"Fixed",mutable:"Mutable",mars:"Mars",venus:"Venus",mercury:"Mercury",moon:"Moon",sun:"Sun",pluto:"Pluto",jupiter:"Jupiter",saturn:"Saturn",uranus:"Uranus",neptune:"Neptune",positive:"Positive",negative:"Negative",head:"Head",throat:"Throat",lungs:"Lungs",stomach:"Stomach",heart:"Heart",bowels:"Bowels",reins:"Reins",secrets:"Secrets",thighs:"Thighs",knees:"Knees",ankles:"Ankles",feet:"Feet",ram:"Ram",bull:"Bull",twins:"Twins",crab:"Crab",lion:"Lion",virgin:"Virgin",balance:"Balance",scorpion:"Scorpion",archer:"Archer",goat:"Goat","the-man":"The Man","the-fishes":"The Fishes",spring:"Spring",summer:"Summer",autumn:"Autumn",winter:"Winter"},u=P;var D={aries:"Aries",taurus:"Tauro",gemini:"G\xE9minis",cancer:"C\xE1ncer",leo:"Leo",virgo:"Virgo",libra:"Libra",scorpio:"Escorpio",sagittarius:"Sagitario",capricorn:"Capricornio",aquarius:"Acuario",pisces:"Piscis",fire:"Fuego",earth:"Tierra",air:"Aire",water:"Agua",cardinal:"Cardinal",fixed:"Fijo",mutable:"Mutable",mars:"Marte",venus:"Venus",mercury:"Mercurio",moon:"Luna",sun:"Sol",pluto:"Plut\xF3n",jupiter:"J\xFApiter",saturn:"Saturno",uranus:"Urano",neptune:"Neptuno",positive:"Positivo",negative:"Negativo",head:"Cabeza",throat:"Garganta",lungs:"Pulmones",stomach:"Est\xF3mago",heart:"Coraz\xF3n",bowels:"Intestinos",reins:"Ri\xF1ones",secrets:"Genitales",thighs:"Muslos",knees:"Rodillas",ankles:"Tobillos",feet:"Pies",ram:"Carnero",bull:"Toro",twins:"Gemelos",crab:"Cangrejo",lion:"Le\xF3n",virgin:"Virgen",balance:"Balanza",scorpion:"Escorpi\xF3n",archer:"Arquero",goat:"Cabra","the-man":"El Hombre","the-fishes":"Los Peces",spring:"Primavera",summer:"Verano",autumn:"Oto\xF1o",winter:"Invierno"},m=D;var R={en:u,es:m};function N(i,c="en"){const e=I[i],S=R[c];if(!e||!R)return null;return{bodyPart:S[e.bodyPart],character:S[e.character],element:S[e.element],endDate:e.endDate,glyph:e.glyph,modality:S[e.modality],name:S[i],number:e.number,pole:S[e.pole],rulingPlanet:S[e.rulingPlanet],season:S[e.season],startDate:e.startDate}}function U(i="en"){return Object.keys(I).map((c)=>{const e={};return Object.entries(I[c]).forEach(([S,T])=>{const p=R[i][T];e[S]=p??T}),e})}export{U as getSigns,N as getSignByName,r as SIGNS,t as PLANETS,a as MODALITIES,o as ELEMENTS};
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "western-signs",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "Simple interface for western astrological signs.",
|
|
6
6
|
"author": "Marc Mariné <shenobi@gmail.com>",
|
|
7
7
|
"homepage": "https://github.com/marcmarine/western-signs",
|
|
8
8
|
"bugs": "https://github.com/marcmarine/western-signs/issues/new",
|