{"name":"sass-graph","version":"3.0.2","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":"^10.0.3"},"devDependencies":{"assert":"^1.3.0","chai":"^4.1.2","coveralls":"^3.0.0","mocha":"^4.0.1","nyc":"^11.2.1"},"engines":{"node":">= 4"},"bin":{"sassgraph":"bin/sassgraph"},"gitHead":"a19b5cea2ccde9d95ad8b0b86c9c6132cf9e7798","bugs":{"url":"https://github.com/xzyfer/sass-graph/issues"},"homepage":"https://github.com/xzyfer/sass-graph#readme","_id":"sass-graph@3.0.2","_npmVersion":"5.6.0","_nodeVersion":"9.11.2","_npmUser":{"name":"xzyfer","email":"xzyfer@gmail.com"},"dist":{"integrity":"sha512-yjFxN8cb/b8APaM1IOwhgmRmSyF9KJMdxUJwkt9+UwfefxRKKvJf1WgqeLrFCJP8/23jd2Xb2bIRx+7aRqVXoA==","shasum":"58ad298f39a22ce9e1a99c936d52a5c50b9ebde9","tarball":"http://registry-npm.ywwl.com/sass-graph/download/sass-graph-3.0.2.tgz","fileCount":7,"unpackedSize":17418,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbwH2YCRA9TVsSAnZWagAAxJwP/RG3vUCXstaCb+6bG8Qs\nqshNPSgOAgvZ9Xs4VkxWc4AHi+st95FATnEBit0B1rT3HLeGxTPYVg3D2Mtl\n2LnwCqfGMuTnRZlJ5LnGTtOPYVEi8JDHlfzXzPEr4ZSb/D+qpqUq4ZBNGYNE\nMky9Sz9pHfBt8wg2rL3xDICAs5mrpFripPkQFtFtUADJ6vLIC7+svB91Xnji\nxvDXb9AScS9HfqUy+F8XGY6wZcILq10/jK8B40l2JLV2jDggMw+ty/PcvwOc\nT2LJvHapkUng7SYCatQd5bVPFpz1XSKHCUxrT8eUjU0JYn0alLK2yR9VJT3/\neCIfiVmRfOl2WNxLVbE6MaUDZnrsVOkm9IW4cx1zTsTf2OxvLsbeJ8g291NQ\nzr1Qgi/+PdmxgiI+GG/ekw7q1EfEuDnzv4MEkTy5jsbONoCcrWxRT0eX5VA6\nJr6c787FGe1xadqeYT3ehhRoiI8AFlTJKH/6CdRCodb2L6YBBmXNjeSgZmcp\nKly9IB8VCVBXhvAFZZZ2W6rZz7Nj7E3as1N3qarIg2DPN20SUWqAhOKzKaYo\nDL7uS56xnyFEPXNN5YIblvvVjIezBYZhQIFagJeZrH3w7Sn8YxUsipFJH+AT\nrBsKifMsgr0t9j5E6LYb8Kx3B9koTPeshilOKCW8vmZHmkbRY2gPToO2Qlly\n5Dj+\r\n=Br0Y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmwy/BzNLgroPFZvl2VOvjp4YBcSMPiqrW+akpzQUlnAIhAJXSAKoyX85DgGfPnSnb0ykLkTjZvsuQnKUojuJXWlRu"}],"size":6123,"noattachment":false,"key":"/sass-graph/-/sass-graph-3.0.2.tgz"},"maintainers":[{"name":"lox","email":"lachlan@ljd.cc"},{"name":"xzyfer","email":"xzyfer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sass-graph_3.0.2_1539341719194_0.44803146204363387"},"_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":1539341719416,"_cnpm_publish_time":1539341719416,"dist-tags":{"beta":"2.2.2","latest":"4.0.1"}}