periodic-table-data-complete 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.
package/README.md ADDED
@@ -0,0 +1,69 @@
1
+ # periodic-table-data-complete
2
+
3
+ -- powering http://ChemStudent.net --
4
+
5
+ The definitive dataset for chemical elements.
6
+
7
+ Collator: Scott Weaver @sweaver2112
8
+
9
+ ### acknowledgements
10
+
11
+ https://github.com/Bowserinator/Periodic-Table-JSON,
12
+
13
+ http://en.wikipedia.com,
14
+
15
+ http://pTable.com,
16
+
17
+ http://periodictable.com
18
+
19
+ https://www.convertonline.io/convert/js-to-json
20
+
21
+ ## Notes
22
+
23
+ 1. The data is not flat - compound values are objects (Hardness, Abundance, Heat Of, Melting Point, Boiling Point, and many more)
24
+ 2. Summary includes entire Wikipedia first section, consequently it retains the paragraph tags from the source: <p>summary text...</p><p>next paragraph...</p>
25
+ 3. Isomorphic units map is included (it has the same structure and names as the pTable)
26
+ 4. Property definitions (such as: melting_point) are included as HTML with link to Wikipedia article
27
+
28
+ ## Installation
29
+
30
+ `npm install periodic-table-data-complete`
31
+ *raw JSON and CSV files are also included
32
+
33
+ ## Usage
34
+
35
+ `import { pTable, pTableUnits, pTableProperties } from periodic-table-data-complete`
36
+
37
+ The PTable is an array of objects, each object representing one chemical element.
38
+
39
+ Thus, to find, for example, the universal abundance of Helium (noting that Helium is the 2nd element by atomic number) :
40
+
41
+ ```javascript
42
+ var pt = JSON.parse(pTable)
43
+ pt[1].abundance.universe => 23
44
+ ```
45
+ more likely, you'll want to fetch an element by symbol:
46
+
47
+ ```javascript
48
+ pt.find(el=>el.symbol=="B") => Boron object
49
+ ```
50
+
51
+ ### Units
52
+
53
+ ```javascript
54
+ var units = JSON.parse(pTableUnits)
55
+ units.abundance.universe => "%"
56
+ ```
57
+
58
+ ### Property Defintions
59
+
60
+ ```javascript
61
+ var chemical_properties = JSON.parse(pTableProperties)
62
+ chemical_properties.atomic_number => 'The <a target="_blank" href="https://en.wikipedia.org/wiki/Atomic_number">atomic number</a> or proton number (symbol <em>Z</em>) of a chemical element is the number of protons found in the nucleus of every atom of that element. The atomic number uniquely identifies a chemical element. It is identical to the charge number of the nucleus. In an uncharged atom, the atomic number is also equal to the number of electrons.'
63
+ ```
64
+
65
+ ## Hierarchy / Available Properties
66
+
67
+ abundance.crust</br>abundance.human</br>abundance.meteor</br>abundance.ocean</br>abundance.solar</br>abundance.universe</br>adiabatic_index</br>allotropes</br>alternate_names</br>appearance</br>atomic_mass</br>atomic_number</br>block</br>boiling_point</br>classifications.cas_number</br>classifications.cid_number</br>classifications.dot_hazard_class</br>classifications.dot_numbers</br>classifications.rtecs_number</br>conductivity.electric</br>conductivity.thermal</br>cpk_hex</br>critical_pressure</br>critical_temperature</br>crystal_structure</br>curie_point</br>decay_mode</br>density.liquid</br>density.stp</br>discovered.by</br>discovered.location</br>discovered.year</br>electrical_type</br>electron_affinity</br>electron_configuration</br>electron_configuration_semantic</br>electronegativity_pauling</br>electrons_per_shell.0</br>electrons_per_shell.1</br>electrons_per_shell.2</br>electrons_per_shell.3</br>electrons_per_shell.4</br>electrons_per_shell.5</br>electrons_per_shell.6</br>electrons_per_shell.7</br>energy_levels</br>gas_phase</br>group</br>half-life</br>hardness.brinell</br>hardness.mohs</br>hardness.vickers</br>heat.fusion</br>heat.molar</br>heat.specific</br>heat.vaporization</br>ionization_energies.0</br>ionization_energies.1</br>ionization_energies.2</br>ionization_energies.3</br>ionization_energies.4</br>ionization_energies.5</br>ionization_energies.6</br>ionization_energies.7</br>ionization_energies.8</br>ionization_energies.9</br>ionization_energies.10</br>ionization_energies.11</br>ionization_energies.12</br>ionization_energies.13</br>ionization_energies.14</br>ionization_energies.15</br>ionization_energies.16</br>ionization_energies.17</br>ionization_energies.18</br>ionization_energies.19</br>ionization_energies.20</br>ionization_energies.21</br>ionization_energies.22</br>ionization_energies.23</br>ionization_energies.24</br>ionization_energies.25</br>ionization_energies.26</br>ionization_energies.27</br>ionization_energies.28</br>ionization_energies.29</br>isotopes_known</br>isotopes_stable</br>isotopic_abundances</br>lattice_angles</br>lattice_constants</br>lifetime</br>magnetic_susceptibility.mass</br>magnetic_susceptibility.molar</br>magnetic_susceptibility.volume</br>magnetic_type</br>melting_point</br>modulus.bulk</br>modulus.shear</br>modulus.young</br>molar_volume</br>name</br>neel_point</br>neutron_cross_section</br>neutron_mass_absorption</br>oxidation_states</br>period</br>phase</br>poisson_ratio</br>quantum_numbers</br>radius.calculated</br>radius.covalent</br>radius.empirical</br>radius.vanderwaals</br>refractive_index</br>resistivity</br>series</br>source</br>space_group_name</br>space_group_number</br>speed_of_sound</br>summary</br>superconducting_point</br>symbol</br>thermal_expansion</br>valence_electrons
68
+
69
+
package/index.js ADDED
@@ -0,0 +1,15 @@
1
+ /* The definitive data-set for chemical elements */
2
+ /* Collator: Scott Weaver @sweaver2112 */
3
+ /* Data collated from many public sources, including those listed below */
4
+ /* https://github.com/Bowserinator/Periodic-Table-JSON */
5
+ /* wikipedia.com */
6
+ /* ptable.com */
7
+ /* periodictable.com */
8
+
9
+ import { pTable } from "./src/pTable.js";
10
+ import { pTableUnits } from "./src/pTableUnits.js";
11
+ import { pTableProperties } from "./src/pTableProperties.js";
12
+
13
+ export { pTable }
14
+ export { pTableUnits }
15
+ export { pTableProperties }