2.0.0 • Published 2 years ago

frixys v2.0.0

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

Frixys

A Utility Package to make your simple tasks more simpler

  • Generate Numeric ID

const frixys = require('frixys');
const length = 5; // Length of the Numeric ID
console.log(frixys.generateNumericID(length)); // 48956 | random numeric ID
  • Generate ID (URL Friendly + Non URL Friendly)

const frixys = require('frixys');
const length = 5; // Length of the ID
const url_friendly = true;
console.log(frixys.generateID(length, url_friendly)); // gsp_5 | random URL friendly ID
// OR
const url_friendly = false;
console.log(frixys.generateID(length, url_friendly)); // ye#5_ | random Non URL friendly ID
  • Pick a random item from an Array

const frixys = require('frixys');
const array = ['foo', 'bar'];
console.log(frixys.randomize(array)); // 'bar' | random item from the "array"
2.0.0

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago