Sends an invalidation request to your AWS Cloudfront Distribution

npm install invalidatejs
4 downloads in the last week
68 downloads in the last month


Sends invalidation requests to Amazon's CloudFront Service


npm install invalidatejs


  var invalidate = require('invalidatejs');

  var config = {
    resourcePaths: ["/jquery.js", "/custom.js"],
    secret_key: "mY$ecretKEY",
    access_key: "accesskey",
    dist: "target_distribution"

  invalidate(config, function (err, statusCode, body) {

      err - an error occured of course!
      statusCode - status code returned from the post request to AWS
      body - body of the response from AWS in JSON form

npm loves you