Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@unocss/transformer-directives

Package Overview
Dependencies
Maintainers
1
Versions
254
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unocss/transformer-directives - npm Package Compare versions

Comparing version 0.27.6 to 0.28.0

7

dist/index.d.ts
import { SourceCodeTransformer, UnoGenerator } from '@unocss/core';
import MagicString from 'magic-string';
declare function transformerDirectives(): SourceCodeTransformer;
declare function transformDirectives(code: MagicString, uno: UnoGenerator, filename?: string): Promise<void>;
interface TransformerDirectivesOptions {
enforce?: SourceCodeTransformer['enforce'];
}
declare function transformerDirectives(options?: TransformerDirectivesOptions): SourceCodeTransformer;
declare function transformDirectives(code: MagicString, uno: UnoGenerator, filename?: string, originalCode?: string, offset?: number): Promise<void>;
export { transformerDirectives as default, transformDirectives };
{
"name": "@unocss/transformer-directives",
"version": "0.27.6",
"version": "0.28.0",
"description": "UnoCSS transformer for `@apply` directive",

@@ -14,2 +14,3 @@ "keywords": [

"license": "MIT",
"author": "hannoeru <me@hanlee.co>",
"repository": {

@@ -20,7 +21,5 @@ "type": "git",

},
"author": "hannoeru <me@hanlee.co>",
"sideEffects": false,
"files": [
"dist"
],
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {

@@ -32,7 +31,8 @@ ".": {

},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"sideEffects": false,
"dependencies": {
"@unocss/core": "0.27.6",
"@unocss/core": "0.28.0",
"css-tree": "^2.1.0"

@@ -46,3 +46,4 @@ },

"stub": "unbuild --stub"
}
},
"readme": "# @unocss/transformer-directives\n\nUnoCSS transformer for `@apply` directive\n\n## Install\n\n```bash\nnpm i -D @unocss/transformer-directives\n```\n\n```ts\nimport Unocss from 'unocss/vite'\nimport transformerDirective from '@unocss/transformer-directives'\n\nUnocss({\n transformers: [\n transformerDirective(),\n ],\n})\n```\n\n## Usage\n\n```css\n.custom-div {\n @apply text-center my-0 font-medium;\n}\n```\n\nWill be transformed to:\n\n```css\n.custom-div {\n margin-top: 0rem;\n margin-bottom: 0rem;\n text-align: center;\n font-weight: 500;\n}\n```\n\n> Currently only `@apply` is supported.\n\n## License\n\nMIT License © 2022 [hannoeru](https://github.com/hannoeru)\n"
}

@@ -18,3 +18,3 @@ # @unocss/transformer-directives

transformerDirective(),
]
],
})

@@ -21,0 +21,0 @@ ```

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc