HTML
                    
                        <script src="gst.min.js"></script>
                    
                
            A Simple Vanilla Javascript Plugin for calculating GST.
View on GithubHTML
                    
                        <script src="gst.min.js"></script>
                    
                
            JS
                    
                        var gst = new GST();
                    
                
            .getTotal(subtotal)
                    
                        gst.getTotal(50);
                    
                
            .getSubtotal(total)
                    
                        gst.getSubtotal(50);
                    
                
            .getGST(total, subtotal)
                    
                        gst.getGST(50, 42.5);
                    
                
            .getPercent(total, subtotal)
                    
                        gst.getPercent(50, 42.5);
                    
                
            .formatter(total, currencySign)
                    
                        gst.formatter(50, "$");
                    
                
            GST.getTotal()
GST.getSubtotal()
GST.getGST()
GST.getPercent()
GST.formatter()