1.0.1 • Published 9 months ago

@jswork/ext3path v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

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.

1.0.1

9 months ago