@democrance/utils
TypeScript icon, indicating that this package has built-in type declarations

0.20.1 • Public • Published

@democrance/utils

package version package downloads standard-readme compliant package license

@democrance/utils is a set of popular utility functions.

List of all function you can find HERE

Table of Contents

Install

Install the package locally within your project folder using your preferred package manager:

pnpm install @democrance/utils

Usage

To use the utility functions provided by @democrance/utils, import them into your code and utilize them as needed.

Example:

import { utilityFunction1, utilityFunction2 } from '@democrance/utils'

// Use the imported utility functions
const result = utilityFunction1(argument)
// ...

Auto imports

If you are using the unplugin-auto-import plugin, you can include the dist/autoImportUtilsPreset.json file in the presets options.

This will enable automatic importing of the utility functions.

import dmcUtilsPreset from '@democrance/utils/preset'

// for Vite
export default defineConfig({
    plugins: [
        ViteAutoImportPlugin({
            imports: [
                dmcUtilsPreset,
                // rest presets...
            ],
        })
        // rest plugins ...
    ]
})

Contributing

Contributions are welcome! If you have ideas for new features or have found a bug, please open an issue or make a pull request on make a pull request or open up an issue.

License

This project is licensed under the MIT © Daniil Chumachenko

Readme

Keywords

Package Sidebar

Install

npm i @democrance/utils

Weekly Downloads

36

Version

0.20.1

License

MIT

Unpacked Size

340 kB

Total Files

346

Last publish

Collaborators

  • daniil4udo