npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

configuration-handler

v4.3.1

Published

Handles the player configuration between the players studio module and the player management api

Downloads

16

Readme

studio-module-players-configuration-handler

"The Bat"

The Bat

Information

This package handles player configuration logic for plugins within the players studio module. It is designed to manipulate the player configuration in tandem to the existing player-configuration-model.coffee - this allows us to continuously offload functionality from within the studio module into this project without any loss of functionality.

Currently, only (a subset of) the "first class" plugins within the studio view uses this module. The customer-facing studio CoffeeScript creates a view state object and sends it to the plugin-specific configuration handler. From the view state, the player configuration is modified as needed and sent to Topper Harley.

In order to support working in parallel with the studio's existing player configuration model (which also makes modifications to the preview configuration on Topper Harley), the module exposes the fetch() method to synchronize any external updates to the configuration and assure this module maintains a clean & fresh internal onfiguration.


Installation / Development

To install:

npm install

To run tests:

npm test

To lint files:

npm run lint

To run code coverage:

npm run coverage

Deployment

Builds are automatically tested through TeamCity and their results are automatically posted onto pending pull requests.

To version this package:

npm version patch #or major or minor
git push --tags origin master

Roadmap

This is the planned API. It is not fully implemented or final.

  • player.initialize

  • player.fetch

  • player.publish

  • player.discard

  • player._oldPublish (delete when no longer needed by old studio)

  • player.save

  • player.deletePlayer

  • player.isPublished

  • player.containsUnpublishedPlugins

  • player.getName

  • player.getDescription

  • player.getId

  • player.getAccountId

  • player.getCreatedAt

  • player.getEmbedCount

  • player.getUrl

  • player.getPublishRequest

  • player.setName

  • player.setDescription

  • player.preview.removeConfigProperty

  • player.preview.applyConfigProperty

  • player.preview.removePlugin

  • player.preview.getVersion

  • player.preview.getVersionAlias

  • player.preview.getConfigProperty

  • player.preview.getPlugin

  • player.preview.getPreviewUrl

  • player.preview.setVersion

  • player.preview.setVersionAlias

  • player.preview.setConfigProperty

  • player.preview.setPlugin

  • player.master.getPlugin

  • player.master.getVersion

  • player.master.getVersionAlias

  • player.master.getConfigProperty

  • player.master.getPreviewUrl