Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
electron-gumroad-license
Advanced tools
Readme
This library allows you to verify and store a user's license for your Electron app with Gumroad's API.
A valid license is automatically stored in a local file that's encrypted with a key unique to the user's computer. While this doesn't prevent cracking a license, it makes it more difficult to copy a license file to another computer.
To use this library, create a new licenseManager
with the ID of your Gumroad
product. You can then use it to check the current license, validate a new one,
and more:
import { createLicenseManager } from "electron-gumroad-license";
const licenseManager = createLicenseManager("product-id");
// Verify a license key and store it if it's valid
await licenseManager.addLicense("license-key");
// Check whether a local license exists and if it's valid
await licenseManager.checkCurrentLicense();
In addition to the product ID, you can pass an option object to the licenseManager. The following values can be set:
const options = {
/** Specifies how many times a single license code can be activated. Default: unlimited. */
maxUses: number;
/** Specifies how many days a license stays valid without being validated. Default: unlimited. */
maxDaysBetweenChecks: number;
/** Overrides Gumroad's default API endpoint for verifying licenses. */
gumroadApiUrl: string;
/** Disables encrypting the license key with a unique machine id. */
disableEncryption: boolean;
}
This package is still in its early stages. Please feel free to contribute by opening issues and submitting PRs if you feel that something could be done better.
FAQs
Check, store, and manage your users' Gumroad license
The npm package electron-gumroad-license receives a total of 5 weekly downloads. As such, electron-gumroad-license popularity was classified as not popular.
We found that electron-gumroad-license demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.