New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@neondatabase/api-client

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neondatabase/api-client - npm Package Compare versions

Comparing version 0.1.0 to 1.0.0

LICENSE

1

dist/api.gen.js

@@ -111,2 +111,3 @@ "use strict";

OperationAction["DisableMaintenance"] = "disable_maintenance";
OperationAction["ApplyStorageConfig"] = "apply_storage_config";
})(OperationAction = exports.OperationAction || (exports.OperationAction = {}));

@@ -113,0 +114,0 @@ /** The status of the operation */

2

package.json
{
"name": "@neondatabase/api-client",
"version": "0.1.0",
"version": "1.0.0",
"description": "Wrapper for Neon API",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -1,1 +0,61 @@

# Typescript/Javascript client for Neon API.
# @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
To install the library, you can use npm or yarn. Run the following command:
```bash
npm install @neondatabase/api-client
```
or
```bash
yarn add @neondatabase/api-client
```
## Getting Started
To get started with the `@neondatabase/api-client` library, follow these steps:
1. Get your api key:
1. Go to https://console.neon.tech/app/settings/api-keys
1. Click "Generate new API key"
1. Enter name for your key and press "Create"
1. Preserve your api key somewhere, so you can pass it down to your code
2. Import the library:
```typescript
import { createApiClient } from '@neondatabase/api-client';
```
3. Create an instance of the API client by calling the `createApiClient` function:
```typescript
const apiClient = createApiClient({
apiKey: 'your-api-key',
});
```
4. Use the `apiClient` instance to make API calls. For example:
```typescript
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](https://axios-http.com/docs/req_config).
## License
The `@neondatabase/api-client` library is licensed under the MIT License. For more information, see the [LICENSE](./LICENSE) file.

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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