path-parse-plus
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

介绍

NPM version NPM downloads

拓展 node path.parse 方法返回结果,增加了 query file path 字段。

使用

yarn add path-parse-plus
import pathParse from 'path-parse-plus';
 
pathParse('/path/index.jsx?a=1');
 
//=> {
//   root: '/',
//   dir: '/path',
//   base: 'index.jsx?a=1',
//   ext: '.jsx',
//   name: 'index',
//   query: '?a=1',
//   file: 'index.jsx',
//   path: '/path/index.jsx',
// }

许可证

MIT

捐赠

如果觉得 path-parse-plus 对您有帮助,或者想请作者喝一杯咖啡的话,欢迎给我 捐赠

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    9
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    9
  • 1.0.2
    1
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i path-parse-plus

Weekly Downloads

5

Version

1.0.3

License

MIT

Unpacked Size

3.41 kB

Total Files

5

Last publish

Collaborators

  • yinjiazeng