0.0.1 • Published 1 year ago

source-src v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

source-src

A small library for getting the path to a file or directory.

Import

import * as src from "source-src";

src.file

This function asks for a file path and returns a promise.

import * as src from "source-src";

src.file(message, src, ignore).then(resolve).catch(reject);
  • message: string - Displayed message
  • src?: string - The path from which the request starts by default is process.cwd()
  • ingore?: RegExp[] - This is an array of regular expressions through which it is indicated which name should be ignored.

src.directory

This function asks for a directory path and returns a promise.

import * as src from "source-src";

src.directory(message, src, ignore).then(resolve).catch(reject);
  • message: string - Displayed message
  • src?: string - The path from which the request starts by default is process.cwd()
  • ingore?: RegExp[] - This is an array of regular expressions through which it is indicated which name should be ignored.

To select a directory, you need to click on the green "Confirm" button and press enter.

0.0.1

1 year ago