# detective-less

> Find the dependencies of a less file

Latest version **1.0.2** (published 2018-09-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install detective-less
pnpm add detective-less
yarn add detective-less
bun add detective-less
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-09-26 |
| First published | 2017-02-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 6.0 |
| Dependencies | 3 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | killcoder |
| Keywords | detective, less, ast, dependencies |

## Links

- npm: https://www.npmjs.com/package/detective-less
- Repository: https://github.com/Mike-Dax/node-detective-less
- Issues: https://github.com/Mike-Dax/node-detective-less/issues
- npm.io page: https://npm.io/package/detective-less

## Dependencies (3)

- [debug](https://npm.io/package/debug.md) ^4.0.0
- [gonzales-pe](https://npm.io/package/gonzales-pe.md) ^4.2.3
- [node-source-walk](https://npm.io/package/node-source-walk.md) ^4.0.0

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2018-09-26
- 1.0.1 — 2017-12-12
- 1.0.0 — 2017-02-11

## README

### detective-less [![npm](http://img.shields.io/npm/v/detective-less.svg)](https://npmjs.org/package/detective-less) [![npm](http://img.shields.io/npm/dm/detective-less.svg)](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

---
_Source: https://npm.io/package/detective-less · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
