mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-12-18 01:39:04 +00:00
update
This commit is contained in:
25
node_modules/detective-stylus/Readme.md
generated
vendored
Normal file
25
node_modules/detective-stylus/Readme.md
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
### detective-stylus [](https://npmjs.org/package/detective-stylus) [](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);
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user