Catalog npm
Back to packageRELEASE DETAILS

1.0.8

npm

4everland-pinning

## Install

4everlandipfss3upload
Published21 Sept 2023
Direct dependencies26
Transitive dependenciesNot calculated

README

Current package documentation

4everland-sdk

Install


npm i 4everland-sdk

yarn add 4everland-sdk

Esmodule

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

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

Browser

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

<script>

  const { Client } = Clientland

</script>



Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 26

Native requirements
26 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@aws-sdk/client-s3
Environment
{
  "local_name": "@aws-sdk/client-s3",
  "alias": false,
  "peer_metadata": null
}
^3.391.0runtime
@aws-sdk/lib-storage
Environment
{
  "local_name": "@aws-sdk/lib-storage",
  "alias": false,
  "peer_metadata": null
}
^3.391.0runtime
@aws-sdk/signature-v4-crt
Environment
{
  "local_name": "@aws-sdk/signature-v4-crt",
  "alias": false,
  "peer_metadata": null
}
^3.398.0runtime
axios
Environment
{
  "local_name": "axios",
  "alias": false,
  "peer_metadata": null
}
^1.4.0runtime
ts-node
Environment
{
  "local_name": "ts-node",
  "alias": false,
  "peer_metadata": null
}
^10.9.1runtime
@aws-sdk/types
Environment
{
  "local_name": "@aws-sdk/types",
  "alias": false,
  "peer_metadata": null
}
^3.391.0development
@babel/core
Environment
{
  "local_name": "@babel/core",
  "alias": false,
  "peer_metadata": null
}
^7.22.10development
@babel/preset-env
Environment
{
  "local_name": "@babel/preset-env",
  "alias": false,
  "peer_metadata": null
}
^7.22.10development
@rollup/plugin-babel
Environment
{
  "local_name": "@rollup/plugin-babel",
  "alias": false,
  "peer_metadata": null
}
^6.0.3development
@rollup/plugin-commonjs
Environment
{
  "local_name": "@rollup/plugin-commonjs",
  "alias": false,
  "peer_metadata": null
}
^25.0.4development
@rollup/plugin-json
Environment
{
  "local_name": "@rollup/plugin-json",
  "alias": false,
  "peer_metadata": null
}
^6.0.0development
@rollup/plugin-node-resolve
Environment
{
  "local_name": "@rollup/plugin-node-resolve",
  "alias": false,
  "peer_metadata": null
}
^15.1.0development
@rollup/plugin-replace
Environment
{
  "local_name": "@rollup/plugin-replace",
  "alias": false,
  "peer_metadata": null
}
^5.0.2development
@rollup/plugin-terser
Environment
{
  "local_name": "@rollup/plugin-terser",
  "alias": false,
  "peer_metadata": null
}
^0.4.3development
@rollup/plugin-typescript
Environment
{
  "local_name": "@rollup/plugin-typescript",
  "alias": false,
  "peer_metadata": null
}
^11.1.2development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^20.5.0development
@typescript-eslint/eslint-plugin
Environment
{
  "local_name": "@typescript-eslint/eslint-plugin",
  "alias": false,
  "peer_metadata": null
}
^6.4.0development
@typescript-eslint/parser
Environment
{
  "local_name": "@typescript-eslint/parser",
  "alias": false,
  "peer_metadata": null
}
^6.4.0development
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
^8.47.0development
eslint-config-prettier
Environment
{
  "local_name": "eslint-config-prettier",
  "alias": false,
  "peer_metadata": null
}
^9.0.0development
eslint-plugin-prettier
Environment
{
  "local_name": "eslint-plugin-prettier",
  "alias": false,
  "peer_metadata": null
}
^5.0.0development
prettier
Environment
{
  "local_name": "prettier",
  "alias": false,
  "peer_metadata": null
}
^3.0.1development
rollup
Environment
{
  "local_name": "rollup",
  "alias": false,
  "peer_metadata": null
}
^3.28.0development
rollup-plugin-polyfill-node
Environment
{
  "local_name": "rollup-plugin-polyfill-node",
  "alias": false,
  "peer_metadata": null
}
^0.12.0development
tslib
Environment
{
  "local_name": "tslib",
  "alias": false,
  "peer_metadata": null
}
^2.6.1development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.1.6development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-6CSnomCHszh2tcDP4brm+p3tG7CBG2vgrA0lWjfLbjLggR/hGTWwDLcuuMiYFNBuYV42lN1k3+1JLiFN4SbQew==",
  "shasum": "5b6ccea203b3b732cf7dd6ac9418c722acec461e",
  "tarball": "https://registry.npmjs.org/4everland-pinning/-/4everland-pinning-1.0.8.tgz",
  "fileCount": 20,
  "unpackedSize": 3073136,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQCnBWRGeKd8Hs3K2ipqn6ZRPcBaZOD/+gtQWsfaUnWmwwIgR0ziP0Y60Ee0IXpVdAIQU/iL7MjIeJjdJWuC5phzTV4="
    }
  ]
}

Repository

PENDING
yepcing/4everland-sdk

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 20:08 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:cdc67c1052d37e08b39b39dd4207355be14ef60b2be3279a3c90fe7c64d01f50

Other collected versions

1.0.1027 Sept1.0.921 Sept1.0.715 Sept1.0.631 Aug1.0.531 Aug1.0.431 AugView all collected versions →