@jswork/ext3path
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

ext3path

Extracts first, mid (array), and last segments from a file path, enabling swift parsing with support for array mid-sections.

version license size download

installation

npm install @jswork/ext3path

usage

import ext3path from '@jswork/ext3path';

const workpath = 'wxcomponents/antui/lib/tag/index';
const res = ext3path(workpath);

// res -> ["wxcomponents", "antui/lib/tag", "index"]

license

Code released under the MIT license.

Readme

Keywords

Package Sidebar

Install

npm i @jswork/ext3path

Homepage

js.work

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

7.04 kB

Total Files

6

Last publish

Collaborators

  • afeiship