https://github.com/nxame/nepalpit
Personal Income Tax (PIT) calculator utility for Nepal
https://github.com/nxame/nepalpit
calculator danfebooks income-tax nepal optimum pit salary-tax
Last synced: 2 months ago
JSON representation
Personal Income Tax (PIT) calculator utility for Nepal
- Host: GitHub
- URL: https://github.com/nxame/nepalpit
- Owner: nxame
- License: mit
- Created: 2020-05-31T06:52:30.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-09-12T05:43:23.000Z (8 months ago)
- Last Synced: 2025-02-28T14:47:43.665Z (3 months ago)
- Topics: calculator, danfebooks, income-tax, nepal, optimum, pit, salary-tax
- Language: TypeScript
- Homepage:
- Size: 1.78 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PIT Calculator for Nepal
Personal Income Tax (PIT) calculator utility for Nepal[](https://badge.fury.io/js/@danfebooks%2Fnepalpit)
## 🛠How to use
#### For Browsers
Download the zip file and you simply use the script tag to load bundled file.
```html```
This script tag will expose a variable called "`danfebooks`" to your global space.#### For nodejs
Install the package
```bash
yarn add @danfebooks/nepalpit
```And then, require the package
```js
// app.js
var danfebooks = require('@danfebooks/nepalpit');
```Please check the [example](./example) directory for code samples.
### 📦 Packaged modules
The bundled module is an [UMD](https://github.com/umdjs/umd) module, and this package can use this in any environments, i.e., browser or nodejs, react___
## Development
Clone the repo and install npm packages
```
https://github.com/danfebooks/nepalpit.git
cd nepalpit
yarn
```### Project structure
* `example` - Example use cases in browser and nodejs
* `lib` - Compiled javascript bundle
* `src` - All source code
* `src\test` - Test cases### Start dev server
To start the webpack build and a simple HTTP server from the example folder.
```
yarn start
```The `example` directory is used for the development build for seamless browser testing.
If you want to test nodejs, run `yarn example:node`, or a simple html usage: `yarn example:browser`
Navigate to http://localhost:3000
___
## BuildRun
```
yarn build
```
The above command will produce a production build inside the `lib` directory to publish on npm. The `lib` directory is also the package's `main` field.### Publish to npm
Make sure you have [np package](https://github.com/sindresorhus/np) installed globally Then execute, **`np`** from the root and follow the np guidelines.