![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@culturehq/client
Advanced tools
A JavaScript client that wraps the CultureHQ API.
Import the package into your node
application like:
import client from "@culturehq/client";
Every API call function returns a Promise
. You can call them using normal Promise
semantics, as in below:
const getProfile = () => {
client.getProfile().then(response => {
console.log(response);
}).catch(error => {
console.error(error);
});
};
or you can use async
/await
syntax, as in below:
const getProfile = async () => {
try {
const response = await client.getProfile();
console.log(response);
} catch (error) {
console.error(error);
}
};
Each function can be introspected to determine its expected parameters (expectedParams
) and optional parameters (optionalParams
), as in:
const { expectedParams, optionalParams } = client.createEvent;
If a function has multipart
set on its config, it's because one or more of the attributes require a file object. In this case, a File
object should be given for the value, as in:
const avatar = document.querySelector("#avatar").files[0];
const response = await client.updateUser({ userId: 12345, avatar });
First, install the dependencies with yarn
.
Styling is handled through prettier
. Run it with yarn prettier
.
Run yarn test
to run the tests with jest
.
[3.0.1] - 2018-07-31
NODE_ENV
in the inlined environment variables.FAQs
A JavaScript client that wraps the CultureHQ API
The npm package @culturehq/client receives a total of 17 weekly downloads. As such, @culturehq/client popularity was classified as not popular.
We found that @culturehq/client 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.