Storing some data with nodejs?
Basically, I want to have a file that it can look through when someone calls a lastfm command (nowplaying, compare, topartists) and it'll use the stored username instead of their nick if possible. So the file would be something like:
Hostname | Nick | Lastfmuser
If you insist :)
When a person wants to store some data to be read/manipulated later, he should use database in most cases. There are cases when files are more preferable, but this is not one of them.
Schemaless database (like MongoDB) is a good fit here, because it allows faster prototyping and development (as opposed to relational databases with fixed schema).