Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

index.d.ts 621B

12345678910111213141516171819202122232425
  1. /**
  2. Convert Windows backslash paths to slash paths: `foo\\bar` ➔ `foo/bar`.
  3. [Forward-slash paths can be used in Windows](http://superuser.com/a/176395/6877) as long as they're not extended-length paths and don't contain any non-ascii characters.
  4. @param path - A Windows backslash path.
  5. @returns A path with forward slashes.
  6. @example
  7. ```
  8. import * as path from 'path';
  9. import slash = require('slash');
  10. const string = path.join('foo', 'bar');
  11. // Unix => foo/bar
  12. // Windows => foo\\bar
  13. slash(string);
  14. // Unix => foo/bar
  15. // Windows => foo/bar
  16. ```
  17. */
  18. declare function slash(path: string): string;
  19. export = slash;