Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-absolute

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-absolute

Returns true if a file path is absolute. Does not rely on the path module and can be used as a polyfill for node.js native `path.isAbolute`.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6M
decreased by-5.46%
Maintainers
2
Weekly downloads
 
Created

What is is-absolute?

The is-absolute npm package is a utility that helps determine if a given file path is an absolute path. This can be particularly useful in file system operations where the distinction between absolute and relative paths is important.

What are is-absolute's main functionalities?

Check if a path is absolute

This feature allows you to check if a given path is absolute. An absolute path is one that starts from the root directory, as opposed to a relative path which is relative to the current working directory.

const isAbsolute = require('is-absolute');

console.log(isAbsolute('/home/user')); // true
console.log(isAbsolute('home/user')); // false

Other packages similar to is-absolute

Keywords

FAQs

Package last updated on 13 Jul 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc