Noncollinear Perpendicular Microcrystalline
    Wondering what’s next for npm?Check out our public roadmap! »

    detective-less

    1.0.2 • Public • Published

    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.

    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

    Install

    npm i detective-less

    DownloadsWeekly Downloads

    265,465

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    3.72 kB

    Total Files

    3

    Last publish

    Collaborators

    • avatar