is-inner-link
Returns true if a link targets a directory inside its parent directory
Last updated 5 years ago by zkochan .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install is-inner-link 
SYNC missed versions from official npm registry.

is-inner-link

Returns true if a link targets a directory inside its parent directory

npm version

Installation

npm i -S is-inner-link

Usage

'use strict'
const isInnerLink = require('is-inner-link')

isInnerLink('node_modules', 'foo')
  .then(link => console.log(link))
  .catch(err => console.error(err))
//> {isInner: false, target: '/zkochan/foo'}

License

MIT © Zoltan Kochan

Current Tags

  • 4.0.0                                ...           latest (5 years ago)
  • 4.0.0                                ...           next (5 years ago)

6 Versions

  • 4.0.0                                ...           5 years ago
  • 3.0.0                                ...           7 years ago
  • 2.0.2                                ...           9 years ago
  • 2.0.1                                ...           9 years ago
  • 2.0.0                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (8)

Copyright 2013 - present © cnpmjs.org | Home |