{"id":18552473,"url":"https://github.com/andrejewski/periodic-table","last_synced_at":"2025-04-06T06:13:36.446Z","repository":{"id":28762756,"uuid":"32284977","full_name":"andrejewski/periodic-table","owner":"andrejewski","description":"Periodic elements data","archived":false,"fork":false,"pushed_at":"2021-12-11T12:06:13.000Z","size":78,"stargazers_count":151,"open_issues_count":13,"forks_count":96,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-30T05:08:16.546Z","etag":null,"topics":["chemistry","element","javascript","periodic-elements","science"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrejewski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-15T21:26:25.000Z","updated_at":"2025-03-01T13:09:50.000Z","dependencies_parsed_at":"2022-09-05T16:50:22.790Z","dependency_job_id":null,"html_url":"https://github.com/andrejewski/periodic-table","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrejewski%2Fperiodic-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrejewski%2Fperiodic-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrejewski%2Fperiodic-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrejewski%2Fperiodic-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrejewski","download_url":"https://codeload.github.com/andrejewski/periodic-table/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247441060,"owners_count":20939239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chemistry","element","javascript","periodic-elements","science"],"created_at":"2024-11-06T21:14:20.157Z","updated_at":"2025-04-06T06:13:36.426Z","avatar_url":"https://github.com/andrejewski.png","language":"JavaScript","readme":"Periodic Table\n===\n\nThis package is a wrapper for a dataset of periodic elements. These elements were taken from a modified [Penn State CS class](http://php.scripts.psu.edu/djh300/cmpsc221/p3s11-pt-data.htm) CSV file, transformed into JSON, and then wrapped in some pretty JavaScript accessors.  \n\n```bash\nnpm install periodic-table\n```\n\n## Usage\n\n```js\nvar pt = require('periodic-table');\n\n// entire dataset\nvar allElements = pt.all();\n\n// single elements by name\nvar he = pt.elements.Helium;\n\n// single elements by symbol\nvar he = pt.symbols.He;\n\n// single elements by atomic number\nvar he = pt.numbers[2];\n\nvar util = require('periodic-table/util');\n\n// atomic mass of molecule\n// atomicMass(\"[Element][Number] [Element][Number] ...\")\n// parenthesis around elements not supported..yet\nvar waterMass = util.atomicMass(\"H2 O\");\nvar organicMass = util.atomicMass(\"C12 H22 O11\");\n```\n\n## Sample data\n\n```js\n{ atomicNumber: 1,\n  symbol: 'H',\n  name: 'Hydrogen',\n  atomicMass: '1.00794(4)',\n  cpkHexColor: 'FFFFFF',\n  electronicConfiguration: '1s1',\n  electronegativity: 2.2,\n  atomicRadius: 37,\n  ionRadius: '',\n  vanDelWaalsRadius: 120,\n  ionizationEnergy: 1312,\n  electronAffinity: -73,\n  oxidationStates: '-1, 1',\n  standardState: 'gas',\n  bondingType: 'diatomic',\n  meltingPoint: 14,\n  boilingPoint: 20,\n  density: 0.0899,\n  groupBlock: 'nonmetal',\n  yearDiscovered: 1766 \n}\n```\n\n\n## Contributing\n\nIs any table information wrong? Does some field need to be added or better formatted? Is there a more reliable source of information to work with? Open an issue or be even cooler and open a pull-request.\n\n```bash\n# running tests\nnpm run test\n```\n\nFollow me on [Twitter](https://twitter.com/compooter) for updates or just for the lolz and please check out my other [repositories](https://github.com/andrejewski) if I have earned it. I thank you for reading.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrejewski%2Fperiodic-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrejewski%2Fperiodic-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrejewski%2Fperiodic-table/lists"}