Skip to content

Commit

Permalink
🐛 simplify re-exports
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfram77 committed Nov 29, 2022
1 parent 70d27cc commit 7680835
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 26 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "extra-path",
"version": "1.1.13",
"version": "1.1.14",
"description": "Useful additions to inbuilt path module.",
"main": "index.js",
"module": "index.mjs",
Expand Down
48 changes: 25 additions & 23 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,34 +1,36 @@
import {basename, extname} from "path";
export {posix, win32} from "path";
import {toKebabCase} from "extra-string";




// TYPES
// =====

export {FormatInputPathObject} from "path";
export {ParsedPath, PlatformPath} from "path";



// PROPERTIES
// RE-EXPORTS
// ==========

export {delimiter, sep} from "path";




// METHODS
// =======

export {basename, dirname, extname} from "path";
export {isAbsolute, relative} from "path";
export {format, join, parse} from "path";
export {normalize, resolve} from "path";
export {toNamespacedPath} from "path";
export {
// Types
FormatInputPathObject,
ParsedPath,
PlatformPath,
// Namespaces
posix,
win32,
// Properties
delimiter,
sep,
// Methods
basename,
dirname,
extname,
isAbsolute,
relative,
format,
join,
parse,
normalize,
resolve,
toNamespacedPath,
} from "path";



Expand Down

0 comments on commit 7680835

Please sign in to comment.