# my-node-fp

> Simple node programming utility

Latest version **0.10.3** (published 2024-02-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install my-node-fp
pnpm add my-node-fp
yarn add my-node-fp
bun add my-node-fp
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.10.3 |
| Published | 2024-02-25 |
| First published | 2022-03-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 68 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | ByungJoon Lee |
| Maintainers | jooni |

## Links

- npm: https://www.npmjs.com/package/my-node-fp
- Repository: https://github.com/imjuni/my-node-fp
- Homepage: https://github.com/imjuni/my-node-fp#readme
- Issues: https://github.com/imjuni/my-node-fp/issues
- npm.io page: https://npm.io/package/my-node-fp

## Dependencies (1)

- [my-easy-fp](https://npm.io/package/my-easy-fp.md) ^0.22.0

## Recent versions

- 0.10.3 (latest) — 2024-02-25
- 0.10.2 — 2024-02-25
- 0.10.1 — 2024-02-25
- 0.10.0 — 2024-02-20
- 0.9.0 — 2023-09-22
- 0.8.1 — 2022-08-31
- 0.8.0 — 2022-08-31
- 0.7.0 — 2022-06-28
- 0.6.0 — 2022-06-27
- 0.5.0 — 2022-06-01
- 0.4.0 — 2022-05-27
- 0.3.0 — 2022-04-06
- 0.2.0 — 2022-03-29
- 0.1.0 — 2022-03-29

## README

# Simple node programming utility

![ts](https://flat.badgen.net/badge/Built%20With/TypeScript/blue)
[![Download Status](https://img.shields.io/npm/dw/my-node-fp.svg)](https://npmcharts.com/compare/my-node-fp?minimal=true)
[![Github Star](https://img.shields.io/github/stars/imjuni/my-node-fp.svg?style=popout)](https://github.com/imjuni/my-node-fp)
[![Github Issues](https://img.shields.io/github/issues-raw/imjuni/my-node-fp.svg)](https://github.com/imjuni/my-node-fp/issues)
[![NPM version](https://img.shields.io/npm/v/my-node-fp.svg)](https://www.npmjs.com/package/my-node-fp)
[![License](https://img.shields.io/npm/l/my-node-fp.svg)](https://github.com/imjuni/my-node-fp/blob/master/LICENSE)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

Simple utility functions that can use node.

## Function list

### fs

| name | description |
| - | - |
| exists | check file or directory exist, return boolean. exactly same depreciated fs.promise.exists funciton |
| existsSync | check file or directory exist, return boolean. exactly same depreciated fs.existsSync funciton |
| getDirname | get directory name. If targetPath is already directory return targetPath(not parent directory) |
| getDirnameSync | get directory name. If targetPath is already directory return targetPath(not parent directory) |
| isDirectory | if targetPath is directory, return true |
| isDirectorySync | if targetPath is directory, return true |
| isEmptyDir | check directory is empty |
| isEmptyDirSync | check directory is empty |
| isDescendant | check target directory is descendant of parent directory |

### path

| name | description |
| - | - |
| basenames | Return the last portion of a path, suffix can be string, string[] |
| replaceSepToPosix | change sep to posix.sep |
| replaceSepToWin32 | change sep to win32.sep |
| win32DriveLetterUpdown | change win32 drive letter (ex> c:) to upper or lower |
| startSepAppend | starts sep(or you can pass sep character) append if not start sep |
| endSepAppend | ends sep(or you can pass sep character) append if not end sep |
| startSepRemove | starts sep(or you can pass sep character) remove if start sep |
| endSepRemove | ends sep(or you can pass sep character) remove if end sep |

---
_Source: https://npm.io/package/my-node-fp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
