# resolve-css

> This Package resolves the local or node_module path of the css file.

Latest version **1.0.3** (published 2020-08-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install resolve-css
pnpm add resolve-css
yarn add resolve-css
bun add resolve-css
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2020-08-30 |
| First published | 2020-08-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 12.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | UpperCod |
| Maintainers | uppercod |

## Links

- npm: https://www.npmjs.com/package/resolve-css
- Repository: https://github.com/UpperCod/resolve-css
- Homepage: https://github.com/UpperCod/resolve-css#readme
- Issues: https://github.com/UpperCod/resolve-css/issues
- npm.io page: https://npm.io/package/resolve-css

## Dependencies (1)

- [@uppercod/cache](https://npm.io/package/@uppercod/cache.md) ^1.0.0

## Recent versions

- 1.0.3 (latest) — 2020-08-30
- 1.0.2 — 2020-08-29
- 1.0.1 — 2020-08-29
- 1.0.0 — 2020-08-29

## README

# resolve-css

This Package resolves the local or node_module path of the css file.

## install

```
npm install resolve-css
```

## Usage

```js
import path from "path";
import { stat } from "fs/promises";
import resolveCss from "resolve-css";

try {
    const [file, stat] = await resolveCss(stat, base, process.cwd());
} catch (e) {
    console.log("The file does not exists");
}
```

## Resolution

The resolution is local if this fault will then search node_modules, the search on node_modules by node instance.

## resolveCss

```ts
export type load = (file: string) => Promise<any>;
export default function resolveCss<T = any>(
    load: load,
    src: string,
    dir?: string
): [string, Promise<T>];
```

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