Getting Started โ
WARNING
๐ง This library is still under development. Any APIs may change without notification. Use at your own risk. ๐ง
Installation โ
bash
$ npm add @bernankez/utils
bash
$ pnpm add @bernankez/utils
bash
$ yarn add @bernankez/utils
bash
$ bun add @bernankez/utils
Usage โ
Importing the functions you need from @bernankez/utils
ts
import { masking } from "@bernankez/utils";
const pkg = "@bernankez/utils";
const masked = masking(pkg, [3, -3]);
console.log(masked); // @be**********ils
Using with unplugin-auto-import
โ
First, follow the unplugin-auto-import
installation.
And then
ts
// vite.config.ts
import AutoImport from "unplugin-auto-import/vite";
import { UtilsResolver } from "@bernankez/utils/resolver";
export default defineConfig({
plugins: [
AutoImport({
resolvers: [UtilsResolver()]
}),
],
});
See all functions HERE.