work.suroh.tk/node_modules/is-relative-path/Readme.md

17 lines
419 B
Markdown
Raw Normal View History

2019-12-02 12:22:45 +00:00
### 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)
> Sometimes I just want to scream
`npm install is-relative-path`
### Usage
```js
var isRelative = require('is-relative-path');
isRelative('../'); // true
isRelative('/'); // false
```