2.0.1 • Published 2 years ago

aerect.js v2.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

aerect.js

A light-weight wrapper to make your coding easier with simple functions

Examples

  • Import the Package
const aerect = require('aerect.js');
  • Get a random element from an array. Parameters: array: The array to choose the random element from (required)
const array = ['a', 'b', 'c', 'd', 'e']
console.log(aerect.randomize(array)); // a
  • Generate random numbers. Parameters: digits: Number of digits (required)
const digits = 5 // Number of digits
console.log(aerect.generateNumber(digits)); // 54759
  • Generate random ID. Parameters: length: Length of the ID (required)
const length = 10 // Length of the ID
console.log(aerect.generateID(length)); // MqXXuvhPAl
  • Check if a string is an URL
const string = 'https://aerect.ml';
console.log(aerect.isURL(string)); // true

const string2 = 'not an url';
console.log(aerect.isURL(string2)); // false
  • Check if an URL is a SCAM URL
const url = `https://scam-url.com`;
console.log(aerect.isScamURL(url)); // true

const url2 = `https://aerect.ml`;
console.log(aerect.isScamURL(url2)); // false

OUR OTHER SERVICES

Visit our Website: https://aerect.ml

Our Other Projects: Here

Register a Free Account: Aerect Account Here

CodeFlix - Our Code Space: Click Here

ImgZ - Image Hosting: Click Here

ReadIt - For Sharing README Files: Click Here

LinkD - Ethical URL Shortener: Click Here

Managed and Maintained with ❤️ by sish

2.0.1

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago