Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

πŸ’°πŸ₯‡ A simple Node.js module to get the current gold price in rupees.

License

Notifications You must be signed in to change notification settings

beingfranklin/Indian-Gold-Price

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

28 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Indian Gold Price

No longer maintained. As the source is not functional.

πŸ’°πŸ₯‡ A simple Node.js module to get the current gold price in rupees.

What it Does

This module uses the web scraping method to get the latest price of gold from goldratetoday website.

A Quick example

const goldrate = require('indian-gold-price');

goldrate(function(err,rate){
    console.log(rate);
});

How to Install

npm install indian-gold-price

To save as a dependency and use it in your code

npm install indian-gold-price --save

Options

Currently there are no options.

Examples:

const goldrate = require('indian-gold-price');

goldrate(function(err,rate){
    console.log(rate); // => { withsymbol: 'β‚Ή 31,859', tengram: '31859', onegram: 3185.9 }
    console.log(rate.withsymbol); // => β‚Ή 31,859
    console.log(rate.tengram); // => 31859 
    console.log(rate.onegram);  // =>  3185.9

});

Indian Gold Price

Tests

No tests written so far.

npm install
//npm test

About

πŸ’°πŸ₯‡ A simple Node.js module to get the current gold price in rupees.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published