Initial
This commit is contained in:
21
Client/node_modules/replace-ext/LICENSE
generated
vendored
Executable file
21
Client/node_modules/replace-ext/LICENSE
generated
vendored
Executable file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 Blaine Bublitz <blaine.bublitz@gmail.com>, Eric Schoffstall <yo@contra.io> and other contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
50
Client/node_modules/replace-ext/README.md
generated
vendored
Executable file
50
Client/node_modules/replace-ext/README.md
generated
vendored
Executable file
@@ -0,0 +1,50 @@
|
||||
<p align="center">
|
||||
<a href="http://gulpjs.com">
|
||||
<img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
|
||||
</a>
|
||||
</p>
|
||||
|
||||
# replace-ext
|
||||
|
||||
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]
|
||||
|
||||
Replaces a file extension with another one.
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var replaceExt = require('replace-ext');
|
||||
|
||||
var path = '/some/dir/file.js';
|
||||
var newPath = replaceExt(path, '.coffee');
|
||||
|
||||
console.log(newPath); // /some/dir/file.coffee
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### `replaceExt(path, extension)`
|
||||
|
||||
Replaces the extension from `path` with `extension` and returns the updated path string.
|
||||
|
||||
Does not replace the extension if `path` is not a string or is empty.
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
|
||||
[downloads-image]: http://img.shields.io/npm/dm/replace-ext.svg
|
||||
[npm-url]: https://www.npmjs.com/package/replace-ext
|
||||
[npm-image]: http://img.shields.io/npm/v/replace-ext.svg
|
||||
|
||||
[travis-url]: https://travis-ci.org/gulpjs/replace-ext
|
||||
[travis-image]: http://img.shields.io/travis/gulpjs/replace-ext.svg?label=travis-ci
|
||||
|
||||
[appveyor-url]: https://ci.appveyor.com/project/gulpjs/replace-ext
|
||||
[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/replace-ext.svg?label=appveyor
|
||||
|
||||
[coveralls-url]: https://coveralls.io/r/gulpjs/replace-ext
|
||||
[coveralls-image]: http://img.shields.io/coveralls/gulpjs/replace-ext/master.svg
|
||||
|
||||
[gitter-url]: https://gitter.im/gulpjs/gulp
|
||||
[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg
|
||||
18
Client/node_modules/replace-ext/index.js
generated
vendored
Executable file
18
Client/node_modules/replace-ext/index.js
generated
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
|
||||
var path = require('path');
|
||||
|
||||
function replaceExt(npath, ext) {
|
||||
if (typeof npath !== 'string') {
|
||||
return npath;
|
||||
}
|
||||
|
||||
if (npath.length === 0) {
|
||||
return npath;
|
||||
}
|
||||
|
||||
var nFileName = path.basename(npath, path.extname(npath)) + ext;
|
||||
return path.join(path.dirname(npath), nFileName);
|
||||
}
|
||||
|
||||
module.exports = replaceExt;
|
||||
88
Client/node_modules/replace-ext/package.json
generated
vendored
Executable file
88
Client/node_modules/replace-ext/package.json
generated
vendored
Executable file
@@ -0,0 +1,88 @@
|
||||
{
|
||||
"_from": "replace-ext@^1.0.0",
|
||||
"_id": "replace-ext@1.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=",
|
||||
"_location": "/replace-ext",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "replace-ext@^1.0.0",
|
||||
"name": "replace-ext",
|
||||
"escapedName": "replace-ext",
|
||||
"rawSpec": "^1.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/gulp-remote-src-vscode/vinyl",
|
||||
"/gulp-vinyl-zip/vinyl",
|
||||
"/vinyl-sourcemap/vinyl"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz",
|
||||
"_shasum": "de63128373fcbf7c3ccfa4de5a480c45a67958eb",
|
||||
"_spec": "replace-ext@^1.0.0",
|
||||
"_where": "/home/nathan/Projects/Upsilon/UpsilonVsCodeLanguageServer/Client/node_modules/gulp-remote-src-vscode/node_modules/vinyl",
|
||||
"author": {
|
||||
"name": "Gulp Team",
|
||||
"email": "team@gulpjs.com",
|
||||
"url": "http://gulpjs.com/"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/gulpjs/replace-ext/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Eric Schoffstall",
|
||||
"email": "yo@contra.io"
|
||||
},
|
||||
{
|
||||
"name": "Blaine Bublitz",
|
||||
"email": "blaine.bublitz@gmail.com"
|
||||
}
|
||||
],
|
||||
"dependencies": {},
|
||||
"deprecated": false,
|
||||
"description": "Replaces a file extension with another one",
|
||||
"devDependencies": {
|
||||
"eslint": "^1.10.3",
|
||||
"eslint-config-gulp": "^2.0.0",
|
||||
"expect": "^1.16.0",
|
||||
"istanbul": "^0.4.3",
|
||||
"istanbul-coveralls": "^1.0.3",
|
||||
"jscs": "^2.3.5",
|
||||
"jscs-preset-gulp": "^1.0.0",
|
||||
"mocha": "^2.4.5"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.10"
|
||||
},
|
||||
"files": [
|
||||
"LICENSE",
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/gulpjs/replace-ext#readme",
|
||||
"keywords": [
|
||||
"gulp",
|
||||
"extensions",
|
||||
"filepath",
|
||||
"basename"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "replace-ext",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gulpjs/replace-ext.git"
|
||||
},
|
||||
"scripts": {
|
||||
"cover": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly",
|
||||
"coveralls": "npm run cover && istanbul-coveralls",
|
||||
"lint": "eslint . && jscs index.js test/",
|
||||
"pretest": "npm run lint",
|
||||
"test": "mocha --async-only"
|
||||
},
|
||||
"version": "1.0.0"
|
||||
}
|
||||
Reference in New Issue
Block a user