
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@tivetechnology/cheddar-api
Advanced tools
This module will simplify the process of integrating Cheddar into your existing JavaScript apps.
Table of Contents
npm i @tivetechnology/cheddar-api
import { Cheddar } from "cheddar";
const cheddar = new Cheddar({
username: "email@example.com",
password: "passwordExample",
productCode: "PRODUCT_CODE",
});
cheddar
.getPlans()
.then((plans) => console.log(plans))
.catch((err) => console.error(err));
// When inside an async function, you can simply await any Cheddar function
const plans = await cheddar.getPlans();
getPlans()getPlan(planCode)getCustomers(getCustomersRequest)getCustomer(customerCode)createCustomer(createCustomerRequest)editCustomerAndSubscription(editCustomerSubscriptionRequest)editCustomer(editCustomerRequest)editSubscription(editSubscriptionRequest)deleteCustomer(customerCode)cancelSubscription(customerCode)addItem(itemQuantityRequest)removeItem(itemQuantityRequest)setItemQuantity(setItemQuantityRequest)addCustomCharge(addCustomChargeRequest)deleteCustomCharge(deleteCustomChargeRequest)createOneTimeInvoice(createOneTimeInvoiceRequest)runOutstandingInvoice(outstandingInvoiceRequest)issueRefund(issueRefundRequest)issueVoid(issueVoidRequest)issueVoidOrRefund(issueVoidRequest)resendInvoiceEmail(issueVoidRequest)getPromotions()getPromotion(promotionCode)All methods return a promise with the requested data in JSON format.
First add a config file (.env) with all your Cheddar credentials:
TEST_USERNAME=
TEST_PASSWORD=
TEST_PRODUCT_CODE=
TEST_PLAN_CODE=
TEST_ITEM_CODE=
TEST_PROMO_CODE=
Now you can install all dependencies and run the tests:
npm install
npm test
WARNING: Only run the tests on a development account to prevent any side effects in production
Original work was done by Kevin Smith. Ported to typescript by Victor Uvarov.
FAQs
Wrapper for the Cheddar recurring billing system APIs
We found that @tivetechnology/cheddar-api demonstrated a healthy version release cadence and project activity because the last version was released less than 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.