An open API service indexing awesome lists of open source software.

https://github.com/fadhil-riyanto/chemistry

chemistry and medicine datasheet library
https://github.com/fadhil-riyanto/chemistry

chemistry node-package pubchem

Last synced: 9 months ago
JSON representation

chemistry and medicine datasheet library

Awesome Lists containing this project

README

          

# chemistry
get data from largest chemistry database

```
npm i @fadhil-riyanto/chemistry
```

## how to search and getting Compound ID
```ts
import { chemistry } from "@fadhil-riyanto/chemistry"

(async () => {
let search = new chemistry.Search("1,4 dichlorobenzene")
let result = await search.get()
console.log(result); // <-- you I'll get autocomplete data here

console.log(await search.getCID("1-Bromo-2,4-dichlorobenzene")) // <-- fill desired keyword

})()
```

## getting chemical info based on CID

```ts
import { chemistry, imageType } from "@fadhil-riyanto/chemistry"

(async () => {
let details = new chemistry.CompoundID(5360545)
console.log(details.image(imageType.IMG_3D))

console.log((await details.summary()))
})()
```

## maintainer:
@fadhil-riyanto

## license
GPL-2.0