Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
akwanmaroso committed Sep 23, 2020
1 parent 0b6fc80 commit 8965504
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ Use NPM
Use CDN

```html
<script src="https://unpkg.com/[email protected]/dist/bundle.js" type="module"></script>
<script
src="https://unpkg.com/[email protected]/dist/bundle.js"
type="module"
></script>
```

## How To Use
Expand All @@ -25,7 +28,7 @@ Node.JS
```js
const {bubble_sort} = require("sorting-js");

const res = bubble_sort([1,2,1,2,5,6,5,3,5,57,86])
const res = bubble_sort([1, 2, 1, 2, 5, 6, 5, 3, 5, 57, 86]);

console.log(res);
```
Expand All @@ -46,7 +49,7 @@ Browser
type="module"
></script>
<script type="module">
import { insertion_sort } from "./bundle.js";
import {insertion_sort} from "./bundle.js";
const res = insertion_sort([2, 3, 4, 5, 6, 4, 3, 4]);
console.log(res);
</script>
Expand All @@ -69,7 +72,7 @@ Browser
- Merge Sort(✔)
- Shell Sort(✔)
- Cycle Sort(✔)
- Radix Sort()
- Radix Sort()

## Author

Expand Down

0 comments on commit 8965504

Please sign in to comment.