📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP →
Socket
Sign inDemoInstall
Socket

abs

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abs

A library to convert a path into an absolute path.

1.3.9
Source
npm
Version published
Weekly downloads
27K
-6.52%
Maintainers
1
Weekly downloads
 
Created
Source

abs

Support me on Patreon Buy me a book PayPal Ask me anything Version Downloads

A library to convert a path into an absolute path.

:cloud: Installation

$ npm i --save abs

:clipboard: Example

const abs = require("abs");

console.log(abs("/foo"));
// => "/foo"

console.log(abs("foo"));
// => "/path/to/where/you/are/foo"

console.log(abs("~/foo"));
// => "/home/username/foo"

:question: Get Help

There are few ways to get help:

  • Please post questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.
  • For bug reports and feature requests, open issues. :bug:
  • For direct and quick help, you can use Codementor. :rocket:

:memo: Documentation

abs(input)

Computes the absolute path of an input.

Params

  • String input: The input path (if not provided, the current working directory will be returned).

Return

  • String The absolute path.

:yum: How to contribute

Have an idea? Found a bug? See how to contribute.

:sparkling_heart: Support my projects

I open-source almost everything I can, and I try to reply everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications for free! You can even change the source code and redistribute (even resell it).

However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:

  • Starring and sharing the projects you like :rocket:

  • Buy me a book—I love books! I will remember you after years if you buy me one. :grin: :book:

  • PayPal—You can make one-time donations via PayPal. I'll probably buy a coffee tea. :tea:

  • Support me on Patreon—Set up a recurring monthly donation and you will get interesting news about what I'm doing (things that I don't share with everyone).

  • Bitcoin—You can send me bitcoins at this address (or scanning the code below): 1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6

Thanks! :heart:

:dizzy: Where is this library used?

If you are using this library in one of your projects, add it in this list. :sparkles:

  • 3abn—A 3ABN radio client in the terminal.
  • bible—Read the Holy Bible via the command line.
  • blah—A command line tool to optimize the repetitive actions.
  • bloggify-paths—Helper library for maintaining the Bloggify paths in one place.
  • cdnjs-importer—Easy way to import a library into CDNJS.
  • cli-sunset—A fancy command line tool for knowing the sunset time.
  • emojer-cli—Command line tool for emojer.
  • engine-app (by jillix)—Engine app related helper functions.
  • engine-paths (by jillix)—Keeping the Engine paths in one place.
  • engine-tools (by jillix)—Engine Tools library and CLI app.
  • ethers-cli (by Richard Moore)—Command-Line Interface to ethers.io and ethers.space.
  • extendscript-bundlr—a tool for bundling Adobe ExtendScripts that use the #include 'path/to/file' statement
  • fwatcher—Watch files for changes.
  • gh-notifier—Receive desktop notifications from your GitHub dashboard.
  • ghcal—See the GitHub contributions calendar of a user in the command line.
  • git-command (by ShuaiLiang)—Execute git command using Node.js
  • git-issues (by Gabriel Petrovay)—Git issues extension to list issues of a Git project
  • git-repos—Find all the git repositories in a specified directory, recursively.
  • git-stats—Local git statistics including GitHub-like contributions calendars.
  • github-labeller—Automagically create issue labels in your GitHub projects.
  • gpm—npm + git = gpm - Install NPM packages and dependencies from git repositories.
  • gry—A minimalist NodeJS wrapper for the git commands. gry stands for the Git RepositorY.
  • gry-2—A minimalist NodeJS wrapper for the git commands. gry stands for the Git RepositorY.
  • idea—A lightweight CLI tool and module for keeping ideas in a safe place quick and easy.
  • image-to-ascii-cli—View images in text format, in your terminal.
  • maybe-require—A less violent require.
  • mdy—View markdown files in the command line with ANSI styled images.
  • messager—Inter-process communication made simple.
  • mongof—Sync MongoDB collections with JSON files.
  • namy—Gets the name of the exported function.
  • np-init—Easily start a npm package from scratch.
  • package-json-path—Get the package.json path in a specific directory.
  • packy—Set default fields in your package.json files.
  • parrot-bot—A parrot-like bot you can talk with.
  • pm2-meteor (by andruschka)—Simplest way to deploy, scale and run Meteor Apps with PM2.
  • read-file-cache—Read files and cache them.
  • rucksack—JavaScript and CSS bundler.
  • ship-release—Publish new versions on GitHub and npm with ease.
  • simplywatch (by danielkalen)—Watches files and upon change executes a command for each file INDIVIDUALLY with file-related params
  • ssh-remote—Automagically switch on the SSH remote url in a Git repository.
  • statique—A Node.JS static server module with built-in cache options and route features.
  • tester-init—Init tests for tester.
  • tilda-init—Init cli applications.
  • tithe—Organize and track the tithe payments.
  • web-term—A full screen terminal in your browser.
  • write-file-p—Create the directory structure and then create the file.

:scroll: License

MIT Š Ionică Bizău

Keywords

absolute

FAQs

Package last updated on 07 Sep 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