All Projects → thisandagain → fastly

thisandagain / fastly

Licence: MIT license
Fastly API client for Node.js

Programming Languages

javascript
184084 projects - #8 most used programming language
Makefile
30231 projects

Labels

Projects that are alternatives of or similar to fastly

go-fastly-cli
CLI tool for interacting with Fastly CDN services via official REST API.
Stars: ✭ 14 (-80%)
Mutual labels:  cdn, fastly
Emoji Picker React
React Emoji Picker
Stars: ✭ 221 (+215.71%)
Mutual labels:  cdn
Bootstrap.native
If you are looking for Bootstrap without jQuery, this is it.
Stars: ✭ 1,693 (+2318.57%)
Mutual labels:  cdn
Peardownloader.js
一个支持多协议、多源、混合P2P-CDN的下载器
Stars: ✭ 170 (+142.86%)
Mutual labels:  cdn
P2p Cdn
WebTorrent CDN with graceful degradation
Stars: ✭ 139 (+98.57%)
Mutual labels:  cdn
Jquery.redirect
jQuery Redirect Plugin
Stars: ✭ 182 (+160%)
Mutual labels:  cdn
Prcdns
准确、CDN友好
Stars: ✭ 126 (+80%)
Mutual labels:  cdn
gulp-upload-qcloud
腾讯云 cos 静态资源上传 gulp 插件
Stars: ✭ 18 (-74.29%)
Mutual labels:  cdn
Rawgit
Served files from raw.githubusercontent.com, but with the correct content types. No longer actively developed.
Stars: ✭ 2,344 (+3248.57%)
Mutual labels:  cdn
Replacegooglecdn
♋ 一个 Chrome 插件:将 Google CDN 替换为国内的。
Stars: ✭ 2,400 (+3328.57%)
Mutual labels:  cdn
Terraform Aws Cloudfront S3 Cdn
Terraform module to easily provision CloudFront CDN backed by an S3 origin
Stars: ✭ 162 (+131.43%)
Mutual labels:  cdn
Nginxconfig.io
⚙️ NGINX config generator on steroids 💉
Stars: ✭ 14,983 (+21304.29%)
Mutual labels:  cdn
Cdn
CDN is a Just-in-time asset manipulation and delivery application, providing a complete content distribution/delivery solution
Stars: ✭ 192 (+174.29%)
Mutual labels:  cdn
Packages
📦 Package configurations - The #1 free and open source CDN built to make life easier for developers.
Stars: ✭ 139 (+98.57%)
Mutual labels:  cdn
Newnode
NewNode decentralized Content Distribution Network
Stars: ✭ 223 (+218.57%)
Mutual labels:  cdn
Toastr
👀 toastr.js notifications for Laravel 5 and Lumen
Stars: ✭ 133 (+90%)
Mutual labels:  cdn
Sites Using Cloudflare
💔 Archived list of domains using Cloudflare DNS at the time of the CloudBleed announcement.
Stars: ✭ 1,914 (+2634.29%)
Mutual labels:  cdn
Media Server
A brpc-based server to host and proxy live streams
Stars: ✭ 175 (+150%)
Mutual labels:  cdn
GeoLite2-City
GeoLite2-City.mmdb.gz CDN files based on Free Open Source CDN jsDelivr!
Stars: ✭ 170 (+142.86%)
Mutual labels:  cdn
Gofw
Chrome 扩展:麻麻再也不用担心 Google API 抽风了
Stars: ✭ 229 (+227.14%)
Mutual labels:  cdn

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].