1.4.2 • Published 5 years ago

swedish-finance-strings v1.4.2

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago

swedish-finance-strings

Turns finance data into human readable strings in swedish

Installation

npm i swedish-finance-strings

Functions

hrSum

String -> String

Makes a large amount human readable. Output style is inspired by how Avanza present large amounts

fixedStr

String -> String

Truncates a string into a fixed length. Output can be set to be right or left-aligned

hrTimeSince

ISODateString -> String

Gives time passed since input date in a reasonable human readable output format

hrDaysAgo

ISODateString -> String

Gives days passed as a complete sentence

hrCompany

String -> String

Makes an official swedish company name human readable

hrPrice

Float -> String

Makes a stock share price human readable

orgToVat

SwedishOrgNumberString -> InternationalVATNumberString

Turn a Swedish orgnumber into a internatioal VAT number

isBusinessDay

ISODateString -> Bool

WIP Is the Stockholm market open today?

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

7 years ago