Is there some way to add meta-data to JavaScript objects?
===

I would like to add key-value pairs of metadata to arbitrary JavaScript objects. This metadata should not affect code that is not aware of the metadata, that means for example

    JSON.stringify(obj) === JSON.stringify(obj.WithMetaData('key', 'value'))

MetaData aware code should be able to retrieve the data by key, i.e.

    obj.WithMetaData('key', 'value').GetMetaData('key') === 'value'

Is there any way to do it - in node.js? If so, does it work with builtin types such as `String` and even `Number`?

Some Background: What I'm trying to do is cache values that are derived from an object with the object itself, so that

* to meta data unaware code, the meta data enriched object will look the same as the original object w/o meta 
* code that needs the derived values can get it out of the meta-data if already cached
* the cache will get garbage collected alongside the object

Another way would be to store a hash table with the caches somewhere, but you'd never know when the object gets garbage collected. Every object instance would have to be taken care of manually, so that the caches don't leak.