Added logging, changed some directory structure

This commit is contained in:
2018-01-13 21:33:40 -05:00
parent f079a5f067
commit 8e72ffb917
73656 changed files with 35284 additions and 53718 deletions

View File

@@ -0,0 +1,14 @@
'use strict';
var path = require('path');
var pathIsInside = require('path-is-inside');
module.exports = function (a, b) {
a = path.resolve(a);
b = path.resolve(b);
if (a === b) {
return false;
}
return pathIsInside(a, b);
};

View File

@@ -0,0 +1,71 @@
{
"_args": [
[
"is-path-inside@1.0.0",
"C:\\Users\\deranjer\\go\\src\\github.com\\deranjer\\goTorrent\\torrent-project"
]
],
"_from": "is-path-inside@1.0.0",
"_id": "is-path-inside@1.0.0",
"_inBundle": false,
"_integrity": "sha1-/AbloWg/vaE95mev9xe7wQpI838=",
"_location": "/react-scripts/is-path-inside",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "is-path-inside@1.0.0",
"name": "is-path-inside",
"escapedName": "is-path-inside",
"rawSpec": "1.0.0",
"saveSpec": null,
"fetchSpec": "1.0.0"
},
"_requiredBy": [
"/react-scripts/is-path-in-cwd"
],
"_resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.0.tgz",
"_spec": "1.0.0",
"_where": "C:\\Users\\deranjer\\go\\src\\github.com\\deranjer\\goTorrent\\torrent-project",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/is-path-inside/issues"
},
"dependencies": {
"path-is-inside": "^1.0.1"
},
"description": "Check if a path is inside another path",
"devDependencies": {
"mocha": "*"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js"
],
"homepage": "https://github.com/sindresorhus/is-path-inside#readme",
"keywords": [
"path",
"inside",
"folder",
"directory",
"dir",
"file",
"resolve"
],
"license": "MIT",
"name": "is-path-inside",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/is-path-inside.git"
},
"scripts": {
"test": "mocha"
},
"version": "1.0.0"
}

View File

@@ -0,0 +1,31 @@
# is-path-inside [![Build Status](https://travis-ci.org/sindresorhus/is-path-inside.svg?branch=master)](https://travis-ci.org/sindresorhus/is-path-inside)
> Check if a path is inside another path
## Install
```sh
$ npm install --save is-path-inside
```
## Usage
```js
var isPathInside = require('is-path-inside');
isPathInside('a/b', 'a/b/c');
//=> true
isPathInside('x/y', 'a/b/c');
//=> false
isPathInside('a/b/c', 'a/b/c');
//=> false
```
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)