UNPKG

@onereach/orest-input-cli

Version:

The tool for creating, serving, and publishing OREST Inputs

13 lines (10 loc) 297 B
const path = require('path'); const relativePath = ({ relDirPath = '', tempDirName }) => absolutePath => { const [, relative] = absolutePath.split( path.join(path.resolve(process.cwd(), relDirPath), tempDirName, '/') ); return relative; }; module.exports = relativePath;