2023.2.10 • Published 1 year ago

thrust.js v2023.2.10

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

ThrustJS - Simplify the Simple.

Usage

Import Thrust.js

  const thrust = require('thrust.js');

Features:

  • Generate IDs

    There are two kinds of IDs -

    • Random ID (example: 3ryh87fct)
    • Number ID (example: 4873534835)

    Default Length of IDs: 6


    • Creating a random ID

    const length_of_ID = 10; // the length of the ID.
    thrust.createID(length_of_ID);
    // Creates and returns an ID

    Examples: fjkrhfu5y78, 4jhct4y8vjf, rjf5h87y8v9, 5hyc84hh8yt, 4c89hy45tv

    • Generate a number ID
    const length_of_ID = 10; // the length of the ID.
    thrust.createNumID(length_of_ID);
    // Creates and returns a number ID

    Examples: 548935, 459749856, 48597457, 47598475, 495749857

    Note:

    • ABOVE EXAMPLES ARE IDs OF DIFFERENT LENGTHS. IF YOU PROVIDE THE LENGTH AS 10, IT WILL CREATE AN ID OF 10 CHARACTERS.
    • IF YOU DO NOT PROVIDE ANY LENGTH, OR PROVIDE AN INVALID PARAMETER AS LENGTH, THE DEFAULT LENGTH WILL BE USED TO CREATE THE ID.

Parameters

  • createID(length)

    ParametersTypeDescriptionRequiredDefault Value
    lengthNumberThe length of the ID.false6

    • createNumID(length)

      ParametersTypeDescriptionRequiredDefault Value
      lengthNumberThe length of the ID.false6

Links

  • Discord (You can get help in this server)
  • Twitter (For latest development news and updates)
  • XTFZ (Under development)

Credits

Made with 👐🏻 by Team XTFZ (@TeamXTFZ)