Socket
Book a DemoInstallSign in
Socket

absolute-path.macro

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

absolute-path.macro

A Babel macro to convert relative paths to absolute paths

0.0.1
latest
Source
npmnpm
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

absolute-path.macro npm Version Build Status

A Babel macro to convert relative paths to absolute paths

Usage

First, configure babel-plugin-macros.

Then, use absolute-path.macro as follows:

const {absolutePath} = require('absolute-path.macro')

console.log(absolutePath`foo`)

The above code will compile into:

console.log(`/path/to/foo`)

(Where /path/to/foo is the absolute path to foo.)

Installation

$ yarn add --dev absolute-path.macro

License

MIT

Keywords

absolute

FAQs

Package last updated on 07 Apr 2019

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.