JavaScript general use string formatters
npm install @sb1/ffe-formattersJavaScript general use string formatters.
Install this package via npm like so:
``bash`
npm install --save @sb1/ffe-formatters
Full documentation on formatter usage is available at https://design.sparebank1.no/Komponenter/Formatters.
Import the formatter(s) you need the following way:
`javascript`
import formatNumber from '@sb1/ffe-formatters/lib/formatNumber';
import formatPercentage from '@sb1/ffe-formatters/lib/formatPercentage';
You'll find a full overview and documentation over all the available formatters in src/.
To start a local development server, run the following from the designsystem root folder:
`bash`
npm install
npm run build
npm start
A local instance of Storybook` with live reloading will run at http://localhost:6006/.
Example implementations using the latest versions of all components are also available at https://sparebank1.github.io/designsystem.