1.0.2 • Published 11 months ago

qacore v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

QACORE

Proyect generator and utilities for QA automatization.

Installation

npm install -g qacore

Usage CLI

qacore

DEMO

DEMO

Usage API

// CommonJS
const qacore = require('qacore').default
// ES6
import qacore from 'qacore'

const utilities = await qacore('YOUR_SECRET_KEY')

utilities.setNote("Your note")

Methods

  • setNote: Set a note in your project and view in the dashboard. (message: string) => string
  • getLastElementFromArray: Get the last element of an array. (array: any[]) => any
  • convertStringToNumber: Convert a string to number. (string: string) => number
  • deleteDuplicateElementsFromArray: Delete duplicate elements from an array. (array: any[]) => any[]
  • getDiffValue: Get the difference between two values. (() => Math.random(), 1)
  • getRandomFromArray: Get a random element from an array. (array: any[]) => any
  • createLocalStorage: Create a local storage in local directory. (directory: string) => clasic methods localStorage in browser but in nodejs
  • getEnviroment: Get the enviroment declared in the .env file. (key: string) => string

Support Typescript and Javascript ✅

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago