{"name":"sass-graph","version":"4.0.0","description":"Parse sass files and extract a graph of imports","license":"MIT","repository":{"type":"git","url":"git+https://github.com/xzyfer/sass-graph.git"},"author":{"name":"xzyfer"},"main":"sass-graph.js","directories":{"bin":"./bin"},"scripts":{"test":"nyc mocha","coverage":"nyc report --reporter=text-lcov | coveralls"},"keywords":["sass","graph"],"dependencies":{"glob":"^7.0.0","lodash":"^4.17.11","scss-tokenizer":"^0.3.0","yargs":"^17.2.1"},"devDependencies":{"assert":"^1.3.0","chai":"^4.1.2","coveralls":"^3.0.0","mocha":"^5.2.0","nyc":"^13.1.0"},"engines":{"node":">=12"},"bin":{"sassgraph":"bin/sassgraph"},"gitHead":"f9725bfc71ff7cd780943ccbf116579b42a030b7","bugs":{"url":"https://github.com/xzyfer/sass-graph/issues"},"homepage":"https://github.com/xzyfer/sass-graph#readme","_id":"sass-graph@4.0.0","_nodeVersion":"11.15.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-WSO/MfXqKH7/TS8RdkCX3lVkPFQzCgbqdGsmSKq6tlPU+GpGEsa/5aW18JqItnqh+lPtcjifqdZ/VmiILkKckQ==","shasum":"fff8359efc77b31213056dfd251d05dadc74c613","tarball":"http://registry-npm.ywwl.com/sass-graph/download/sass-graph-4.0.0.tgz","fileCount":7,"unpackedSize":18031,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhyVIRCRA9TVsSAnZWagAAZCYP/A7ginlfS0MxqrLnfX8i\nuxnvn9YCfsX9p8318+mvs0oJCF4Yb9vIGxxGGW08B3xh+n08FseA6Tgjs638\nUh1L+6eUDegP/EaqpBa8iqcgDAxAIOz/lyQlwCBxAkGYFjP75xpLSNCXXk1k\nvpuf2FnHHS0XRxpttwnPOCNvwaoumhuvceb7mUs0H0iZ8+8XNbJtMdO5qMDr\ng/NqqF6NioQW7V75Izyp/V4Gg65Ryk9cLRDIxeflDxaOTEpkgqo/uZbQyFEI\nt+QtG1BGSfHSCvQdyOvYXpwLjX8GZPDduUH/PrCyg/i5i9XG8JyKehYpADMM\n9iYSGE9h/5KzQf63JFgE8yNPrfvgSoIC2No8d7WCHTLqxkummS/k4TD4cz88\n7TYG8PWiYYkawr2zfC9P/dLKa3vEWY2hgf8pHFNmiOkWrVBp5VOGK/fW/+v6\ntSf+KS9K6Lyu93YtbvW0WuKsg2z4Can8mM1HP5QzQLjE+l6oKuO9j8Y2naUT\nIO/jaF3zK13iOHNs9WSx+6VrrqX1WrHhNCaimcwzaQbCdxOiX0gRabePLZpL\npEaE4SC8UWq87z70N8UhngpoysZS5BsEWaIUSM2ISB+rkk+tH6fwJg1mw1uT\nXylE6XA3kluw6Ml3r0arfvGS0tnt3lstlj2DI2195STckc1vqAdoc7TDLLf7\nUyI9\r\n=3BMA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbO2pFFm5rR6oY3gfM4J96+il2SXY0wmfxNJs3cvVkQQIhALPWU9j0Wx81vnDUX5DNCbalu5hvTOVvCSQCUOzGX5r1"}],"size":6284,"noattachment":false,"key":"/sass-graph/-/sass-graph-4.0.0.tgz"},"_npmUser":{"name":"xzyfer","email":"xzyfer@gmail.com"},"maintainers":[{"name":"lox","email":"lachlan@ljd.cc"},{"name":"xzyfer","email":"xzyfer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sass-graph_4.0.0_1640583697158_0.05933747802075695"},"_hasShrinkwrap":false,"readme":"# Sass Graph\n\nParses Sass files in a directory and exposes a graph of dependencies\n\n[![Build Status](https://travis-ci.org/xzyfer/sass-graph.svg?branch=master)](https://travis-ci.org/xzyfer/sass-graph)\n[![Coverage Status](https://coveralls.io/repos/github/xzyfer/sass-graph/badge.svg?branch=master)](https://coveralls.io/github/xzyfer/sass-graph?branch=master)\n[![npm version](https://badge.fury.io/js/sass-graph.svg)](http://badge.fury.io/js/sass-graph)\n[![Dependency Status](https://david-dm.org/xzyfer/sass-graph.svg?theme=shields.io)](https://david-dm.org/xzyfer/sass-graph)\n[![devDependency Status](https://david-dm.org/xzyfer/sass-graph/dev-status.svg?theme=shields.io)](https://david-dm.org/xzyfer/sass-graph#info=devDependencies)\n\n## Install\n\nInstall with [npm](https://npmjs.org/package/sass-graph)\n\n```\nnpm install --save-dev sass-graph\n```\n\n## Usage\n\nUsage as a Node library:\n\n```js\nvar sassGraph = require('./sass-graph');\n```\n\nUsage as a command line tool:\n\nThe command line tool will parse a graph and then either display ancestors, descendents or both.\n\n```\n$ ./bin/sassgraph --help\nUsage: bin/sassgraph <command> [options] <dir> [file]\n\nCommands:\n  ancestors    Output the ancestors\n  descendents  Output the descendents\n\nOptions:\n  -I, --load-path   Add directories to the sass load path\n  -e, --extensions  File extensions to include in the graph\n  -j, --json        Output the index in json\n  -h, --help        Show help\n  -v, --version     Show version number\n\nExamples:\n  ./bin/sassgraph descendents test/fixtures test/fixtures/a.scss\n  /path/to/test/fixtures/b.scss\n  /path/to/test/fixtures/_c.scss\n```\n\n## API\n\n#### parseDir\n\nParses a directory and builds a dependency graph of all requested file extensions.\n\n#### parseFile\n\nParses a file and builds its dependency graph.\n\n## Options\n\n#### loadPaths\n\nType: `Array`\nDefault: `[process.cwd]`\n\nDirectories to use when resolved `@import` directives.\n\n#### extensions\n\nType: `Array`\nDefault: `['scss', 'sass']`\n\nFile types to be parsed.\n\n#### follow\n\nType: `Boolean`\nDefault: `false`\n\nFollow symbolic links.\n\n#### exclude\n\nType: `RegExp`\nDefault: `undefined`\n\nExclude files matching regular expression.\n\n## Example\n\n```js\nvar sassGraph = require('./sass-graph');\nconsole.log(sassGraph.parseDir('test/fixtures'));\n\n//{ index: {,\n//    '/path/to/test/fixtures/a.scss': {\n//        imports: ['b.scss'],\n//        importedBy: [],\n//    },\n//    '/path/to/test/fixtures/b.scss': {\n//        imports: ['_c.scss'],\n//        importedBy: ['a.scss'],\n//    },\n//    '/path/to/test/fixtures/_c.scss': {\n//        imports: [],\n//        importedBy: ['b/scss'],\n//    },\n//}}\n```\n\n## Running Mocha tests\n\nYou can run the tests by executing the following commands:\n\n```\nnpm install\nnpm test\n```\n\n## Authors\n\nSass graph was originally written by [Lachlan Donald](http://lachlan.me).\nIt is now maintained by [Michael Mifsud](http://twitter.com/xzyfer).\n\n## License\n\nMIT\n","publish_time":1640583697317,"_cnpm_publish_time":1640583697317,"dist-tags":{"beta":"2.2.2","latest":"4.0.1"}}