GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Detox/utils: Various utility functions shared between other Detox libraries

BranchesTags
Open more actions menu

Latest commit

 

History

16 Commits
16 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
gulpfile.js
gulpfile.js
 
 
package.json
package.json
 
 
readme.md
readme.md
 
 

Repository files navigation

Detox utils Travis CI

Various utility functions shared between other Detox libraries.

Functions support working in Node.js as well as modern browsers

How to install

npm install @detox/utils

How to use

Node.js:

var detox_utils = require('@detox/utils')

// Do stuff

Browser:

requirejs(['@detox/utils'], function (detox_utils) {
    // Do stuff
})

List of exported functions

  • random_bytes()
  • random_int()
  • sample()
  • pull_random_item_from_array()
  • array2hex()
  • hex2array()
  • string2array()
  • array2string()
  • are_arrays_equal()
  • concat_arrays()
  • timeoutSet()
  • intervalSet()
  • error_handler()
  • ArrayMap()
  • ArraySet()
  • base58_encode()
  • base58_decode()

Look at source code and tests for details and usage examples.

Contribution

Feel free to create issues and send pull requests (for big changes create an issue first and link it from the PR), they are highly appreciated!

When reading LiveScript code make sure to configure 1 tab to be 4 spaces (GitHub uses 8 by default), otherwise code might be hard to read.

License

Free Public License 1.0.0 / Zero Clause BSD License

https://opensource.org/licenses/FPL-1.0.0

https://tldrlegal.com/license/bsd-0-clause-license

About

Various utility functions shared between other Detox libraries

Topics

detoxutils

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.