# @types/postcss-use

> TypeScript definitions for postcss-use

Latest version **3.0.2** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/postcss-use
pnpm add @types/postcss-use
yarn add @types/postcss-use
bun add @types/postcss-use
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.2 |
| Published | 2023-11-07 |
| First published | 2023-10-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 51446 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/postcss-use
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/postcss-use
- npm.io page: https://npm.io/package/@types/postcss-use

## Dependencies (1)

- [postcss](https://npm.io/package/postcss.md) ^6.0.17

## Recent versions

- 3.0.2 (latest) — 2023-11-07
- 3.0.1 — 2023-10-18
- 3.0.0 — 2023-10-09

## README

# Installation
> `npm install --save @types/postcss-use`

# Summary
This package contains type definitions for postcss-use (https://github.com/postcss/postcss-use).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/postcss-use.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/postcss-use/index.d.ts)
````ts
import { Plugin } from "postcss";

export interface Options {
    /**
     * The modules option specifies a list of allowable PostCSS Plugins.
     * By default, all plugins are disabled in order to prevent malicious usage in browser environments
     * @example
     * use({
     *   // allow plugins starting with autoprefixer, postcss, precss, and cssnano
     *   modules: [
     *     /^autoprefixer/,
     *     /^postcss/,
     *     /^precss/,
     *     /^cssnano/,
     *   ]
     * })
     * @example
     * use({
     *   // allow autoprefixer, postcss-preset-env, and postcss-flexbugs-fixes
     *   modules: [ 'autoprefixer', 'postcss-preset-env', 'postcss-flexbugs-fixes' ]
     * })
     * @see {@link <https://github.com/postcss/postcss-use#modules>}
     */
    modules?: string | RegExp | ReadonlyArray<string | RegExp> | undefined;
    /**
     * The resolveFromFile option specifies whether plugins should be resolved relative to the file that referenced them.
     * This may be used to enable the usage of different versions of the same plugin.
     * By default, it is disabled
     * @default false
     * @example
     * use({ resolveFromFile: true })
     * @see {@link <https://github.com/postcss/postcss-use#resolvefromfile>}
     */
    resolveFromFile?: boolean | undefined;
    /**
     * The `options` option specifies individual options for specific plugins by plugin name
     * @example
     * use({
     *   options: {
     *     'postcss-preset-env': {
     *       stage: 0,
     *       browsers: 'last two versions'
     *     }
     *   }
     * })
     * @see {@link <https://github.com/postcss/postcss-use#options-1>}
     */
    options?: Record<string, any> | undefined;
}

declare const use: Plugin<Options>;

export default use;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [postcss](https://npmjs.com/package/postcss)

# Credits
These definitions were written by [Adam Thompson-Sharpe](https://github.com/MysteryBlokHed).

---
_Source: https://npm.io/package/@types/postcss-use · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
