Socket
Book a DemoInstallSign in
Socket

@wheelofnames/lib

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wheelofnames/lib

This package contains some common utilities used by the https://wheelofnames.com web client, the Wheel of Names API, Discord bot, as well as various other tools. This package is likely useless to you if you are not a Wheel of Names developer.

npmnpm
Version
0.0.22
Version published
Weekly downloads
28
-76.27%
Maintainers
2
Weekly downloads
 
Created
Source

Wheel of Names lib

This package contains some common utilities used by the https://wheelofnames.com web client, the Wheel of Names API, Discord bot, as well as various other tools. This package is likely useless to you if you are not a Wheel of Names developer.

Contents

  • Wheel (and Wheel2) classes
  • WheelConfig class
  • standardizeWheelConfig function
  • WheelPainter (web-only) class
  • hubSizes object
  • ImageUtil functions
  • WheelEntry, WheelType, HubSize, ApiWheel, ShareMode types

Developing

This package is part of the Wheel of Names monorepo, which is private. Everything below this point is only useful for those with access to the repo.

Install dev dependencies with npm i.

Testing

npx playwright install --with-deps # only needs to be done once
npm run test

To test local changes to lib in the client and backend, npm uninstall @wheelofnames/lib in their respective directories, then add "@wheelofnames/lib": "file:../lib", to their package.json and run npm i. Don't forget to revert their package.json and package-lock.json before committing, since local dependencies don't work in CI/CD.

Publishing

Publish a new version:

npm run publish:patch # or minor/major

FAQs

Package last updated on 17 Nov 2024

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