1.0.0 • Published 5 years ago

mares-welder-utils v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

mares-welder-utils

mares framework 구성시 필요한 필수 유틸들을 담고 있는 모듈입니다.

Installation

npm install --save mares-welder-utils

Example

const utils = require('mares-welder-utils')
//node_modules 폴더는 제외 한 후 rootPath에 존재하는 fileName을 갖고 있는 모든 파일의 경로를 찾아 배열로 리턴해준다.
let fiels = utils.findFile('rootPath', 'fileName', ['node_modules'])
 
// 입력한 폴더에서 입력한 리소스 이름을 알려준다.
let name = utils.getApiName('dirname', 'additionalUrl')