# pastecord

> A Pastecord API wrapper.

Latest version **3.0.1** (published 2022-03-17) · MIT license · 0 weekly downloads

## Install

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

## 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 | 3.0.1 |
| Published | 2022-03-17 |
| First published | 2022-03-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 9.5 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Justin K. |
| Maintainers | aerosphia |

## Links

- npm: https://www.npmjs.com/package/pastecord
- Repository: https://github.com/Aerosphia/pastecord-wrapper
- Homepage: https://github.com/Aerosphia/pastecord-wrapper#readme
- Issues: https://github.com/Aerosphia/pastecord-wrapper/issues
- npm.io page: https://npm.io/package/pastecord

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.26.1

## Recent versions

- 3.0.1 (latest) — 2022-03-17
- 3.0.0 — 2022-03-17
- 2.0.0 — 2022-03-14

## README

# pastecord

#### A [Pastecord](https://pastecord.com/) API wrapper for uploading documents.

### Installation

---

#### npm

```
$ npm i pastecord
```

### Usage

---

Construct a new client and use `client.publish` to create a new document.

```js
const Pastecord = require("pastecord");
const Client = new Pastecord();

(async () => {
    const Data = await Client.publish("Hello, World!");
    // Client.publish() returns an object containing 'url' and 'key'
    console.log(Data.url);
})();
```

### Mini-Docs

---

##

`Client.publish(body: any)`

**Publishes a new document to Pastecord.**

Returns an object containing the url of the document and the identifier (key) of the document.

#### Example:

```
Object {
    url: "https://pastecord.com/ikunisirym",
    key: "ikunisirym",
}
```

### Author

---

@ Justin K. (Aerosphia)

### License

---

MIT License

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