is-inner-link
Returns true if a link targets a directory inside its parent directory
Last updated 6 years ago by zkochan .
MIT · Repository · Original npm · Tarball · package.json
$ npm 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|yarn|pnpm> add 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

  • 5.0.0                                ...           latest (9 months ago)
  • 4.0.0                                ...           next (6 years ago)

7 Versions

  • 5.0.0                                ...           9 months ago
  • 4.0.0                                ...           6 years ago
  • 3.0.0                                ...           8 years ago
  • 2.0.2                                ...           9 years ago
  • 2.0.1                                ...           9 years ago
  • 2.0.0                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Total 18
Today 0
This Week 0
This Month 15
Last Day 0
Last Week 6
Last Month 1
Dependencies (2)
Dev Dependencies (8)

© 2010 - cnpmjs.org x YWFE | Home | YWFE