# 4everland-pinning

> ## Install

Latest version **1.0.10** (published 2023-09-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install 4everland-pinning
pnpm add 4everland-pinning
yarn add 4everland-pinning
bun add 4everland-pinning
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.10 |
| Published | 2023-09-27 |
| First published | 2023-08-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 2.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | yepCing |
| Maintainers | yipcing |
| Keywords | 4everland, S3, upload, ipfs |

## Links

- npm: https://www.npmjs.com/package/4everland-pinning
- Repository: https://github.com/yepCing/4everland-sdk
- Issues: https://github.com/yepCing/4everland-sdk/issues
- npm.io page: https://npm.io/package/4everland-pinning

## Dependencies (5)

- [axios](https://npm.io/package/axios.md) ^1.4.0
- [ts-node](https://npm.io/package/ts-node.md) ^10.9.1
- [@aws-sdk/client-s3](https://npm.io/package/@aws-sdk/client-s3.md) ^3.391.0
- [@aws-sdk/lib-storage](https://npm.io/package/@aws-sdk/lib-storage.md) ^3.391.0
- [@aws-sdk/signature-v4-crt](https://npm.io/package/@aws-sdk/signature-v4-crt.md) ^3.398.0

## Recent versions

- 1.0.10 (latest) — 2023-09-27
- 1.0.9 — 2023-09-21
- 1.0.8 — 2023-09-21
- 1.0.7 — 2023-09-15
- 1.0.6 — 2023-08-31
- 1.0.5 — 2023-08-31
- 1.0.4 — 2023-08-31
- 1.0.3 — 2023-08-30
- 1.0.2 — 2023-08-30
- 1.0.1 — 2023-08-30
- 1.0.0 — 2023-08-30

## README

# 4everland-sdk

## Install

```shell

npm i 4everland-sdk

yarn add 4everland-sdk

```

**Esmodule**

```js
import { Client } from '4everland-sdk'

const client = new Client({
  authServiceUrl: '',
  pinningServiceUrl: '',
  endpoint: '',
  storageType: 'IPFS'
})
let address = '' // metamask address

const signMessage = await client.getSignText(address)

// Use signMessage for signing
// ....

// Verification signature
// if expiration expired, you need Verification signature again
const { expiration } = await client.verifySign(address, signature)

// upload
const task = client.upload({
  Key: file.name,
  Body: file,
  ContentType: file.type
})
task.progress((e) => {
  // loaded , total
})
const { cid } = await task.done()

const { requestid } = await client.addPin({
  cid
})
// specified pin
await clinet.getPin(requestid)

// pin list
await clinet.listPin()
```

**CommonJs**

```js
const { Client } = require('4everland-sdk')
```

**Browser**

```js
<script src="../dist/4everland-sdk.umd.min.js"></script>

<script>

  const { Client } = Clientland

</script>



```

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