Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.41
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html_old /
iNetty /
node_modules /
path-type /
Delete
Unzip
Name
Size
Permission
Date
Action
index.d.ts
1.27
KB
-rw-r--r--
2022-04-21 14:26
index.js
1.15
KB
-rw-r--r--
2022-04-21 14:26
license
1.08
KB
-rw-r--r--
2022-04-21 14:26
package.json
714
B
-rw-r--r--
2022-04-21 14:26
readme.md
1.09
KB
-rw-r--r--
2022-04-21 14:26
Save
Rename
# path-type [](https://travis-ci.org/sindresorhus/path-type) > Check if a path is a file, directory, or symlink ## Install ``` $ npm install path-type ``` ## Usage ```js const {isFile} = require('path-type'); (async () => { console.log(await isFile('package.json')); //=> true })(); ``` ## API ### isFile(path) Check whether the passed `path` is a file. Returns a `Promise<boolean>`. #### path Type: `string` The path to check. ### isDirectory(path) Check whether the passed `path` is a directory. Returns a `Promise<boolean>`. ### isSymlink(path) Check whether the passed `path` is a symlink. Returns a `Promise<boolean>`. ### isFileSync(path) Synchronously check whether the passed `path` is a file. Returns a `boolean`. ### isDirectorySync(path) Synchronously check whether the passed `path` is a directory. Returns a `boolean`. ### isSymlinkSync(path) Synchronously check whether the passed `path` is a symlink. Returns a `boolean`. ## License MIT © [Sindre Sorhus](https://sindresorhus.com)