Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@everfund/js-sdk
Advanced tools
Our core JavaScript library for building modern donation experiences. It provides components like checkout forms, subscription management, and donor profiles to help developers quickly integrate donation functionality into nonprofit websites and applications.
There are two ways you can include @everfund/js-sdk
in your project. You can either import the @everfund/js-sdk npm module or load @everfund/js-sdk with a script tag.
everfund/js-sdk
as ES modulepnpm i @everfund/js-sdk
# or
yarn add @everfund/js-sdk
# or
npm install @everfund/js-sdk
import everfund from '@everfund/js-sdk';
document?.getElementById('donate-modal')?.addEventListener('click', () => {
console.log('launch Everfund Modal');
everfund.donationWidget({
code: '078f',
onSuccess: function (onSuccessPayload) {
console.log(onSuccessPayload);
},
onFailure: function (error) {
console.log(error);
},
onClose: function () {
//
console.log('Closed Modal');
},
});
});
@everfund/js-sdk
as scriptAdd the following script to your site's <body>
element:
<script>
{
!(function (w, d, i, s) {
function l() {
if (!d.getElementById(i)) {
var f = d.getElementsByTagName(s)[0],
e = d.createElement(s);
(e.type = 'text/javascript'),
(e.async = !0),
(e.src =
'https://cdn.jsdelivr.net/npm/@everfund/js-sdk/dist/js-sdk.global.js'),
f.parentNode.insertBefore(e, f);
}
}
if ('function' != typeof w.Everfund) {
var c = function () {
c.q.push(arguments);
};
(c.q = []),
(w.Everfund = c),
'complete' === d.readyState
? l()
: w.attachEvent
? w.attachEvent('onload', l)
: w.addEventListener('load', l, !1);
}
})(window, document, 'everfund', 'script');
}
</script>
<body>
<div class="buttonContainer">
<button data-ef-modal="j1q16MvJl5lqfji06bVFKei3HZkW">Donate Now</button>
</div>
</body>
For further details and examples, please refer to our Documentation.
To build the package locally with tsup
, run:
pnpm build
At Everfund, we strive to create an inclusive and welcoming environment for all contributors.
To ensure a productive and respectful experience for everyone involved, we have established a few ground rules.
Please review our Code of Conduct before getting started.
If you're new to the project, you may want to start with one of our designated "good first issues" These issues are specifically chosen to be accessible and easy to understand, making them a great introduction to the project.
Together, let's build something amazing!
@everfund/js-sdk
follows good practices of security, but 100% security cannot be assured.
@everfund/js-sdk
is provided "as is" without any warranty. Use at your own risk.
For more information and to report security issues, please refer to our security documentation.
This project is licensed under the MIT license.
See LICENSE for more information.
FAQs
Plug and Play Donation System
The npm package @everfund/js-sdk receives a total of 2 weekly downloads. As such, @everfund/js-sdk popularity was classified as not popular.
We found that @everfund/js-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.