Split a filename into BIDS-relevant components.
This is a JavaScript implementation of the Python code provided by the user.
Path to be parsed.
An object containing the parts of the BIDS filename.
Split a filename into BIDS-relevant components.
This is a JavaScript implementation of the Python code provided by the user.