format-naira is a package that format number values to naira currency
Use the package manager npm to install format-naira.
npm install format-naira
const formatNaira = require(format - naira); //commmonJS import
//
import formatNaira from "format-to-naira"; //es6 imports
const nairaValue = formatNaira(1000);
console.log(nairaValue) //₦1,000
//you can also format more than one value it will return a sum in naira
const total = formatNaira(2000, 3000);
console.log(total) //₦5,000
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.