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,6 @@
'use strict';
var path = require('path');
module.exports = function (str) {
return path.resolve(str) === path.resolve(process.cwd());
};

View File

@@ -0,0 +1,69 @@
{
"_args": [
[
"is-path-cwd@1.0.0",
"C:\\Users\\deranjer\\go\\src\\github.com\\deranjer\\goTorrent\\torrent-project"
]
],
"_from": "is-path-cwd@1.0.0",
"_id": "is-path-cwd@1.0.0",
"_inBundle": false,
"_integrity": "sha1-0iXsIxMuie3Tj9p2dHLmLmXxEG0=",
"_location": "/react-scripts/is-path-cwd",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "is-path-cwd@1.0.0",
"name": "is-path-cwd",
"escapedName": "is-path-cwd",
"rawSpec": "1.0.0",
"saveSpec": null,
"fetchSpec": "1.0.0"
},
"_requiredBy": [
"/react-scripts/del",
"/react-scripts/webpack-dev-server/del"
],
"_resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-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-cwd/issues"
},
"description": "Check if a path is CWD",
"devDependencies": {
"mocha": "*"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js"
],
"homepage": "https://github.com/sindresorhus/is-path-cwd#readme",
"keywords": [
"path",
"cwd",
"pwd",
"check",
"filepath",
"file",
"folder"
],
"license": "MIT",
"name": "is-path-cwd",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/is-path-cwd.git"
},
"scripts": {
"test": "mocha"
},
"version": "1.0.0"
}

View File

@@ -0,0 +1,28 @@
# is-path-cwd [![Build Status](https://travis-ci.org/sindresorhus/is-path-cwd.svg?branch=master)](https://travis-ci.org/sindresorhus/is-path-cwd)
> Check if a path is [CWD](http://en.wikipedia.org/wiki/Working_directory)
## Install
```sh
$ npm install --save is-path-cwd
```
## Usage
```js
var isPathCwd = require('is-path-cwd');
isPathCwd(process.cwd());
//=> true
isPathCwd('unicorn');
//=> false
```
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)