I have developed a global npm package that functions as a CLI tool.
https://i.sstatic.net/PdT3Z.png
My goal is to customize the user experience by having the package remember the user's previous choices. For example, if the user selects 'Iphone 11', I want that option to appear at the top the next time the package is run.
I am considering using the file system module to save this data, but I'm unsure of where to store it. Is there a better alternative or approach for achieving this functionality?