unixify

WebJar for unixify

Лицензия

Лицензия

MIT
Группа

Группа

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

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

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

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

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

unixify
WebJar for unixify
Ссылка на сайт

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

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

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

https://github.com/jonschlinkert/unixify

Скачать unixify

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

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

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : normalize-path jar [2.1.1,3)

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

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

unixify NPM version NPM monthly downloads Linux Build Status

Convert Windows file paths to unix paths.

Install

Install with npm:

$ npm install --save unixify

Install with yarn:

$ yarn add unixify

Usage

var unixify = require('unixify');
unixify(filepath[, stripTrailingSlash]);

Strips leading drive letters and dot-slash (./)

unixify('.\\one\\two\\three');  //=> 'one/two/three'
unixify('./one/two/three');     //=> 'one/two/three'
unixify('C:\\one\\two\\three'); //=> '/one/two/three'
unixify('\\one\\two\\three');   //=> '/one/two/three'

Normalizes path separators to forward slashes

unixify('one\\two\\three');      //=> 'one/two/three'
unixify('\\one\\two\\three');    //=> '/one/two/three'
unixify('C:\\one\\two\\three');  //=> '/one/two/three'

Combines multiple consecutive slashes

unixify('one//two//////three'),     //=> 'one/two/three'
unixify('\\one\\two\\//three');     //=> '/one/two/three'
unixify('C:\\//one\\two\\//three'); //=> '/one/two/three'

Strips trailing slashes by default

unixify('one//two//////three//'), //=> 'one/two/three'
unixify('C:\\one\\two\\three\\'); //=> '/one/two/three'

Keep trailing slashes

By passing false as the second argument

unixify('one//two//////three//'), //=> 'one/two/three/'
unixify('C:\\one\\two\\three\\'); //=> '/one/two/three/'

About

Related projects

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Building docs

(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)

To generate the readme, run the following command:

$ npm install -g verbose/verb#dev verb-generate-readme && verb

Running tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

$ npm install && npm test

Author

Jon Schlinkert

License

Copyright © 2017, Jon Schlinkert. Released under the MIT License.


This file was generated by verb-generate-readme, v0.5.0, on April 14, 2017.

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

Версия
1.0.0