Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@neondatabase/api-client

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neondatabase/api-client

Wrapper for Neon API

  • 1.10.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@neondatabase/api-client

Introduction

The @neondatabase/api-client library is a wrapper for the Neon API. It provides a convenient way to interact with the Neon API using TypeScript.

Installation

You can install the library using npm or yarn.

npm:

npm install @neondatabase/api-client

yarn:

yarn add @neondatabase/api-client

Get Started

To get started with the @neondatabase/api-client library, follow these steps:

  1. Obtain an API key from the Developer Settings page in the Neon Console.

  2. Click Generate new API key.

  3. Enter name for your API key and click Create.

  4. Save your API key to a secure location that enables you to pass it to your code.

  5. Import the library:

    import { createApiClient } from '@neondatabase/api-client';
    
  6. Create an instance of the API client by calling the createApiClient function:

    const apiClient = createApiClient({
      apiKey: 'your-api-key',
    });
    
  7. Use the apiClient instance to make API calls. For example:

    const response = await apiClient.listProjects({});
    console.log(response);
    

API Reference

https://api-docs.neon.tech/

Configuration

Since the client is based on axios library, createApiClient additionally accepts axios request options.

License

The @neondatabase/api-client library is licensed under the MIT License. For more information, see the LICENSE file.

FAQs

Package last updated on 08 Aug 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc