Nutritious Pumpkin Meal

    detective-stylus

    2.0.1 • Public • Published

    detective-stylus CI npm npm

    Find the dependencies of a Stylus file

    npm install detective-stylus

    It's the Stylus counterpart to detective, detective-amd, detective-es6, and detective-sass.

    Note: this detective uses a regex to find the @import or @require statements.

    Usage

    const fs = require('fs');
    const detective = require('detective-stylus');
    
    const content = fs.readFileSync('styles.styl', 'utf8');
    
    // list of imported file names (ex: '_foo.styl', '_foo', etc)
    const dependencies = detective(content);

    License

    MIT

    Install

    npm i detective-stylus

    DownloadsWeekly Downloads

    589,195

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    3.77 kB

    Total Files

    4

    Last publish

    Collaborators

    • pahen
    • xhmikosr
    • mrjoelkemp