Socket
Socket
Sign inDemoInstall

detective-less

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detective-less

Find the dependencies of a less file


Version published
Maintainers
1
Created
Source

detective-less npm npm

Find the dependencies of a less file

npm install --save detective-less

This is a fork of a package by mrjoelkemp given a lack of a less detective, it is the counterpart to detective, detective-amd, detective-sass, detective-scss and detective-es6.

  • The AST is generated using the gonzales-pe parser.

Usage

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

Keywords

FAQs

Package last updated on 26 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc