1.0.19 • Published 3 years ago

generic-ts-utils v1.0.19

Weekly downloads
17
License
MIT
Repository
github
Last release
3 years ago

Internal functions used by ansaar.in

Publishing to npm repository

Go to https://www.npmjs.com/ and check if there is an existing npm package with the same name as in the package.json file's name attribute.

If confirming that your package name is available, run npm push to publish the package to npm repository.

Installation

  • Install in your project using npm i generic-ts-utils --save

Available functions / API

GenerateLink Generates the shareable link for the stock details page on ansaar.in

  • @param instrument object with properties: Name, BSECode, NSECode & Halal

getMonthFromDate() Gets the month from the date parameter

  • @param date the date from which month is to be extracted

isInCurrentMonth() Find if the date is in the current month

  • @param date the date value

isToday Find if the date is today?

  • @param date the date value

The API details are part of the JSDoc

hasTimePassed

capitalizeFirstLetter

isTimeFuture

RoundDecimalsTo2

SuggestStockSalePrice

parseDate

Contributions welcome!

Open a new PR here on GitHub.

Run locally

  • Run git clone https://github.com/ansaar-in/generic-ts-utils.git this project
  • Run cd generic-ts-utils/ to this project
  • Run npm run dev to start the project on local machine

Bugs and Issues

Have a bug or an issue? Open a new issue here on GitHub.

License

Code licensed under MIT. Everything else is CC

Follow us

© nordible

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.11

4 years ago

1.0.12

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago