Skip to content

Commit

Permalink
add README
Browse files Browse the repository at this point in the history
  • Loading branch information
Arisna committed Jan 13, 2023
1 parent 631fb65 commit a5cb8b3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
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 }
```

0 comments on commit a5cb8b3

Please sign in to comment.