pax_global_header00006660000000000000000000000064123731030110014501gustar00rootroot0000000000000052 comment=f71d4ecaa43bfe23c9cb35af6bf31e6b5b3f04eb is-path-cwd-1.0.0/000077500000000000000000000000001237310301100136175ustar00rootroot00000000000000is-path-cwd-1.0.0/.editorconfig000066400000000000000000000003371237310301100162770ustar00rootroot00000000000000root = true [*] indent_style = tab end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true [package.json] indent_style = space indent_size = 2 [*.md] trim_trailing_whitespace = false is-path-cwd-1.0.0/.gitattributes000066400000000000000000000000141237310301100165050ustar00rootroot00000000000000* text=auto is-path-cwd-1.0.0/.gitignore000066400000000000000000000000151237310301100156030ustar00rootroot00000000000000node_modules is-path-cwd-1.0.0/.jshintrc000066400000000000000000000002761237310301100154510ustar00rootroot00000000000000{ "node": true, "esnext": true, "bitwise": true, "camelcase": true, "curly": true, "immed": true, "newcap": true, "noarg": true, "undef": true, "unused": "vars", "strict": true } is-path-cwd-1.0.0/.travis.yml000066400000000000000000000000461237310301100157300ustar00rootroot00000000000000language: node_js node_js: - '0.10' is-path-cwd-1.0.0/index.js000066400000000000000000000002131237310301100152600ustar00rootroot00000000000000'use strict'; var path = require('path'); module.exports = function (str) { return path.resolve(str) === path.resolve(process.cwd()); }; is-path-cwd-1.0.0/license000066400000000000000000000021371237310301100151670ustar00rootroot00000000000000The MIT License (MIT) Copyright (c) Sindre Sorhus (sindresorhus.com) 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. is-path-cwd-1.0.0/package.json000066400000000000000000000010471237310301100161070ustar00rootroot00000000000000{ "name": "is-path-cwd", "version": "1.0.0", "description": "Check if a path is CWD", "license": "MIT", "repository": "sindresorhus/is-path-cwd", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "http://sindresorhus.com" }, "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "files": [ "index.js" ], "keywords": [ "path", "cwd", "pwd", "check", "filepath", "file", "folder" ], "devDependencies": { "mocha": "*" } } is-path-cwd-1.0.0/readme.md000066400000000000000000000007321237310301100154000ustar00rootroot00000000000000# 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) is-path-cwd-1.0.0/test.js000066400000000000000000000004171237310301100151360ustar00rootroot00000000000000'use strict'; var assert = require('assert'); var isPathCwd = require('./'); it('should check if path is cwd', function () { assert(isPathCwd(process.cwd())); assert(isPathCwd('.')); assert(!isPathCwd('foo')); assert(!isPathCwd('/')); assert(!isPathCwd('..')); });