# node-sass-tilde-importer

> A node-sass custom importer which turns ~ into absolute paths to the nearest parent node_modules directory.

Latest version **1.0.2** (published 2018-03-18) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install node-sass-tilde-importer
pnpm add node-sass-tilde-importer
yarn add node-sass-tilde-importer
bun add node-sass-tilde-importer
```

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-03-18 |
| First published | 2016-09-06 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | separate (@types/node-sass-tilde-importer) |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 13.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 43 |
| Author | Matthew Davidson |
| Maintainers | mattface, tadam313 |
| Keywords | node-sass, scss, sass, tilde, webpack, sass-loader, node_modules |

## Links

- npm: https://www.npmjs.com/package/node-sass-tilde-importer
- Repository: https://github.com/matthewdavidson/node-sass-tilde-importer
- Homepage: https://github.com/matthewdavidson/node-sass-tilde-importer#readme
- Issues: https://github.com/matthewdavidson/node-sass-tilde-importer/issues
- npm.io page: https://npm.io/package/node-sass-tilde-importer

## Dependencies (1)

- [find-parent-dir](https://npm.io/package/find-parent-dir.md) ^0.3.0

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2018-03-18
- 2.0.0-alpha.1 (next) — 2019-02-13
- 1.0.1 — 2018-01-08
- 1.0.0 — 2017-04-06
- 0.0.4 — 2016-09-07
- 0.0.3 — 2016-09-06
- 0.0.0 — 2016-09-06
- 0.0.2 — 2016-09-06
- 0.0.1 — 2016-09-06

## README

# node-sass-tilde-importer

> A node-sass custom importer which turns ~ into absolute paths to the nearest parent node_modules directory.

[![Build Status](https://travis-ci.org/matthewdavidson/node-sass-tilde-importer.svg?branch=master)](https://travis-ci.org/matthewdavidson/node-sass-tilde-importer)
[![npm version](https://badge.fury.io/js/node-sass-tilde-importer.svg)](http://badge.fury.io/js/node-sass-tilde-importer)

## Install

```sh
npm install node-sass-tilde-importer --save-dev
```

## Usage

```js
var sass = require('node-sass');
var tildeImporter = require('node-sass-tilde-importer');

var result = sass.renderSync({
  data: scss_content,
  importer: tildeImporter
});
```

`node-sass` cli example:
```sh
node-sass style.scss --importer=node_modules/node-sass-tilde-importer
```

Please refer to the node-sass [readme](https://github.com/sass/node-sass#readme) for full instruction on how to use custom importers.

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