fas

fastly

Fastly API client for Node.js

Showing:

Popularity

Downloads/wk

4K

GitHub Stars

72

Maintenance

Last Commit

3yrs ago

Contributors

12

Package

Dependencies

1

License

Type Definitions

Tree-Shakeable

No?

Categories

Reviews

Average Rating

5.0/51
Read All Reviews
wetsat

Top Feedback

1Easy to Use
1Performant
1Bleeding Edge

Readme

fastly

Fastly API client for Node.js

Build Status dependencies Status

Installation

npm install fastly

Basic Use

var fastly = require('fastly')('yourapikey');

fastly.request('GET', '/content/edge_check?url=mysite.com/foo', function (err, obj) {
    if (err) return console.dir(err);   // Oh no!
    console.dir(obj);                   // Response body from the fastly API
});

Helper Methods

The fastly module also includes a few limited "helper" methods that make working with common API resources a bit simpler:

Method Example
purge
fastly.purge('host.com', '/index.html', callback);
Link
purgeAll
fastly.purgeAll('myServiceId', callback);
Link
purgeKey
fastly.purgeKey('myServiceId', 'key', callback);
Link
softPurgeKey
fastly.softPurgeKey('myServiceId', 'key', callback);
Link
stats
fastly.stats('myServiceId', callback);
Link
datacenters
fastly.datacenters(callback);
Link
publicIpList
fastly.publicIpList(callback);
Link
edgeCheck
fastly.edgeCheck('url', callback);
Link

Testing

npm test

Rate & Review

Great Documentation0
Easy to Use1
Performant1
Highly Customizable0
Bleeding Edge1
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
wetsat42 Ratings45 Reviews
6 months ago
Bleeding Edge
Performant
Easy to Use

I am using it as a replacement to react in my current project and what a great experience it is. It is really fast, at least twice that of express, follows the similar pattern as express so very little learning curve. However, it is a new library, and community support is not that good yet. I would defiantly recommend it for projects but you should wait a little bit before deploying it to production


1
prem-sharma

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial