text-to-pt

1.0.4 • Public • Published

TextToPT

A Text converter to convert text to elements of the periotic table.

Usage

import TextToPTE from "text-to-pt";

var input_text = "Genius";

var elements = TextToPTE(input_text);

if (elements.length == 0) {
	console.log("Can not convert to elements");
} else {
	console.log(input_text, "Can be written with this elements:");
	console.log(elements);
}

Package Sidebar

Install

npm i text-to-pt

Weekly Downloads

2

Version

1.0.4

License

ISC

Unpacked Size

70 kB

Total Files

4

Last publish

Collaborators

  • tim-gabrikowski