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.
- Host: GitHub
- URL: https://github.com/unocss-community/unocss-transformer-hash
- Owner: unocss-community
- License: mit
- Created: 2024-11-07T07:54:30.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-11-07T10:02:52.000Z (6 months ago)
- Last Synced: 2025-03-09T14:47:00.499Z (2 months ago)
- Topics: unocss-community
- Language: TypeScript
- Homepage:
- Size: 83 KB
- Stars: 5
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-unocss - unocss-transformer-hash - Hash UnoCSS utilities by [@zyyv](https://github.com/zyyv). (Community / Transformers)
README
unocss-transformer-hash
A Unocss transformer hash template.
## 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)