UNPKG

@lit-component/message-box

Version:

A simple message-box web component

10 lines (8 loc) 256 B
const path = require('path').posix; module.exports = (base, p) => { const relativePath = path.relative(base, p); if (p.endsWith('/') && !relativePath.endsWith('/') && relativePath !== '') { return relativePath + '/'; } return relativePath; };