xtt-utils
TypeScript icon, indicating that this package has built-in type declarations

0.2.2-alpha.0 • Public • Published

xtt-utils

A JavaScript utility library.

Internationalization

This English document was translated with the help of GitHub Copilot.

简体中文 | English

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

Readme

Keywords

Package Sidebar

Install

npm i xtt-utils

Weekly Downloads

0

Version

0.2.2-alpha.0

License

MIT

Unpacked Size

276 kB

Total Files

80

Last publish

Collaborators

  • xtt-nami