@ashley-hunter/sass-graph
TypeScript icon, indicating that this package has built-in type declarations

0.6.0 • Public • Published

Sass Graph

Parses Sass files in a directory and exposes a graph of dependencies

Install

npm install --save-dev @ashley-hunter/sass-graph

Usage

Usage as a Node library:

import sassGraph from './sass-graph';

API

parseDir

Parses a directory and builds a dependency graph of all requested file extensions.

parseFile

Parses a file and builds its dependency graph.

Options

loadPaths

Type: Array Default: [process.cwd]

Directories to use when resolved @import directives.

extensions

Type: Array Default: ['scss', 'sass']

File types to be parsed.

follow

Type: Boolean Default: false

Follow symbolic links.

exclude

Type: RegExp Default: undefined

Exclude files matching regular expression.

Authors

This library is based off https://github.com/xzyfer/sass-graph but was updated to use TypeScript, and support the @use directive.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @ashley-hunter/sass-graph

Weekly Downloads

9

Version

0.6.0

License

MIT

Unpacked Size

21.5 kB

Total Files

14

Last publish

Collaborators

  • ashley-hunter