canonical-path

WebJar for canonical-path

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

canonical-path
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

canonical-path
WebJar for canonical-path
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

https://github.com/petebacondarwin/node-canonical-path

Скачать canonical-path

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/canonical-path/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>canonical-path</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/canonical-path/
implementation 'org.webjars.npm:canonical-path:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/canonical-path/
implementation ("org.webjars.npm:canonical-path:1.0.0")
'org.webjars.npm:canonical-path:jar:1.0.0'
<dependency org="org.webjars.npm" name="canonical-path" rev="1.0.0">
  <artifact name="canonical-path" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='canonical-path', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "canonical-path" % "1.0.0"
[org.webjars.npm/canonical-path "1.0.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

Canonical Path Utility

When writing node.js code that must support Windows and *nix OSes, it is sometimes frustrating that path segments are separated differently depending upon the environment.

Ironically, we can pass in paths with either separator and the library will normalize it to the current OS's format. But it then returns paths using the current OS's separator.

This utility simple wraps the built-in path library such that it only ever returns path segments separated by forward slashes (/).

Installation

npm install --save canonical-path

Usage

var path = require('canonical-path');

var p = path.normalize('a/b/../c');
// p === 'a/c';

Testing

npm test

Версии библиотеки

Версия
1.0.0