
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@artaio/node-api
Advanced tools
The Arta Node library provides a seamless integration to Arta API for backend applications using both Typescript or Javascript.
The Arta Node library provides a seamless integration to Arta API for applications running on Node.js 18+ or any platform using Serverless JS using both Typescript or Javascript.
It is a very light package with zero runtime dependencies using only the fetch Web API.
Please refer to Arta official documentation.
$ npm install @artaio/node-api
// With top level async/await
const { Arta } = require('@artaio/node-api');
const arta = new Arta('<YOUR_API_TOKEN>');
const { items } = await arta.webhooks.list();
const myHook = items[0];
const pingResult = await myHook.ping();
console.log(pingResult);
// With top level async/await
import { Arta, type Webhook } from '@artaio/node-api';
const arta: Arta = new Arta('<YOUR_API_TOKEN>');
const { items } = await arta.webhooks.list();
const myHook: Webhook = items[0];
const pingResult = await myHook.ping();
console.log(pingResult);
WARNING: Arta Node SDK was meant to be used on server side javascript, and altough it only uses WebAPIs (fetch) it shouldn't be used on browsers as it requires a Private API Key.
This is a very tiny (about 12kb minified), 0 dependencies JS SDK for interacting with Arta backend that should be able to run in any javascript backend environment that supports fetch webapi.
Please be aware of our zero-dependency policy and ensure that there are no packages under "dependencies" in the package.json
. Dev dependencies are fine, as these will not be contained in the final published package.
To develop a new function on the SDK, run npm install
to install all the dependencies (only dev dependencies) and then run npm run build
and the compiled JS code will be stored in the dist/
folder which is the folder with the content published to NPM.
FAQs
The Arta Node library provides a seamless integration to Arta API for backend applications using both Typescript or Javascript.
The npm package @artaio/node-api receives a total of 54 weekly downloads. As such, @artaio/node-api popularity was classified as not popular.
We found that @artaio/node-api 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.