import path from 'path' ; import upath from 'upath' ; export const isRelativePath = ( test ) : boolean => /^\.\.?($|[\\/])/ . test ( test ) ; export const normalizeOutputPath = ( s ) => s . replace ( /\\/g , '\\\\' ) ; export const normalizeToPosixPath = ( p ) => upath . normalizeSafe ( path . normalize ( p ) ) ;