swedish-finance-strings

1.4.2 • Public • Published

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?

Package Sidebar

Install

npm i swedish-finance-strings

Weekly Downloads

11

Version

1.4.2

License

ISC

Unpacked Size

12 kB

Total Files

18

Last publish

Collaborators

  • biggestt