New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@joaopjt/xeon-js

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@joaopjt/xeon-js

A reliable API for the chemistry table elements.

  • 1.0.4
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Xeon.js

☔ The chemistry table api done the right way.

Getting Started

Download the script file clicking here

OR

Install package via npm:

npm install @joaopjt/xeon-js

Creating instance

<script src="xeon-js.min.js"></script> // Import the downloaded script file
<script type="text/javascript">
  console.log(Xeon.get(1).name); // Hydrogen 
</script>

You can import the module with ES6 syntax too:

import Xeon from 'xeon-js';

Xeon.getByName('hydrogen'); // Return Hydrogen object.

API

.all()

The function all() returns all elements avaiable:

  import Xeon from 'xeon-js';

  Xeon.all(); // Array

.get()

The function return an periodic element object by its number passed as the first param:

  import Xeon from 'xeon-js';

  Xeon.get(1); // Hydrogen object

.getByName()

The function return an periodic element object by its name:

  import Xeon from 'xeon-js';

  Xeon.getByName('Oxygen'); // Oxygen object

.getByPhase()

The function return an periodic element array of objects by its phase ("Gas' or "Solid"):

  import Xeon from 'xeon-js';

  Xeon.getByPhase('Gas'); // Gas elements array.

License

MIT License.

Keywords

FAQs

Package last updated on 03 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc