mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-12 05:31:41 +00:00
update
This commit is contained in:
24
node_modules/detective-less/Readme.md
generated
vendored
Normal file
24
node_modules/detective-less/Readme.md
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
### detective-less [](https://npmjs.org/package/detective-less) [](https://npmjs.org/package/detective-less)
|
||||
|
||||
> Find the dependencies of a less file
|
||||
|
||||
`npm install --save detective-less`
|
||||
|
||||
This is a fork of a package by [mrjoelkemp](https://github.com/mrjoelkemp/) given a lack of a less detective, it is the counterpart to [detective](https://github.com/substack/node-detective), [detective-amd](https://github.com/mrjoelkemp/node-detective-amd), [detective-sass](https://github.com/mrjoelkemp/node-detective-sass), [detective-scss](https://github.com/mrjoelkemp/node-detective-scss) and [detective-es6](https://github.com/mrjoelkemp/node-detective-es6).
|
||||
|
||||
* The AST is generated using the [gonzales-pe](https://github.com/tonyganch/gonzales-pe) parser.
|
||||
|
||||
### Usage
|
||||
|
||||
```js
|
||||
var detective = require('detective-less');
|
||||
|
||||
var content = fs.readFileSync('styles.less', 'utf8');
|
||||
|
||||
// list of imported file names (ex: 'foo.less', 'foo', etc)
|
||||
var dependencies = detective(content);
|
||||
```
|
||||
|
||||
### License
|
||||
|
||||
MIT
|
Reference in New Issue
Block a user