UNPKG

linguist-js

Version:

Analyse the programming languages used in a folder or from raw content, using the same rules that GitHub Linguist does.

8 lines (7 loc) 294 B
import Path from 'node:path'; export const normPath = function normalisedPath(...inputPaths) { return Path.join(...inputPaths).replace(/\\/g, '/'); }; export const normAbsPath = function normalisedAbsolutePath(...inputPaths) { return Path.resolve(...inputPaths).replace(/\\/g, '/'); };