1.0.2 • Published 3 years ago

@lukaaspl/path-resolver v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Path resolver

Installation

npm install @lukaaspl/path-resolver
yarn add @lukaaspl/path-resolver

Usage

import { resolvePath } from "@lukaaspl/path-resolver";

const path = "/docs/office/agreement.pdf";

const details = resolvePath(path);

// details output:
// {
//   followingDirectories: [ 'docs', 'office' ],
//   fullFilename: 'agreement.pdf',
//   fileName: 'agreement',
//   extension: 'pdf'
// }
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago