xtt-utils
v0.2.2-alpha.0
Published
javascript utils
Downloads
56
Readme
xtt-utils
A JavaScript utility library.
Internationalization
This English document was translated with the help of GitHub Copilot.
Installation
npm i xtt-utils
Usage
Browser
<script src="../xtt-utils/dist/index.min.js"></script>
<!-- After importing, the xttUtils global variable will be registered on the window -->
<script>
console.log(xttUtils.random());
</script>
Module
// import the entire library
import xttUtils from "xtt-utils";
xttUtils.random();
// import specific functions
import { random } from "xtt-utils"; // Recommended
// or
import random from "xtt-utils/random";
random();
CommonJS
// import the entire library
const xttUtils = require("xtt-utils");
xttUtils.random();
// import specific functions
const { random } = require("xtt-utils");
// or
const random = require("xtt-utils/random");
random();
Documentation
You can view the md documents in the docs folder here
Alternatively,you can visit the xtt-utils documentation website