# opencdn

> Open your CDN faster than the light!

Latest version **1.0.1** (published 2021-04-30) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install opencdn
pnpm add opencdn
yarn add opencdn
bun add opencdn
```

## 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.0.1 |
| Published | 2021-04-30 |
| First published | 2021-04-30 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 38.1 KB |
| Known vulnerabilities | 0 (+3 in 2 direct dependencies) |
| Install scripts | no |
| Author | n0ct3ri4 |
| Maintainers | n0ct3ri4 |
| Keywords | node, js, nodejs, cdn, open, opencdn, content, delivery, network, server, express, http, https, packages |

## Links

- npm: https://www.npmjs.com/package/opencdn
- Repository: https://github.com/n0ct3ri4/OpenCDN
- Homepage: https://github.com/n0ct3ri4/OpenCDN#readme
- Issues: https://github.com/n0ct3ri4/OpenCDN/issues
- npm.io page: https://npm.io/package/opencdn

## Dependencies (3)

- [fs](https://npm.io/package/fs.md) 0.0.1-security
- [colors](https://npm.io/package/colors.md) 1.4.0
- [express](https://npm.io/package/express.md) 4.17.1

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.1 (latest) — 2021-04-30
- 1.0.0 — 2021-04-30

## README

# OpenCDN

Open your CDN faster then the light!

# How to ?

First, import OpenCDN :

```js
const cdn = require("opencdn");
```

---

Next step is opening the CDN. Type this :

```js
cdn.open("localhost", 8080);
```

> Default hostname : **localhost**

> Default port is : **8080**

---

Then, add a folder to the CDN :

```js
cdn.addFolder(`${__dirname}/www`);
```

> Default folder : **${\_\_dirname}/www**

---

You can close the CDN using the `close()` method :

```js
cdn.close();
```

# LICENSE

GPL-3.0

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