@fujia/check-path
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published
hammer logo

@fujia/check-path

Check if a path exists.

English | 简体中文

Installation

npm i @fujia/check-path

# or use yarn
yarn add @fujia/check-path

Usage

import { pathExist, pathExistSync } from '@fujia/check-path'

console.log(await pathExist('example.js')); // Returns true if exist, otherwise return false

console.log(pathExistSync('example.js')); // Returns true if exist, otherwise return false

API

pathExists(path)

Returns a Promise.

pathExistsSync(path)

Returns a boolean.

Package Sidebar

Install

npm i @fujia/check-path

Weekly Downloads

2

Version

1.2.0

License

MIT

Unpacked Size

9.69 kB

Total Files

7

Last publish

Collaborators

  • sunnyfu