Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fastly

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastly

Fastly API client for Node.js

  • 0.1.1
  • npm
  • Socket score

Version published
Weekly downloads
10K
decreased by-23.85%
Maintainers
1
Weekly downloads
 
Created
Source

fastly

Fastly API client for Node.js

Build Status

Installation

npm install fastly

Basic Use

var fastly = require('fastly');

fastly.authenticate('yourapikey');
fastly.purge('realtimecats.com', '/cats', function (err, obj) {
    if (err) {
        console.dir(err);   // Oh no!
    } else {
        console.dir(obj);   // Contains the response body from the fastly API
    }
});

Helper Methods

Method Example
purge
fastly.purge('host.com', '/index.html', callback);
Link
stats
fastly.stats('myServiceId', callback);
Link

Testing

npm test

Keywords

FAQs

Package last updated on 08 Jan 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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