1.0.4 • Published 4 years ago

constant-checker v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

constant-checker

A utility tool to check repeating constants in a folder

Installation:

$ v1.0.4
npm install constant-checker

What will setup code look like?

// Load the build.
const findDuplicateConstants = require('constant-checker');

// Load path module to send absolute path of source 
const path = require('path');

findDuplicateConstants(scanFolder, fileContains, sourceFolderPath)

Params

namedescription
scanFoldersub folder name which you want to scan
fileContainsany keyword which a file should contains to be used while searching
sourceFolderPathAbsolute path of source folder

Note: You need to provide absolute path of source Folder in sourceFolderPath. Use path module ex. path.join(__dirname, './xyz) to get absolute path

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago