File: index.ts

package info (click to toggle)
node-get-caller-file 2.0.5%2B~cs1.1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 228 kB
  • sloc: javascript: 10; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 182 bytes parent folder | download
1
2
3
4
5
6
7
8
9
import path = require('path');

export = function ensurePosix(filepath: string) {
  if (path.sep !== '/') {
    return filepath.split(path.sep).join('/');
  }

  return filepath;
};