pickOneSync

Type:Function
Status:stable
Since:1.0.0
Platform:node
@blackbyte.sugar.node.fs

This function allows you to specify multiple files to check and pick one of them

Params

  1. filesNames*-String[]

    The names of the files you want to check

  2. settings{}TPickOneSyncSettings

    An object of settings to configure your research

Return

  1. -String

    The path of the file found

Example

import { pickOneSync } from '@blackbyte/sugar/fs';
pickOneSync(['myCoolFile.json', 'myCoolFile2.json'], {});

Settings

  1. cwdprocess.cwd()String

    The current working directory to search in

Todo

  • testsnormal