https://github.com/questnetwork/quest-utilities-js
Utilities For The Quest Network
https://github.com/questnetwork/quest-utilities-js
Last synced: about 1 year ago
JSON representation
Utilities For The Quest Network
- Host: GitHub
- URL: https://github.com/questnetwork/quest-utilities-js
- Owner: QuestNetwork
- License: agpl-3.0
- Created: 2020-09-29T00:56:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-17T17:10:45.000Z (over 5 years ago)
- Last Synced: 2025-03-09T12:03:05.994Z (over 1 year ago)
- Language: JavaScript
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Quest Utilities JS
> Shared Toolbox For The Quest Network
## Lead Maintainer
[StationedInTheField](https://github.com/StationedInTheField)
## Description
The Utilities class for the [Quest Network Operating System](https://github.com/QuestNetwork/quest-os-js) offers shared functionality.
## Installation & Usage
```
npm install @questnetwork/quest-utilities-js@0.9.4
```
## API
### inArray(array,value)
Returns boolean true or false
```javascript
if(.utilities.inArray(array,value)){
console.log('Hello Universe!')
}
```
### removeFram(array,searchObject)
Removes the object in the array that matches searchObject in at least one field.
```javascript
.utilities.removeFram(array,searchObject)
```
### engine
#### detect()
Returns a String containing the detected engine. Result can be `browser`, `electron` or `node`.
```javascript
let engine = .utilities.engine.detect();
```
### qr
#### generate()
Returns a DataUrl containing generated QR Code.
```javascript
let qrDataUrl = .utilities.qr.generate(text);
```
## Support Us
Please consider supporting us, so that we can build a non-profit for this project (ツ)
| Ethereum| Bitcoin |
|---|---|
| `0xBC2A050E7B87610Bc29657e7e7901DdBA6f2D34E` | `bc1qujrqa3s34r5h0exgmmcuf8ejhyydm8wwja4fmq` |
|
|
|
## License
GNU AGPLv3