0.10.8 • Published 3 years ago

fastly-lib v0.10.8

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

fastly-lib

Dependencies-free client to interface with the Fastly API.

NPM

codecov npm.io

Requirements

Node.js version 16 or greater

Installing

The simplest method is to use npm in your source code folder

npm install fastly-lib

Usage

Firstly and before to use the client, i strongly recommend reading the documentation about the Fastly API and our WiKi for a detailed description of each library method.

const fastlyLib = require('fastly-lib');
const fastly = new fastlyLib('your_api_key');

fastly.get('/public-ip-list')
    .then((res) => {
        // do something with the response.
    })
    .catch((err) => {
        // something in case of error.
    })
 
// Or use the method that corresponds to each action
fastly.post(...)
fastly.purge(...)
fastly.delete(...)

Or using helpers

// get a list of Fastly datacenters.
fastly.datacenters()
  .then((res) => {
    // do something with the response.
  })
  .catch((err) => {
    // or something in case of errors.
  })

Helpers

fastly-lib also provides access to Fastly API functions through the following few methods

Configuration

Purging

Utilities

Extra

Contributing

I'll be happy to hear your ideas or fix some bug. Please feel free to send me a message or create a new issue

License

fastly-lib is licensed under the MIT License © 2017-2019 luisan00

0.10.5

3 years ago

0.10.6

3 years ago

0.10.7

3 years ago

0.10.8

3 years ago

0.10.4

6 years ago

0.10.3

8 years ago

0.10.2

8 years ago

0.10.1

8 years ago

0.10.0

8 years ago

0.9.3

8 years ago

0.9.2

8 years ago

0.9.1

8 years ago

0.9.0

8 years ago