# get-base-path

> Small utility to handle paths for different hosts - for hosting on local/Github/etc.

Latest version **1.1.1** (published 2020-05-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install get-base-path
pnpm add get-base-path
yarn add get-base-path
bun add get-base-path
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2020-05-15 |
| First published | 2020-05-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 12.14.1 |
| Dependencies | 0 |
| Unpacked size | 1.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Eoghan O'Keeffe |
| Maintainers | epok.tech |

## Links

- npm: https://www.npmjs.com/package/get-base-path
- Repository: https://github.com/keeffEoghan/get-base-path
- Homepage: https://github.com/keeffEoghan/get-base-path#readme
- Issues: https://github.com/keeffEoghan/get-base-path/issues
- npm.io page: https://npm.io/package/get-base-path

## Recent versions

- 1.1.1 (latest) — 2020-05-15

## README

# `get-base-path`

Small utility to handle paths for different hosts - for hosting on local/Github/etc.

## Usage

```javascript
import getBasePath from '../';

const url = getBasePath()+'path/to.asset';

console.log(url);

(async () => {
    const response = await fetch(url);

    console.log(response.ok);
})();
```

---
_Source: https://npm.io/package/get-base-path · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
