New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@beyondwords/ghost-helper

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@beyondwords/ghost-helper

BeyondWords Player integration for Ghost

  • 0.0.1-rc.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18
increased by500%
Maintainers
1
Weekly downloads
 
Created
Source

BeyondWords Ghost Helper

Build npm version

The Ghost Helper aims to make the integration with Ghosts easier by placing the BeyondWords Player in the right place for your theme and by selecting the correct content based on the page URL.

Documentation

  1. Getting started guide
  2. Ghost docs

Examples

Basic

<script async defer src="https://proxy.beyondwords.io/npm/@beyondwords/ghost-helper@latest/dist/umd.js"
  onload="new BeyondWords.GhostHelper({
    projectId: <ID>
  })">
</script>

Custom position

<script async defer src="https://proxy.beyondwords.io/npm/@beyondwords/ghost-helper@latest/dist/umd.js"
  onload="new BeyondWords.GhostHelper({
    projectId: <ID>,
    target: '.custom-target',
  })">
</script>

Custom styles

<style>
    #beyondwords-player {
        margin: 16px 0;
    }
</style>
<script async defer src="https://proxy.beyondwords.io/npm/@beyondwords/ghost-helper@latest/dist/umd.js"
  onload="new BeyondWords.GhostHelper({
    projectId: <ID>
  })">
</script>

Player reference

const helper = new BeyondWords.GhostHelper({
  projectId: <ID>
});
await helper.playerLoader;
helper.player.addEventListener("<any>", console.log);

Other

For further customization you can refer to the BeyondWords Player documentation as the arguments of the GhostHelper constructor matches the BeyondWords Player constructor.

Development

Prerequisites

To work on the project you must have installed:

  • Node.js 16 or higher

  • npm 8 or higher

  • npm dependencies:

    npm install
    

Build

The build script will produce artifacts in the /dist directory, using Vite.

The build artifact is a single js file using the umd format.

npm run build

Lint

The lint script does a full static analysis of the source code, using ESLint.

npm run lint

Release

A new version of the Ghost Helper will be published automatically to NPM using the release Github Actions workflow on each new published Github release.

License

BeyondWords Ghost Helper is MIT licensed.

FAQs

Package last updated on 30 May 2023

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc