{"id":16697439,"url":"https://github.com/thisandagain/fastly","last_synced_at":"2025-03-17T00:33:42.676Z","repository":{"id":6255905,"uuid":"7488566","full_name":"thisandagain/fastly","owner":"thisandagain","description":"Fastly API client for Node.js","archived":false,"fork":false,"pushed_at":"2023-04-19T06:04:59.000Z","size":71,"stargazers_count":70,"open_issues_count":8,"forks_count":29,"subscribers_count":9,"default_branch":"develop","last_synced_at":"2024-05-02T01:17:36.824Z","etag":null,"topics":["cdn","fastly","javascript"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thisandagain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-01-07T19:40:54.000Z","updated_at":"2023-04-19T06:05:03.000Z","dependencies_parsed_at":"2024-10-12T17:47:45.509Z","dependency_job_id":"0fb1027b-47d5-4afa-b24e-5aeb6ff61f47","html_url":"https://github.com/thisandagain/fastly","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisandagain%2Ffastly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisandagain%2Ffastly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisandagain%2Ffastly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisandagain%2Ffastly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thisandagain","download_url":"https://codeload.github.com/thisandagain/fastly/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243835942,"owners_count":20355611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cdn","fastly","javascript"],"created_at":"2024-10-12T17:47:43.156Z","updated_at":"2025-03-17T00:33:42.355Z","avatar_url":"https://github.com/thisandagain.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Fastly](http://www.fastly.com) API client for Node.js\n\n---\n\n**This project is not affiliated with Fastly.**\n\n**Fastly now maintain [their own API client for JavaScript](https://github.com/fastly/fastly-js).  Consider using that instead.**\n\n---\n\n[![Build Status](https://travis-ci.org/thisandagain/fastly.png?branch=master)](https://travis-ci.org/thisandagain/fastly)\n[![dependencies Status](https://david-dm.org/thisandagain/fastly/status.svg)](https://david-dm.org/thisandagain/fastly)\n\n### Installation\n```bash\nnpm install fastly\n```\n\n### Basic Use\n```javascript\nvar fastly = require('fastly')('yourapikey');\n\nfastly.request('GET', '/content/edge_check?url=mysite.com/foo', function (err, obj) {\n    if (err) return console.dir(err);   // Oh no!\n    console.dir(obj);                   // Response body from the fastly API\n});\n```\n\n### Helper Methods\nThe fastly module also includes a few limited \"helper\" methods that make working with common API resources a bit simpler:\n\n\u003ctable width=\"100%\"\u003e\n    \u003ctr\u003e\n        \u003cth width=\"20%\"\u003eMethod\u003c/td\u003e\n        \u003cth width=\"75%\"\u003eExample\u003c/td\u003e\n        \u003cth width=\"5%\"\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003epurge\u003c/td\u003e\n        \u003ctd\u003e\u003cpre lang=\"javascript\"\u003e\u003ccode\u003efastly.purge('host.com', '/index.html', callback);\u003c/code\u003e\u003c/pre\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://docs.fastly.com/api/purge\"\u003eLink\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003epurgeAll\u003c/td\u003e\n        \u003ctd\u003e\u003cpre lang=\"javascript\"\u003e\u003ccode\u003efastly.purgeAll('myServiceId', callback);\u003c/code\u003e\u003c/pre\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://docs.fastly.com/api/purge\"\u003eLink\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003epurgeKey\u003c/td\u003e\n        \u003ctd\u003e\u003cpre lang=\"javascript\"\u003e\u003ccode\u003efastly.purgeKey('myServiceId', 'key', callback);\u003c/code\u003e\u003c/pre\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://docs.fastly.com/api/purge\"\u003eLink\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003esoftPurgeKey\u003c/td\u003e\n        \u003ctd\u003e\u003cpre lang=\"javascript\"\u003e\u003ccode\u003efastly.softPurgeKey('myServiceId', 'key', callback);\u003c/code\u003e\u003c/pre\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://docs.fastly.com/api/purge\"\u003eLink\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003estats\u003c/td\u003e\n        \u003ctd\u003e\u003cpre lang=\"javascript\"\u003e\u003ccode\u003efastly.stats('myServiceId', callback);\u003c/code\u003e\u003c/pre\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://docs.fastly.com/api/stats\"\u003eLink\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003edatacenters\u003c/td\u003e\n        \u003ctd\u003e\u003cpre lang=\"javascript\"\u003e\u003ccode\u003efastly.datacenters(callback);\u003c/code\u003e\u003c/pre\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://docs.fastly.com/api/tools#datacenter\"\u003eLink\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003epublicIpList\u003c/td\u003e\n        \u003ctd\u003e\u003cpre lang=\"javascript\"\u003e\u003ccode\u003efastly.publicIpList(callback);\u003c/code\u003e\u003c/pre\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://docs.fastly.com/api/tools#public_ip_list\"\u003eLink\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eedgeCheck\u003c/td\u003e\n        \u003ctd\u003e\u003cpre lang=\"javascript\"\u003e\u003ccode\u003efastly.edgeCheck('url', callback);\u003c/code\u003e\u003c/pre\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://docs.fastly.com/api/tools#content\"\u003eLink\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n### Testing\n```bash\nnpm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisandagain%2Ffastly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthisandagain%2Ffastly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisandagain%2Ffastly/lists"}