1.0.6 • Published 7 months ago
library-jws-package v1.0.6
Installation
NPM
JavaScript library supports npm under the name library-jws-package
.
npm i library-jws-package
Usage Add Comma
// Basic Use - comma format
import library from "library-jws-package";
## Examples
```js 3
<script>
import { defineComponent, ref } from 'vue'
import library from "library-jws-package";
export default defineComponent({
setup() {
const number = ref(10000000)
const formatComma = ref(null)
formatComma.value = library.addComma(number.value)
}
})
</script>
Usage Browser Version & Name
// Basic Use - get Browser
import library from "library-jws-package";
## Examples
```js 3
<script>
import { defineComponent, ref } from 'vue'
import library from "library-jws-package";
export default defineComponent({
setup() {
const browserName = ref(null)
browserName.value = library.getBrowserName()
const browserVersion = ref(null)
browserVersion.value = library.getBrowserVersion()
}
})
</script>
Usage OS Name
// Basic Use - get OS
import library from "library-jws-package";
## Examples
```js 3
<script>
import { defineComponent, ref } from 'vue'
import library from "library-jws-package";
export default defineComponent({
setup() {
const osName = ref(null)
osName.value = library.getOSName()
}
})
</script>
Usage Math Id
// Basic Use - Math Id
import library from "library-jws-package";
## Examples
```js 3
<script>
import { defineComponent, ref } from 'vue'
import library from "library-jws-package";
export default defineComponent({
setup() {
const jsonArray = [{Id: 1, Name: 'Name1'}, {Id: 2, Name: 'Name2'}]
const newId = ref(null)
newId.value = library.mathId(jsonArray) //Max id += 1 // *Id = 3
}
})
</script>