DefinitelyTyped/types/path-parse/path-parse-tests.ts
2017-03-24 14:27:52 -07:00

5 lines
123 B
TypeScript

import * as parse from "path-parse";
const parsed = parse("/foo/bar.img");
const { root, dir, base, ext, name } = parsed;