Skip to content

Commit

Permalink
Fix bags
Browse files Browse the repository at this point in the history
  • Loading branch information
rah-emil committed Aug 13, 2021
1 parent 1df4ca7 commit 3323836
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 8 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,24 @@ Below are examples and descriptions of all the functions available in jsHelpers.
### ES6
`npm i js-helpers --save`
```javascript
import "js-helpers"
import "@rah-emil/js-helpers"
```
or
```javascript
import { simplifyNumber } from "@rah-emil/js-helpers/src/modules/visual"

Number.prototype.simplifyNumber = simplifyNumber

(3568934).simplifyNumber(2) // 3.57M
```

### CDN
```html
<script src=""></script>
<script src="https://cdn.jsdelivr.net/npm/@rah-emil/[email protected]/dist/js-helpers.js"></script>

<script>
(3568934).simplifyNumber(2) // 3.57M
</script>
```

## Math functions
Expand Down
16 changes: 14 additions & 2 deletions README_RU.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,24 @@ jsHelpers - это JavaScript библиотека, которая содерж
### ES6
`npm i js-helpers --save`
```javascript
import "js-helpers"
import "@rah-emil/js-helpers/dist/js-helpers"
```
или
```javascript
import { simplifyNumber } from "@rah-emil/js-helpers/src/modules/visual"

Number.prototype.simplifyNumber = simplifyNumber

(3568934).simplifyNumber(2) // 3.57M
```

### CDN
```html
<script src=""></script>
<script src="https://cdn.jsdelivr.net/npm/@rah-emil/[email protected]/dist/js-helpers.js"></script>

<script>
(3568934).simplifyNumber(2) // 3.57M
</script>
```

## Математические функции
Expand Down
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@rah-emil/js-helpers",
"version": "1.0.0",
"description": "js-helpers for quick development",
"main": "dist/index.js",
"version": "1.0.1",
"description": "jsHelpers - it is a JavaScript library that contains all the functions that we constantly write or google.",
"main": "dist/js-helpers.js",
"scripts": {
"build": "npx mix",
"watch": "npx mix watch",
Expand All @@ -15,7 +15,9 @@
"keywords": [
"JavaScript",
"JS",
"helpers"
"helpers",
"RegExp",
"library"
],
"author": "Rah Emil <[email protected]>",
"license": "MIT",
Expand Down

0 comments on commit 3323836

Please sign in to comment.