{"_id":"is-relative-path","_rev":"942048","name":"is-relative-path","description":"Whether or not a given path is relative","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"time":{"modified":"2021-09-23T02:08:17.000Z","created":"2015-06-28T01:54:25.959Z","2.0.0":"2017-08-13T21:59:40.526Z","1.0.2":"2017-08-09T13:22:19.281Z","1.0.1":"2016-04-30T19:50:11.105Z","1.0.0":"2015-06-28T01:54:25.959Z"},"users":{},"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"http://www.mrjoelkemp.com/"},"repository":{"type":"git","url":"git+https://github.com/mrjoelkemp/is-relative-path.git"},"versions":{"2.0.0":{"name":"is-relative-path","version":"2.0.0","description":"Whether or not a given path is relative","main":"index.js","engines":{"node":">=0.11.2"},"directories":{"test":"test"},"scripts":{"test":"jscs test index.js && mocha"},"repository":{"type":"git","url":"git+https://github.com/mrjoelkemp/is-relative-path.git"},"keywords":["relative","path"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"http://www.mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/is-relative-path/issues"},"homepage":"https://github.com/mrjoelkemp/is-relative-path","devDependencies":{"jscs":"^2.0.0","mocha":"~2.4.5"},"jscsConfig":{"preset":"airbnb"},"gitHead":"0ca7cbe80f216f9bee8a86fdf93eb4c6ac303919","_id":"is-relative-path@2.0.0","_shasum":"bcd0ad3ec23a4938a77f3403d2dbff34b991fb2f","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.8.1","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"dist":{"shasum":"bcd0ad3ec23a4938a77f3403d2dbff34b991fb2f","size":1355,"noattachment":false,"key":"/is-relative-path/-/is-relative-path-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-relative-path/download/is-relative-path-2.0.0.tgz"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-relative-path-2.0.0.tgz_1502661579596_0.5388900132384151"},"publish_time":1502661580526,"_hasShrinkwrap":false,"_cnpm_publish_time":1502661580526},"1.0.2":{"name":"is-relative-path","version":"1.0.2","description":"Whether or not a given path is relative","main":"index.js","directories":{"test":"test"},"scripts":{"test":"jscs test index.js && mocha"},"repository":{"type":"git","url":"git+https://github.com/mrjoelkemp/is-relative-path.git"},"keywords":["relative","path"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"http://www.mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/is-relative-path/issues"},"homepage":"https://github.com/mrjoelkemp/is-relative-path","devDependencies":{"jscs":"~3.0.3","mocha":"~2.4.5"},"jscsConfig":{"preset":"airbnb"},"gitHead":"8d783212b5c120a0fc96d5007a78112675c9b8fd","_id":"is-relative-path@1.0.2","_shasum":"091b46a0d67c1ed0fe85f1f8cfdde006bb251d46","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.8.1","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"dist":{"shasum":"091b46a0d67c1ed0fe85f1f8cfdde006bb251d46","size":1225,"noattachment":false,"key":"/is-relative-path/-/is-relative-path-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-relative-path/download/is-relative-path-1.0.2.tgz"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-relative-path-1.0.2.tgz_1502284938316_0.35036768880672753"},"publish_time":1502284939281,"_cnpm_publish_time":1502284939281,"_hasShrinkwrap":false},"1.0.1":{"name":"is-relative-path","version":"1.0.1","description":"Whether or not a given path is relative","main":"index.js","directories":{"test":"test"},"scripts":{"test":"jscs test index.js && mocha"},"repository":{"type":"git","url":"git+https://github.com/mrjoelkemp/is-relative-path.git"},"keywords":["relative","path"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"http://www.mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/is-relative-path/issues"},"homepage":"https://github.com/mrjoelkemp/is-relative-path","devDependencies":{"jscs":"~3.0.3","mocha":"~2.4.5"},"jscsConfig":{"preset":"airbnb"},"gitHead":"14153bf8ab6ed1e58e97f6ae7df61eb1db25f3d5","_id":"is-relative-path@1.0.1","_shasum":"ac72793a2d60c049e50676e04a24a8d8f263dc26","_from":".","_npmVersion":"3.8.0","_nodeVersion":"0.12.6","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"dist":{"shasum":"ac72793a2d60c049e50676e04a24a8d8f263dc26","size":1075,"noattachment":false,"key":"/is-relative-path/-/is-relative-path-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-relative-path/download/is-relative-path-1.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/is-relative-path-1.0.1.tgz_1462045808652_0.026822604471817613"},"publish_time":1462045811105,"_cnpm_publish_time":1462045811105,"_hasShrinkwrap":false},"1.0.0":{"name":"is-relative-path","version":"1.0.0","description":"Whether or not a given path is relative","main":"index.js","directories":{"test":"test"},"scripts":{"test":"jscs -p airbnb test index.js && mocha"},"repository":{"type":"git","url":"https://github.com/mrjoelkemp/is-relative-path.git"},"keywords":["relative","path"],"author":{"name":"Joel Kemp","email":"joel@mrjoelkemp.com","url":"http://www.mrjoelkemp.com/"},"license":"MIT","bugs":{"url":"https://github.com/mrjoelkemp/is-relative-path/issues"},"homepage":"https://github.com/mrjoelkemp/is-relative-path","devDependencies":{"jscs":"~1.13.1","mocha":"~2.2.5"},"gitHead":"793d2b2aa3c1a6232166b6667cec35886ddc401b","_id":"is-relative-path@1.0.0","_shasum":"d4230c67da06c3a9a554776d6f7963f84b26561c","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.2","_npmUser":{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},"maintainers":[{"name":"mrjoelkemp","email":"joel@mrjoelkemp.com"},{"name":"pahen","email":"patrik.henningsson@gmail.com"},{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"dist":{"shasum":"d4230c67da06c3a9a554776d6f7963f84b26561c","size":977,"noattachment":false,"key":"/is-relative-path/-/is-relative-path-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-relative-path/download/is-relative-path-1.0.0.tgz"},"publish_time":1435456465959,"_cnpm_publish_time":1435456465959,"_hasShrinkwrap":false}},"readme":"### is-relative-path [![npm](http://img.shields.io/npm/v/is-relative-path.svg)](https://npmjs.org/package/is-relative-path) [![npm](http://img.shields.io/npm/dm/is-relative-path.svg)](https://npmjs.org/package/is-relative-path)\n\n> Sometimes I just want to scream\n\n`npm install is-relative-path`\n\n### Usage\n\n#### `isRelative(path)`\n\n- `path` `<string>`\n- Returns: `<boolean>`\n\n```js\nvar isRelative = require('is-relative-path');\n\nisRelative('../'); // true\nisRelative('/'); // false\n```\n\n### Breaking change\n\n#### Code\n\n| Version | Code                               |\n| ------- | -----------------------------------|\n| 1.x     | `(path) => path[0] === '.'`        |\n| 2.x     | `(path) => !path.isAbsolute(path)` |\n\n#### Test\n\n| path      | v1.x     | v2.x     |\n| --------- | -------- | -------- |\n| `\"\" `     | false    | **true** |\n| `\".\"`     | true     | true     |\n| `\"..\"`    | true     | true     |\n| `\"foo\"`   | false    | **true** |\n| `\"/foo\"`  | false    | false    |\n\n","_attachments":{},"homepage":"https://github.com/mrjoelkemp/is-relative-path","bugs":{"url":"https://github.com/mrjoelkemp/is-relative-path/issues"},"license":"MIT"}