An open API service indexing awesome lists of open source software.

https://github.com/unocss-community/unocss-transformer-hash

Hash UnoCSS utilities.
https://github.com/unocss-community/unocss-transformer-hash

unocss-community

Last synced: about 2 months ago
JSON representation

Hash UnoCSS utilities.

Awesome Lists containing this project

README

        

unocss-transformer-hash

A Unocss transformer hash template.



npm version


npm downloads


License

## Install
```shell
pnpm i -D unocss-transformer-hash
```

```ts
// uno.config.ts
import { defineConfig } from 'unocss'
import transformerHash from 'unocss-transformer-hash'

export default defineConfig({
// ...
transformers: [
transformerHash({
// options
}),
],
})
```

## Usage

```html


```

Will be transformed to:

```html


```

## Options

```ts
export interface TransformerHashOptions {
/**
* Custom hash function
*/
hashfn?: (input: string) => string
}
```

## License

MIT License © 2023-PRESENT [Chris](https://github.com/zyyv)