Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 379 Bytes

File metadata and controls

19 lines (15 loc) · 379 Bytes

Installation

npm install corresponding-path

Usage

const { resolvePath } = require('corresponding-path');
const source = './src/path/to/some/module.html';
const destination = './src/path_compiled';

const { input, output } = resolvePath(source, destination);

// Example:
console.log(output.dir.join('/')); // ./src/path_compiled/to/some

Licence

MIT