Socket
Book a DemoInstallSign in
Socket

@garfish/css-scope

Package Overview
Dependencies
Maintainers
8
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@garfish/css-scope

css scope

latest
Source
npmnpm
Version
1.19.7
Version published
Maintainers
8
Created
Source

@garfish/css-scope

NPM version

Inspired by reworkcss/css.

TJ is my idol.

Usage

Need webAssembly support

import { parse, stringify } from '@garfish/css-scope';

const code = 'a { color: #fff; }';
const ast = parse(code);
const scopedCode = stringify(ast, 'App'); // #App a { color: #fff; }

Use in Garfish

import { GarfishCssScope } from '@garfish/css-scope';

Garfish.run({
  ...
  plugins: [
    GarfishCssScope({
      fixBodyGetter: true,
      excludes: ['appName'],
    }),
  ],
})

Keywords

garfish

FAQs

Package last updated on 11 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts