You will notice all examples import format Object from Quasar. However, if you need only one formatter method from it, then you can use ES6 destructuring to help Tree Shaking embed only that method and not all of format.
Example:
// we import all of `date` import { format } from'quasar' // destructuring to keep only what is needed const { capitalize, humanStorageSize } = format
console.log( capitalize('some text') ) // Some text console.log( humanStorageSize(13087) ) // 12.78 kB
You can also import all formatters and use whatever you need like this (but note that your bundle will probably contain unused methods too):