@itznotabug/node-amp
TypeScript icon, indicating that this package has built-in type declarations

1.5.2 • Public • Published

Appwrite Node.js SDK

This is the same SDK as node-appwrite with added support for params in methods. No more passing undefined now!

This SDK is only compatible with a minimum of Appwrite server version 1.5.x.

Installation

NPM

To install via NPM:

npm install @itznotabug/node-amp --save

If you're using a bundler (like Rollup or webpack), you can import the Appwrite module when you need it:

import {Client, Account} from "web-amp";

CDN

To install with a CDN (content delivery network) add the following scripts to the bottom of your

tag, but before you use any Appwrite services:
<script src="https://cdn.jsdelivr.net/npm/@itznotabug/node-amp@1.5.2"></script>

Getting Started

Same as https://github.com/appwrite/sdk-for-node?tab=readme-ov-file#getting-started.

Example Usage

Before -

const functions = new Messaging(client);
await functions.createExecution(
    'functionId',
    undefined,
    false,
    '/',
    ExecutionMethod.GET,
    {key: 'value'}
);

After -

const functions = new Functions(client);
await functions.createExecution(
    'functionId',
    {
        headers: {key: 'value'},
        method: ExecutionMethod.GET
    }
);

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.5.21latest

Version History

VersionDownloads (Last 7 Days)Published
1.5.21
1.5.10

Package Sidebar

Install

npm i @itznotabug/node-amp

Weekly Downloads

1

Version

1.5.2

License

BSD-3-Clause

Unpacked Size

2.37 MB

Total Files

225

Last publish

Collaborators

  • itznotabug