Socket
Socket
Sign inDemoInstall

ghost-storage-github-jsdelivr

Package Overview
Dependencies
2
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ghost-storage-github-jsdelivr

Ghost adapter for upload to github and get accelerated link.


Version published
Maintainers
1
Created

Readme

Source

Ghost adapter for upload to github and get accelerated link.

Adapter Usage

mkdir -p content/adapters/storage/ghost-storage-github-jsdelivr
cp node_modules/ghost-storage-github-jsdelivr/index.js content/adapters/storage/ghost-storage-github-jsdelivr/index.js
{
  "storage": {
    "active": "ghost-storage-github-jsdelivr",
    "ghost-storage-github-jsdelivr": {
      "token": "",
      "owner": "",
      "repos": "",
      "dir": "ghost/",
      "branch": "master",
      "filenameHandler": "date",
      "resolveLink": "cdnLink"
    }
  }
}
KeyTypeDefaultDescription
tokenstringrequired, github token
ownerstringrequired, github username
reposstringrequired, github repos name
dirstringghost/optional, upload directory, empty string means root dir. eg: sub/
branchstringmasteroptional, github repos branch
filenameHandlerstringdateoptional, filename handler. By default will prefix filename with date string. Pass 'hash' to get hashed filename
resolveLinkstringcdnLinkoptional, upload result link. By default is jsdelivr link, pass 'ghLink' to get raw link

Keywords

FAQs

Last updated on 11 Nov 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc