weakmap : Shim for WeakMap with non-leaky O(1) lookup time. You can installing weakmap npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.
$ sudo npm install weakmap $ sudo npm install -g weakmap
If want to update the weakmap package execute the command as below,
$ sudo npm update weakmap
Update package globally,
$ npm install -g weakmap
$ sudo git clone https://github.com/rektide/weakmap.git
$ sudo npm install -g ./weakmap
weakmap@0.0.6 /usr/lib/node_modules/weakmap
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall weakmap
| Package Name | weakmap |
| Version | 0.0.6 |
| Description | Shim for WeakMap with non-leaky O(1) lookup time |
| Released Date | 2012-10-15T03:54:29.436Z |
| Published by | benvie |
| How to Learn | https://www.npmjs.com/package/weakmap/tutorial |