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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ejsmontscript/commission-forge

v1.0.14

Published

Component to boost your popularity by sharing profit

Downloads

43

Readme


lang: en-US title: Attributes

For more informations please visit: docs page

Attributes

Properties

  1. Required properties

| Property | Type | Description | | -------- | -------| ----------- | | amount | number | You have to set initial value how many money you want to send to beneficiary. Will be paid on the end of month period, so there is enough time to change it id you will need. Can be changed manually on account page or by request. | | duration-in-months | number | You have to set initial value for how many monthly periods you want to be subscribed to pay to beneficiary. You can change it later, but minimum number has to be higher than number of months that left or is in progress. Have to be at least 1. Can be changed manually on account page or by request. |

  1. General appearance

| Property | Type | Default value | Description | | ------------------- | ------ | ------------- | ----------- | | label | string | - | Text on the top of component that can be an explanation whcomponent is usefull. Label is created only if its value exist. | | profit-expiration-text | string | - | Text information about beneficiary profit expiration. Use this property if you have selected in setting in your Commission Forge account that you want to remove beneficiaries which are not confirmed for longer time than value in settings. You don't need to write how long time is for expirarttion. Value of time will be added after this text. Example profit text: 'Profit will expire if we won't have chance to confirm recommendation after '. Text from example is default value if you have enabled beneficiary profit expiration in your account settings but value of 'profit-expiration-text' property is missing. | | name-label | string | Name | Usefull if you want change text of name label for example to other language. | | hide-name | boolean | false | Set true to hide name input and label. | | lastname-label | string | Lastname | Usefull if you want change text of lastname label for example to other language. | | hide-lastname | boolean | false | Set true to hide lastname input and label. | | background-color | string | rgb(245, 213, 94) | Background color of whole component | | border-color | string | rgb(229, 42, 29) | Color of border of whole component | | labels-text-size | string | 1rem | font size of all labels of inputs | | labels-text-color | string | rgb(229 42 29) | Color of all labels of inputs |

  1. Submit button appearance

| Property | Type | Default value | Description | | ------------------------ | ------ | ------------- | ----------- | | submit-button-text | string | - | Text of submit button of component that will store data of beneficiary. Button is not required and is created only if its text exist. | | submit-button-height | string | 2.75rem | Height of submit button of component that will store data of beneficiary. | | submit-button-width | string | 2.75rem | Width of submit button of component that will store data of beneficiary. | | submit-button-padding | string | 1rem | Inline padding of submit button of component that will store data of beneficiary. | | submit-button-text-color | string | white | Color of text of submit button of component that will store data of beneficiary. | | submit-button-text-size | string | 1rem | Font size of submit button of component that will store data of beneficiary. | | submit-button-background | string | rgb(247 59 103) | Background color of submit button of component that will store data of beneficiary. | | submit-button-border | string | none | Border property of submit button of component that will store data of beneficiary. | | submit-button-radius | string | 0.375rem | Border radius of submit button of component that will store data of beneficiary. |

Methods

| Name | Arguments | Return | Description | | --------------------------------- | ------------------------------ | ------ | ----------- | | initAndRegisterComponent(options) | options: { apiKey } - required | - | You have to use this function to provide API key. Without API key component will not be able to do any proper request | | storeBeneficiary(selector = null) | selector: string - optional | Promise | You can use this function to store beneficiary data without using submit button built in component (for example if component is a part of existing form in your html and you have already own button). Argument selector can be used in case you have more than one use of commission-forge component in your html and need to store data form selected one |