Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@getchange/change-drop-in
Advanced tools
Two components for accepting crypto donations on the web.
Add the following code to your page.
<change-donation-form
public-key="pk_live_d1acaf4c39ab38273133cb97649ddba0ecd5d76b81c8b1db7039f7ae937f9b33"
nonprofit-id="n_B7e7Xu5RFvYHGLHDCSMQ5Yck"
></change-donation-form>
<script type="module" src="https://cdn.jsdelivr.net/npm/@getchange/change-drop-in@1/dist/change-donation-form.min.js"></script>
You now have a donation form for Make-a-Wish 501(c)(3)!
Change the nonprofit by setting the nonprofit-id
attribute. To find nonprofit ids for over 200K nonprofits, sign up for free at https://api.getchange.io and navigate to the Nonprofits tab. This component will always be free.
Once you've signed up, set the public-key
to match your account. You can find your account's public key at https://api.getchange.io/developers.
You can change the style of the donation form using CSS custom properties. For example:
<change-donation-form
style="
--background-color-primary: green;
--color-primary: white;
"
></change-donation-form>
Property | Description |
---|---|
--color | Text color |
--background-color | Component background |
--color-primary | Primary and selected button text color |
--color-disabled | Disabled button text color |
--background-color-primary | Primary and selected button background color |
--background-color-primary-hover | Hovered primary and selected button background color |
--background-color-disabled | Disabled button background color |
--input-border-color | Input border color |
--input-border-radius | Input border radius |
--input-color | Input text color |
--input-background-color | Input background color |
--input-background-color-hover | Hovered input background color. Only applies to button inputs, not text inputs. |
--input-color-hover | Hovered input text color |
--input-placeholder-color | Input placeholder color |
Here's an example of the default look, alongside a fully customized version:
Default | Customized |
---|---|
Documentation coming soon.
FAQs
UI element that lets users donate crypto
The npm package @getchange/change-drop-in receives a total of 19 weekly downloads. As such, @getchange/change-drop-in popularity was classified as not popular.
We found that @getchange/change-drop-in 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.