Socket
Socket
Sign inDemoInstall

is-absolute

Package Overview
Dependencies
1
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    is-absolute

Return true if a file path is absolute.


Version published
Weekly downloads
4.9M
decreased by-19.68%
Maintainers
1
Install size
9.12 kB
Created
Weekly downloads
 

Readme

Source

is-absolute NPM version Build Status

Return true if a file path is absolute.

Based on the isAbsolute utility method in express.

Install with npm

npm i is-absolute --save

Usage

var isAbsolute = require('is-absolute');
console.log(isAbsolute('a/b/c.js'));
//=> 'false';

Running tests

Install dev dependencies.

npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Other projects

  • is-relative: Returns true if the path appears to be relative.
  • is-dotfile: Return true if a file path is (or has) a dotfile.
  • is-glob: Returns true if the given string looks like a glob pattern.
  • cwd: Node.js util for easily getting the current working directory of a project based on package.json or the given path.
  • git-config-path: Resolve the path to the user's global .gitconfig.

Author

Jon Schlinkert

License

Copyright (c) 2014-2015 Jon Schlinkert
Released under the MIT license


This file was generated by verb-cli on March 05, 2015.

Keywords

FAQs

Last updated on 05 Mar 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc