Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vultr/vultr-node
Vultr Node API client
https://github.com/vultr/vultr-node
vultr vultr-api vultr-javascript vultr-js vultr-node
Last synced: 2 months ago
JSON representation
Vultr Node API client
- Host: GitHub
- URL: https://github.com/vultr/vultr-node
- Owner: vultr
- License: mit
- Created: 2019-05-30T13:31:24.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-19T17:32:47.000Z (9 months ago)
- Last Synced: 2024-10-02T07:18:01.535Z (3 months ago)
- Topics: vultr, vultr-api, vultr-javascript, vultr-js, vultr-node
- Language: JavaScript
- Homepage:
- Size: 3.83 MB
- Stars: 91
- Watchers: 5
- Forks: 31
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
[![Automatic Releaser](https://github.com/vultr/vultr-node/actions/workflows/release.yml/badge.svg?branch=master)](https://github.com/vultr/vultr-node/actions/workflows/release.yml)
[![Code Coverage test](https://github.com/vultr/vultr-node/actions/workflows/coverage.yml/badge.svg)](https://github.com/vultr/vultr-node/actions/workflows/coverage.yml)
[![npm version](https://badge.fury.io/js/%40vultr%2Fvultr-node.svg)](https://badge.fury.io/js/%40vultr%2Fvultr-node)
[![license](https://img.shields.io/github/license/vultr/vultr-node)](https://github.com/vultr/vultr-node/blob/master/LICENSE.md)# vultr-node
Official Vultr client node module.
## Installation
```sh
npm install @vultr/vultr-node
```## Usage
Vultr uses a PAT (Personal Access Token) to interact/authenticate with the APIs. An API Key can be generated and acquired from the API menu in [settings](https://my.vultr.com/settings/#settingsapi).
### Initialize
```js
const VultrNode = require('@vultr/vultr-node')// Initialize the instance with your configuration
const vultr = VultrNode.initialize({
apiKey: 'your-api-key-here',
baseUrl: 'https://example.com', // Optional
rateLimit: 600 // Optional
})
```### Calling Endpoints
```js
// Call endpoints using Promises
vultr.account.getAccountInfo().then((response) => {
console.log(response)
})
```## Versioning
This project follows [SemVer](https://semver.org/) for versioning. For the versions available, [see the tags on this repository](https://github.com/vultr/vultr-node/releases)
## Documentation
This implements Vultr API V2. For documentation on all endpoints, please visit https://www.vultr.com/api/. To use Vultr API V1, please use the version of the library on the [V1 branch](https://github.com/vultr/vultr-node/tree/v1), or any version of this library before 2.0.0.
For documentation specific to this client please visit https://vultr.github.io/vultr-node
## Contributing
Feel free to send pull requests our way! Please see the [contributing guidelines](CONTRIBUTING.md).
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE.md) file for details.
## Authors
- [**Spencer Kordecki**](https://github.com/spencerkordecki)
- [**Fady Farid**](https://github.com/afady)
- [**Glenn Dobson**](https://github.com/afatalerrror)