The command line tool will parse a graph and then either display ancestors, descendents or both.
$ ./bin/sassgraph --helpUsage: bin/sassgraph <command> [options] <dir> [file]Commands: ancestors Output the ancestors descendents Output the descendentsOptions: -I, --load-path Add directories to the sass load path -e, --extensions File extensions to include in the graph -j, --json Output the index in json -h, --help Show help -v, --version Show version numberExamples: ./bin/sassgraph descendents test/fixtures test/fixtures/a.scss /path/to/test/fixtures/b.scss /path/to/test/fixtures/_c.scss
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.