This commit is contained in:
tatianamac
2019-11-26 14:50:43 -08:00
parent 8a55660ed0
commit 6d5445ecc5
13894 changed files with 2233957 additions and 0 deletions

25
node_modules/detective-stylus/Readme.md generated vendored Normal file
View File

@@ -0,0 +1,25 @@
### detective-stylus [![npm](http://img.shields.io/npm/v/detective-stylus.svg)](https://npmjs.org/package/detective-stylus) [![npm](http://img.shields.io/npm/dm/detective-stylus.svg)](https://npmjs.org/package/detective-stylus)
> Find the dependencies of a Stylus file
`npm install detective-stylus`
It's the Stylus counterpart to
[detective](https://github.com/substack/node-detective),
[detective-amd](https://github.com/mrjoelkemp/node-detective-amd),
[detective-es6](https://github.com/mrjoelkemp/node-detective-es6),
and [detective-sass](https://github.com/mrjoelkemp/node-detective-sass)
Note: this detective uses a regex to find the `@import` or `@require` statements.
### Usage
```js
var detective = require('detective-stylus');
var content = fs.readFileSync('styles.styl', 'utf8');
// list of imported file names (ex: '_foo.styl', '_foo', etc)
var dependencies = detective(content);
```