path-parse-plus
拓展 node path.parse 方法返回结果,增加了 query file path 字段。
Last updated 3 months ago by yinjiazeng .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install path-parse-plus 
SYNC missed versions from official npm registry.

介绍

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 对您有帮助,或者想请作者喝一杯咖啡的话,欢迎给我 捐赠

Current Tags

  • 1.0.3                                ...           latest (3 months ago)

4 Versions

  • 1.0.3                                ...           3 months ago
  • 1.0.2                                ...           3 months ago
  • 1.0.1                                ...           3 months ago
  • 1.0.0                                ...           3 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 4
Last Month 6
Dependencies (343)
Dev Dependencies (1)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |