Const
import { path } from 'pixi.js';
// Basic path normalization
path.normalize('http://www.example.com/foo/bar/../baz');
// -> 'http://www.example.com/foo/baz'
// Working with file paths
path.join('assets', 'images', 'sprite.png');
// -> 'assets/images/sprite.png'
// URL handling
path.toAbsolute('images/texture.png', 'http://example.com/assets/');
// -> 'http://example.com/assets/images/texture.png'
Path utilities for working with URLs and file paths in a cross-platform way. All paths that are passed in will become normalized to have posix separators.