Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
cpanel-uapi
Advanced tools
Readme
An unofficial CPanel client for the Node runtime ( TypeScript / JavaScript).
At the moment, this project only supports the UAPI API.
npm install cpanel-uapi
TypeScript:
// In this example, we are going to be using the Email module. All of UAPI's modules are available, however.
import hpanel, { Email } from 'hpanel';
// Authorize via. API Token
hpanel({
// For security, it is best if these credentials are implemented via a .env file.
username: 'my-cpanel-username',
token: 'ABCDEFGH...',
cpanelUri: 'https://mypanel.example.com:2083/'
});
// Begin to use UAPI's modules and functions!
(async () => {
const data = await Email.listpops();
// ... do something.
await Email.deletefilter({
account: 'haticus@example.com',
filtername: 'coffee'
});
// etc.
})();
// That's it!
JavaScript:
// In this example, we are going to be using the Email module. All of UAPI's modules are available, however.
const hpanel = require('hpanel');
// Authorize via. API Token
hpanel.default({
// For security, it is best if these credentials are implemented via a .env file.
username: 'my-cpanel-username',
token: 'ABCDEFGH...',
cpanelUri: 'https://mypanel.example.com:2083/'
});
// Begin to use UAPI's modules and functions!
(async () => {
const data = await hpanel.Email.listpops();
// ... do something.
await hpanel.Email.deletefilter({
account: 'haticus@example.com',
filtername: 'coffee'
});
// etc.
})();
// That's it!
If you have a feature you'd like to add to HPanel, feel free to fork this repository and submit a pull request with details about the work you completed. At the moment, we are not officially supporting this repository and will default all issues to the community. As appropriate, we will update this repository now and then. Pull requests, however, will be looked at as soon as they arrive.
FAQs
A javascript/typescript library for the CPanel API.
The npm package cpanel-uapi receives a total of 0 weekly downloads. As such, cpanel-uapi popularity was classified as not popular.
We found that cpanel-uapi 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
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.