Skip to content

alexthekiwi/gst-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GST Utils

Basic utilities for adding, subtracting and getting GST from a value. Has some simple sanitisation to strip out non numeric characters and always return a number.

Installation

npm install gst-utils

Usage

import useGst from 'gst-utils';

const myValue = 100;

const { gst, amountInclusive, amountExclusive } = useGst(myValue);

console.log(gst) // 13.04
console.log(amountInclusive) // 115
console.log(amountExclusive) // 86.96

Example

Visit nzgst.netlify.app

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published