-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Arisna
committed
Jan 13, 2023
1 parent
631fb65
commit a5cb8b3
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# AWS SDK for JavaScript | ||
|
||
## How To Install | ||
|
||
The preferred way to install the `jshashmap` for Node.js is to use the | ||
[npm](http://npmjs.org) package manager for Node.js. Simply type the following into a terminal: | ||
|
||
```sh | ||
npm install jshashmap | ||
``` | ||
|
||
## Examples of Use | ||
|
||
Version 1 only support 1 function that convert Javascript object into Javascript `Map` class | ||
|
||
```javascript | ||
const jshashmap = require("jshashmap"); | ||
|
||
const foodStocks = { | ||
apple: 12, | ||
bread: 20, | ||
meat: 2, | ||
vegetable: 35, | ||
}; | ||
const hashmap = jshashmap.objToMap(foodStocks); | ||
console.log(hashmap); | ||
// Output: | ||
// Map(4) { 'apple' => 12, 'bread' => 20, 'meat' => 2, 'vegetable' => 35 } | ||
``` |