1.0.2 • Published 6 years ago

softcripto-webpack-mate v1.0.2

Weekly downloads
-
License
ISC
Repository
bitbucket
Last release
6 years ago

Softcripto Webpack Mate

  • FileScanner

A bundle of helpers and libraries for webpack.

FileScanner

Scan a directory and return list of files based on pattern options provided.

Usage

'use strict';
const {FileScanner} = require("softcripto-webpack-mate");
const path = require('path');

const file = new FileScanner();
//Find all .html file from all folders in tmp directory
file.scan(path.resolve(__dirname, "tmp/**/*.html"));
console.log(file.files);

Output

[ 
    { 
        filename: 'index.html',
        fullPath: '/to/home/root/tmp/viewer/finder/index.html',
        dir: 'finder' 
    },
    ...
]