{"_id":"aws-cloudfront-sign","_rev":"34-44d1f93cdcb5a09a3e371303cc1a8998","name":"aws-cloudfront-sign","dist-tags":{"latest":"4.0.0"},"versions":{"0.0.1":{"name":"aws-cloudfront-sign","version":"0.0.1","keywords":["aws","CloudFront","signed URL"],"author":{"name":"Jason Sims","email":"sims.jrobert@gmail.com"},"license":"MIT","_id":"aws-cloudfront-sign@0.0.1","maintainers":[{"name":"jasonsims","email":"sims.jrobert@gmail.com"}],"bugs":{"url":"https://github.com/jasonsims/aws-cloudfront-sign/issues"},"dist":{"shasum":"81ee13fe83c5de8bc9c7338d76c0200e8e6046e4","tarball":"https://registry.npmjs.org/aws-cloudfront-sign/-/aws-cloudfront-sign-0.0.1.tgz","integrity":"sha512-1+6iv4fpgiG+1I22KR3WY0v/CJc1xlSey1mieACDsL1s9H6F2JNXWdkhgdojjSNi2ezap6oex0bU5Nd/2NOILQ==","signatures":[{"sig":"MEUCIQC+sCYNdEnMhOMz3VV3DFWulXjMfRWTb6dA2UvXnWPdBQIgbmGB6icRYzg7uiIvfCeI0TlpDBHm3ddG+jGn6Cw9bRk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/cloudfront-util.js","_from":".","scripts":{},"_npmUser":{"name":"jasonsims","email":"sims.jrobert@gmail.com"},"repository":{"url":"https://github.com/jasonsims/aws-cloudfront-sign.git","type":"git"},"_npmVersion":"1.3.11","description":"Utility module for signing AWS CloudFront URLs","directories":{},"dependencies":{"moment":"~2.5.1"}},"0.0.2":{"name":"aws-cloudfront-sign","version":"0.0.2","keywords":["aws","CloudFront","signed URL"],"author":{"name":"Jason Sims","email":"sims.jrobert@gmail.com"},"license":"MIT","_id":"aws-cloudfront-sign@0.0.2","maintainers":[{"name":"jasonsims","email":"sims.jrobert@gmail.com"}],"bugs":{"url":"https://github.com/jasonsims/aws-cloudfront-sign/issues"},"dist":{"shasum":"0e6ab34c96f663a1ec094e820857117c12abe104","tarball":"https://registry.npmjs.org/aws-cloudfront-sign/-/aws-cloudfront-sign-0.0.2.tgz","integrity":"sha512-7RwdToNyfH+32UUaQ9HR8aenHffW/Vpo7f8npMMMFn00sR8bCFYji+3hPxuCIYoc7NV9Kx1mT7VsuR2ZH2kNXw==","signatures":[{"sig":"MEUCIQCMUtCEjUcNA6HvMyUXI9yN+HQnC1CRHpBLdcwAT1+LUwIge38cHi42pKedvxeAPFCWCujHm2gIN6UunTXveovrhx0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/cloudfront-util.js","_from":".","scripts":{},"_npmUser":{"name":"jasonsims","email":"sims.jrobert@gmail.com"},"repository":{"url":"https://github.com/jasonsims/aws-cloudfront-sign.git","type":"git"},"_npmVersion":"1.3.11","description":"Utility module for signing AWS CloudFront URLs","directories":{},"dependencies":{"moment":"~2.5.1"}},"0.0.3":{"name":"aws-cloudfront-sign","version":"0.0.3","keywords":["aws","CloudFront","signed URL"],"author":{"name":"Jason Sims","email":"sims.jrobert@gmail.com"},"license":"MIT","_id":"aws-cloudfront-sign@0.0.3","maintainers":[{"name":"jasonsims","email":"sims.jrobert@gmail.com"}],"bugs":{"url":"https://github.com/jasonsims/aws-cloudfront-sign/issues"},"dist":{"shasum":"15a059f05e3cd8a7a8f4ce2f1e4207f40e824717","tarball":"https://registry.npmjs.org/aws-cloudfront-sign/-/aws-cloudfront-sign-0.0.3.tgz","integrity":"sha512-D1sGagR/2ZZnHhLnNGCkNMFaAtFFBZMFsTx7XbYIhSfzm/GTU6TxGpZKE9aXt8vJLtdsxSc9r01x2lhsdAENyg==","signatures":[{"sig":"MEYCIQDSqsEiDT+3+KV9KoWdRSTKNWMIVwwq3TWp3+OlYOVqlgIhAM9r9Aho+b5TYIxkSj1kCx1KHbIMx7JryapuSSvCsMGu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/cloudfront-util.js","_from":".","scripts":{},"_npmUser":{"name":"jasonsims","email":"sims.jrobert@gmail.com"},"repository":{"url":"https://github.com/jasonsims/aws-cloudfront-sign.git","type":"git"},"_npmVersion":"1.3.11","description":"Utility module for signing AWS CloudFront URLs","directories":{},"dependencies":{"moment":"~2.5.1"}},"1.0.0":{"name":"aws-cloudfront-sign","version":"1.0.0","keywords":["aws","CloudFront","signed URL"],"author":{"name":"Jason Sims","email":"sims.jrobert@gmail.com"},"license":"MIT","_id":"aws-cloudfront-sign@1.0.0","maintainers":[{"name":"jasonsims","email":"sims.jrobert@gmail.com"}],"contributors":[{"name":"Matt Palmerlee"}],"homepage":"https://github.com/jasonsims/aws-cloudfront-sign","bugs":{"url":"https://github.com/jasonsims/aws-cloudfront-sign/issues"},"dist":{"shasum":"58f217d2a9026a8b8af0a644499a26597db67fe5","tarball":"https://registry.npmjs.org/aws-cloudfront-sign/-/aws-cloudfront-sign-1.0.0.tgz","integrity":"sha512-dxIlQJGvLCawAyoNP4lXsK2zb0mLSgYyDsrIX2ex623zMUhILhdsmlTLvTRkMuzfGz04FyVDzGa2uE5T7oMl/w==","signatures":[{"sig":"MEYCIQDpujPrYax42jX/SiidU8+9iUFsmf94E01cWx82ccmiJwIhAIEcb6nYCL0IDjSbqs5wP+HFQYqCGJBNj2aA+BDguhll","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/cloudfront-util.js","_from":".","scripts":{},"_npmUser":{"name":"jasonsims","email":"sims.jrobert@gmail.com"},"repository":{"url":"https://github.com/jasonsims/aws-cloudfront-sign.git","type":"git"},"_npmVersion":"1.4.3","description":"Utility module for signing AWS CloudFront URLs","directories":{},"dependencies":{}},"1.1.0":{"name":"aws-cloudfront-sign","version":"1.1.0","keywords":["aws","CloudFront","signed URL"],"author":{"name":"Jason Sims","email":"sims.jrobert@gmail.com"},"license":"MIT","_id":"aws-cloudfront-sign@1.1.0","maintainers":[{"name":"jasonsims","email":"sims.jrobert@gmail.com"}],"contributors":[{"name":"Matt Palmerlee"}],"homepage":"https://github.com/jasonsims/aws-cloudfront-sign","bugs":{"url":"https://github.com/jasonsims/aws-cloudfront-sign/issues"},"dist":{"shasum":"21ca2f73111b496098fb347195c412a6c8182c28","tarball":"https://registry.npmjs.org/aws-cloudfront-sign/-/aws-cloudfront-sign-1.1.0.tgz","integrity":"sha512-g73wHJoLYU2aJF2VUvfpZYixg+IvDd2b/EjdAOI0ws5zLCSXvsFNzhApnAW7xUFkXH81GFmIYVUU0wmoS1f49g==","signatures":[{"sig":"MEUCIQC6F7dChVA89VEUDXVBRv8TdcHL3f6+nuE+IY1/y9QFCwIgTs2jJMsDmR80A1aylnrgtRkUL84U56jquAmC7b9sWDA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/cloudfront-util.js","_from":".","_shasum":"21ca2f73111b496098fb347195c412a6c8182c28","gitHead":"9eb9439e96f0190b75a78b154fb9be058dfe0e8c","scripts":{"test":"node ./test/lib/cloud-front-util.test.js"},"_npmUser":{"name":"jasonsims","email":"sims.jrobert@gmail.com"},"repository":{"url":"https://github.com/jasonsims/aws-cloudfront-sign.git","type":"git"},"_npmVersion":"1.4.14","description":"Utility module for signing AWS CloudFront URLs","directories":{},"dependencies":{},"devDependencies":{"tap":"^0.4.12"}},"2.0.0":{"name":"aws-cloudfront-sign","version":"2.0.0","keywords":["aws","CloudFront","signed URL"],"author":{"name":"Jason Sims","email":"sims.jrobert@gmail.com"},"license":"MIT","_id":"aws-cloudfront-sign@2.0.0","maintainers":[{"name":"jasonsims","email":"sims.jrobert@gmail.com"}],"contributors":[{"name":"Matt Palmerlee"}],"homepage":"https://github.com/jasonsims/aws-cloudfront-sign","bugs":{"url":"https://github.com/jasonsims/aws-cloudfront-sign/issues"},"dist":{"shasum":"b6275669deaf635fbb1f924323880ff7fd536f50","tarball":"https://registry.npmjs.org/aws-cloudfront-sign/-/aws-cloudfront-sign-2.0.0.tgz","integrity":"sha512-6Grat0xRfUPw5LcRwO012kz2kl1T8YehAhpSIZ85I8Z0WZB++BfhRWjAnM2y9j3VzTFgC20DTS52qJeSVHXX6A==","signatures":[{"sig":"MEUCIQCiEPvCkXVthIQTjgA+FLHP/65/o5TtQeHmhWlOv+QG1wIgYMs/UqCw97eW5JG788MeMLyN4wvXHtL/hqMqK7eFgWs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/cloudfrontUtil.js","_from":".","scripts":{"test":"mocha"},"_npmUser":{"name":"jasonsims","email":"sims.jrobert@gmail.com"},"repository":{"url":"https://github.com/jasonsims/aws-cloudfront-sign.git","type":"git"},"_npmVersion":"1.4.3","description":"Utility module for signing AWS CloudFront URLs","directories":{},"dependencies":{"lodash":"^3.6.0"},"devDependencies":{"chai":"^2.2.0","mocha":"^2.2.1","sinon":"^1.14.1","moment":"^2.9.0"}},"2.0.1":{"name":"aws-cloudfront-sign","version":"2.0.1","keywords":["aws","CloudFront","signed URL"],"author":{"name":"Jason Sims","email":"sims.jrobert@gmail.com"},"license":"MIT","_id":"aws-cloudfront-sign@2.0.1","maintainers":[{"name":"jasonsims","email":"sims.jrobert@gmail.com"}],"contributors":[{"name":"Matt Palmerlee"}],"homepage":"https://github.com/jasonsims/aws-cloudfront-sign","bugs":{"url":"https://github.com/jasonsims/aws-cloudfront-sign/issues"},"dist":{"shasum":"0e3039fa3efad0ba4aa651affaab0cb8571c76ab","tarball":"https://registry.npmjs.org/aws-cloudfront-sign/-/aws-cloudfront-sign-2.0.1.tgz","integrity":"sha512-sEvCT+8KieDmDCvQ0BZSNd5MpXg4StNukod+1io0KR/VZVfQoVfWxfMw8AcXV+7edOFRBfOYwcXLtdrsx6yHjg==","signatures":[{"sig":"MEQCIBslHvOJ4W6ItCCMjtLwCe5Vh05VoaIoZS9ebF24cMWvAiAh5e9Xbs+b5Kvvo6Na94EHsWNeQ+i21Mho7E/RLpkG1A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/cloudfrontUtil.js","_from":".","scripts":{"test":"mocha"},"_npmUser":{"name":"jasonsims","email":"sims.jrobert@gmail.com"},"repository":{"url":"https://github.com/jasonsims/aws-cloudfront-sign.git","type":"git"},"_npmVersion":"1.4.3","description":"Utility module for signing AWS CloudFront URLs","directories":{},"dependencies":{"lodash":"^3.6.0"},"devDependencies":{"chai":"^2.2.0","mocha":"^2.2.1","sinon":"^1.14.1","moment":"^2.9.0"}},"2.1.0":{"name":"aws-cloudfront-sign","version":"2.1.0","keywords":["aws","CloudFront","signed URL"],"author":{"name":"Jason Sims","email":"sims.jrobert@gmail.com"},"license":"MIT","_id":"aws-cloudfront-sign@2.1.0","maintainers":[{"name":"jasonsims","email":"sims.jrobert@gmail.com"}],"contributors":[{"name":"Matt Palmerlee"}],"homepage":"https://github.com/jasonsims/aws-cloudfront-sign#readme","bugs":{"url":"https://github.com/jasonsims/aws-cloudfront-sign/issues"},"dist":{"shasum":"9dd55cd26a7fa3f2407b5fc7b1c0fa7c2c4b0bc2","tarball":"https://registry.npmjs.org/aws-cloudfront-sign/-/aws-cloudfront-sign-2.1.0.tgz","integrity":"sha512-Pl1eaI0sgYRyE3EEomINOYGcMeQcNBYKfn8p5Um7TfstXjBaFgN3Ybk3fQ+rVsikFA7IghDWOr0z0J3ZsRy6sQ==","signatures":[{"sig":"MEUCIFvdCaKk1rJUuDhsuiy+5rhuDKQwj9GkeaGea6BDJp7EAiEA6PIdDePja+sB33R4YfTn/lqkcyyw3oijdBGOUmgTgzk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/cloudfrontUtil.js","_from":".","_shasum":"9dd55cd26a7fa3f2407b5fc7b1c0fa7c2c4b0bc2","gitHead":"c813ee4961eb4e2c0dd52ec8aa84e80a364abf62","scripts":{"test":"mocha"},"_npmUser":{"name":"jasonsims","email":"sims.jrobert@gmail.com"},"repository":{"url":"git+https://github.com/jasonsims/aws-cloudfront-sign.git","type":"git"},"_npmVersion":"2.14.12","description":"Utility module for signing AWS CloudFront URLs","directories":{},"_nodeVersion":"4.3.1","dependencies":{"lodash":"^3.6.0"},"devDependencies":{"chai":"^2.2.0","mocha":"^2.2.1","sinon":"^1.14.1","moment":"^2.9.0"},"_npmOperationalInternal":{"tmp":"tmp/aws-cloudfront-sign-2.1.0.tgz_1456342917033_0.2695461034309119","host":"packages-9-west.internal.npmjs.com"}},"2.1.1":{"name":"aws-cloudfront-sign","version":"2.1.1","keywords":["aws","CloudFront","signed URL"],"author":{"name":"Jason Sims","email":"sims.jrobert@gmail.com"},"license":"MIT","_id":"aws-cloudfront-sign@2.1.1","maintainers":[{"name":"jasonsims","email":"sims.jrobert@gmail.com"}],"contributors":[{"name":"Matt Palmerlee"}],"homepage":"https://github.com/jasonsims/aws-cloudfront-sign#readme","bugs":{"url":"https://github.com/jasonsims/aws-cloudfront-sign/issues"},"dist":{"shasum":"77e4a2f871e6fefda7184c90c0ff575be0302b74","tarball":"https://registry.npmjs.org/aws-cloudfront-sign/-/aws-cloudfront-sign-2.1.1.tgz","integrity":"sha512-vYVXyANuln5K/BlxUuw9qo7Qxvvy79cQAsm0EDCqbL3ATDRKakBvabFAEpGGryzUsaJptEaU4oqrrlCD5a/YuQ==","signatures":[{"sig":"MEYCIQCKmHc/fEJjbRqv31w/tz8Ak/BHrJUfPTCRCaAXlvf2bQIhAKfH+9IPmhEjEbsw5spgqNC6CqXdYB3469ekA/3shGPj","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/cloudfrontUtil.js","_from":".","_shasum":"77e4a2f871e6fefda7184c90c0ff575be0302b74","gitHead":"62f899fae0dd9f30833df58cfd69a51274ff6d2e","scripts":{"test":"mocha"},"_npmUser":{"name":"jasonsims","email":"sims.jrobert@gmail.com"},"repository":{"url":"git+https://github.com/jasonsims/aws-cloudfront-sign.git","type":"git"},"_npmVersion":"2.14.12","description":"Utility module for signing AWS CloudFront URLs","directories":{},"_nodeVersion":"4.3.1","dependencies":{"lodash":"^3.6.0"},"devDependencies":{"chai":"^2.2.0","mocha":"^2.2.1","sinon":"^1.14.1","moment":"^2.9.0"},"tonicExampleFilename":"./examples/signedURL.js","_npmOperationalInternal":{"tmp":"tmp/aws-cloudfront-sign-2.1.1.tgz_1456348846659_0.403799993917346","host":"packages-6-west.internal.npmjs.com"}},"2.1.2":{"name":"aws-cloudfront-sign","version":"2.1.2","keywords":["aws","CloudFront","signed URL"],"author":{"name":"Jason Sims","email":"sims.jrobert@gmail.com"},"license":"MIT","_id":"aws-cloudfront-sign@2.1.2","maintainers":[{"name":"jasonsims","email":"sims.jrobert@gmail.com"}],"contributors":[{"name":"Matt Palmerlee"}],"homepage":"https://github.com/jasonsims/aws-cloudfront-sign#readme","bugs":{"url":"https://github.com/jasonsims/aws-cloudfront-sign/issues"},"dist":{"shasum":"c40e54bd341d8f2ecc9fcc4211f467baaf84fe7f","tarball":"https://registry.npmjs.org/aws-cloudfront-sign/-/aws-cloudfront-sign-2.1.2.tgz","integrity":"sha512-WYG7yzUabyHkvaWvphTqcHvhxG7Q4tn8xC6CXYoaTRsWYPiRDcYpPTkIiP76T+W2Z5ZHFKgAnNgSeSb4Rpe3sw==","signatures":[{"sig":"MEYCIQDr8pb4Iu3OODm77ggpNyLlxEGyU/sO44upSLiaKyrK6wIhAO6oktkQnymVysr9UGw1dGpNf39ttMg9o1zyc1Zkj0ey","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/cloudfrontUtil.js","_from":".","_shasum":"c40e54bd341d8f2ecc9fcc4211f467baaf84fe7f","gitHead":"ba10d997d5c85bbe1f3f787bada196016314cafd","scripts":{"test":"mocha"},"_npmUser":{"name":"jasonsims","email":"sims.jrobert@gmail.com"},"repository":{"url":"git+https://github.com/jasonsims/aws-cloudfront-sign.git","type":"git"},"_npmVersion":"2.14.12","description":"Utility module for signing AWS CloudFront URLs","directories":{},"_nodeVersion":"4.3.1","dependencies":{"lodash":"^3.6.0"},"devDependencies":{"chai":"^2.2.0","mocha":"^2.2.1","sinon":"^1.14.1","moment":"^2.9.0"},"tonicExampleFilename":"./examples/signedURL.js","_npmOperationalInternal":{"tmp":"tmp/aws-cloudfront-sign-2.1.2.tgz_1456549240905_0.056108422577381134","host":"packages-5-east.internal.npmjs.com"}},"2.2.0":{"name":"aws-cloudfront-sign","version":"2.2.0","keywords":["aws","CloudFront","signed URL"],"author":{"name":"Jason Sims","email":"sims.jrobert@gmail.com"},"license":"MIT","_id":"aws-cloudfront-sign@2.2.0","maintainers":[{"name":"jasonsims","email":"sims.jrobert@gmail.com"}],"contributors":[{"name":"Matt Palmerlee"}],"homepage":"https://github.com/jasonsims/aws-cloudfront-sign#readme","bugs":{"url":"https://github.com/jasonsims/aws-cloudfront-sign/issues"},"dist":{"shasum":"3910f5a6d0d90fec07f2b4ef8ab07f3eefb5625d","tarball":"https://registry.npmjs.org/aws-cloudfront-sign/-/aws-cloudfront-sign-2.2.0.tgz","integrity":"sha512-qG+rwZMP3KRTPPbVmWY8DlrT56AkA4iVOeo23vkdK2EXeW/brJFN2haSNKzVz+oYhFMEIzVVloeAcrEzuRkuVQ==","signatures":[{"sig":"MEQCID4RqouKEIyzcxYAEbh9tFFLZjcs8F9ZlmwYo0X/2DbNAiAa0/dA5OerXiNTQDe3wianDdCRS40Wq4jXwb/h/SszQA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/cloudfrontUtil.js","_from":".","_shasum":"3910f5a6d0d90fec07f2b4ef8ab07f3eefb5625d","gitHead":"c2e8a4a2ea4dc2c4546f8dc363fcb64ba8f18d2e","scripts":{"test":"mocha"},"_npmUser":{"name":"jasonsims","email":"sims.jrobert@gmail.com"},"repository":{"url":"git+https://github.com/jasonsims/aws-cloudfront-sign.git","type":"git"},"_npmVersion":"2.14.12","description":"Utility module for signing AWS CloudFront URLs","directories":{},"_nodeVersion":"4.3.1","dependencies":{"lodash":"^3.6.0"},"devDependencies":{"chai":"^2.2.0","mocha":"^2.2.1","sinon":"^1.14.1","moment":"^2.9.0"},"tonicExampleFilename":"./examples/signedURL.js","_npmOperationalInternal":{"tmp":"tmp/aws-cloudfront-sign-2.2.0.tgz_1478753615974_0.14844535011798143","host":"packages-12-west.internal.npmjs.com"}},"2.2.1":{"name":"aws-cloudfront-sign","version":"2.2.1","keywords":["aws","CloudFront","signed URL"],"author":{"name":"Jason Sims","email":"sims.jrobert@gmail.com"},"license":"MIT","_id":"aws-cloudfront-sign@2.2.1","maintainers":[{"name":"jasonsims","email":"sims.jrobert@gmail.com"}],"contributors":[{"name":"Matt Palmerlee"}],"homepage":"https://github.com/jasonsims/aws-cloudfront-sign#readme","bugs":{"url":"https://github.com/jasonsims/aws-cloudfront-sign/issues"},"dist":{"shasum":"3480f05eaec12593c3e51d5f12b6915113b78d8a","tarball":"https://registry.npmjs.org/aws-cloudfront-sign/-/aws-cloudfront-sign-2.2.1.tgz","fileCount":14,"integrity":"sha512-QNDzghynIwx512lZ49JamQU/P1oZqo52+rjCbWUDlmzeaZD+nSwXD0ZKpIrT5Cy/aZR76ekFEAhtMInrDNlm3A==","signatures":[{"sig":"MEUCICSmdVob1r7+RG6K+nBNIV/8wfOrSF/HQKlhzcjj05tKAiEA2m/KgmgB51tnT2ciPDb/HpUxOalyFgkB6DtmWDpUQqk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34992},"main":"./lib/cloudfrontUtil.js","gitHead":"f9f7e73cfab9c7e8348f0d3fa6db501c792d6c61","scripts":{"test":"mocha"},"_npmUser":{"name":"jasonsims","email":"sims.jrobert@gmail.com"},"repository":{"url":"git+https://github.com/jasonsims/aws-cloudfront-sign.git","type":"git"},"_npmVersion":"6.14.16","description":"Utility module for signing AWS CloudFront URLs","directories":{},"_nodeVersion":"12.22.12","dependencies":{"lodash":"^4.17.21"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^2.2.0","mocha":"^2.2.1","sinon":"^1.14.1","moment":"^2.9.0"},"tonicExampleFilename":"./examples/signedURL.js","_npmOperationalInternal":{"tmp":"tmp/aws-cloudfront-sign_2.2.1_1688652652500_0.010804770614809556","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"aws-cloudfront-sign","version":"3.0.0","keywords":["aws","CloudFront","signed URL"],"author":{"name":"Jason Sims","email":"sims.jrobert@gmail.com"},"license":"MIT","_id":"aws-cloudfront-sign@3.0.0","maintainers":[{"name":"jasonsims","email":"sims.jrobert@gmail.com"}],"contributors":[{"name":"Matt Palmerlee"}],"homepage":"https://github.com/jasonsims/aws-cloudfront-sign#readme","bugs":{"url":"https://github.com/jasonsims/aws-cloudfront-sign/issues"},"dist":{"shasum":"1af286f6224afc30cf6164b3ac1846d9b9dad106","tarball":"https://registry.npmjs.org/aws-cloudfront-sign/-/aws-cloudfront-sign-3.0.0.tgz","fileCount":39,"integrity":"sha512-tT+3VEkEicP0OgPplwm/kI0a5cnaO9syhFDg3vGu2JZPRToGMbgGQD4autJv4l5u19pO67WpFvQi52VnZVSyjQ==","signatures":[{"sig":"MEUCIQD6hzpBqjuq6uyaeWfB0NQ9AVxCF4+NKIbSko1x/yVwHgIgMPvTFDq5CzgKyrFxiIGYC1RrkB/uvcmIUs0NKYUQv08=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36101},"main":"./dist/cjs/index.js","types":"./dist/cjs/index.d.ts","engines":{"node":">=18"},"funding":"https://ko-fi.com/jzimz","gitHead":"a6535c65be8ed893ade8a56a4eca0ddb430b4270","scripts":{"lint":"eslint ./src","test":"jest ./src","build":"npm run build:esm && npm run build:cjs","prepare":"husky install","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","commitlint":"commitlint --edit"},"_npmUser":{"name":"jasonsims","email":"sims.jrobert@gmail.com"},"repository":{"url":"git+https://github.com/jasonsims/aws-cloudfront-sign.git","type":"git"},"_npmVersion":"9.5.1","description":"Utility module for signing AWS CloudFront URLs","directories":{},"_nodeVersion":"18.16.0","_hasShrinkwrap":false,"devDependencies":{"husky":"^8.0.0","sinon":"^15.2.0","eslint":"^8.41.0","moment":"^2.9.0","ts-jest":"^29.1.0","typescript":"^5.0.4","@types/node":"^20.4.0","@types/sinon":"^10.0.15","@jest/globals":"^29.5.0","@commitlint/cli":"^17.6.5","@typescript-eslint/parser":"^5.59.7","eslint-config-semistandard":"^17.0.0","@commitlint/config-conventional":"^17.6.5","@typescript-eslint/eslint-plugin":"^5.59.7"},"tonicExampleFilename":"./examples/signedURL.js","_npmOperationalInternal":{"tmp":"tmp/aws-cloudfront-sign_3.0.0_1688963102654_0.9305209314719833","host":"s3://npm-registry-packages"}},"3.0.1":{"name":"aws-cloudfront-sign","version":"3.0.1","keywords":["aws","CloudFront","signed URL"],"author":{"name":"Jason Sims","email":"sims.jrobert@gmail.com"},"license":"MIT","_id":"aws-cloudfront-sign@3.0.1","maintainers":[{"name":"jasonsims","email":"sims.jrobert@gmail.com"}],"contributors":[{"name":"Matt Palmerlee"}],"homepage":"https://github.com/jasonsims/aws-cloudfront-sign#readme","bugs":{"url":"https://github.com/jasonsims/aws-cloudfront-sign/issues"},"dist":{"shasum":"3844f130a7501ec7d27c93ddc09b6b28a103a52a","tarball":"https://registry.npmjs.org/aws-cloudfront-sign/-/aws-cloudfront-sign-3.0.1.tgz","fileCount":3,"integrity":"sha512-f+dmmH4Z9JH5wjfRJPxLy5GFmQfl8EmQTqdYeUK8cDTf0Djz+UNNXVIaJclMDocFAIVTanE1cWh6S7gtanz0Wg==","signatures":[{"sig":"MEUCIQCmkXQIwS25z1SHnJmcOsnxe9XmGqfrjJM7etFOZMwrAwIgf5MniSKbQjP5aLVf//cEzVPpLt08L6NQPiL8E3pddSY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8400},"main":"./dist/cjs/index.js","engines":{"node":">=18"},"funding":"https://ko-fi.com/jzimz","gitHead":"f2388023fd72dc9e6d47d5089c1c4ee3f53d7057","scripts":{"lint":"eslint ./src","test":"jest ./src","build":"npm run build:esm && npm run build:cjs","prepare":"husky install","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","commitlint":"commitlint --edit"},"_npmUser":{"name":"jasonsims","email":"sims.jrobert@gmail.com"},"deprecated":"critical bug fixed in v3.0.2","repository":{"url":"git+https://github.com/jasonsims/aws-cloudfront-sign.git","type":"git"},"_npmVersion":"9.5.1","description":"Utility module for signing AWS CloudFront URLs","directories":{},"_nodeVersion":"18.16.1","_hasShrinkwrap":false,"devDependencies":{"husky":"^8.0.0","sinon":"^15.2.0","eslint":"^8.41.0","moment":"^2.9.0","ts-jest":"^29.1.0","typescript":"^5.0.4","@types/node":"^20.4.0","@types/sinon":"^10.0.15","@jest/globals":"^29.5.0","@commitlint/cli":"^17.6.5","@typescript-eslint/parser":"^5.59.7","eslint-config-semistandard":"^17.0.0","@commitlint/config-conventional":"^17.6.5","@typescript-eslint/eslint-plugin":"^5.59.7"},"tonicExampleFilename":"./examples/signedURL.js","_npmOperationalInternal":{"tmp":"tmp/aws-cloudfront-sign_3.0.1_1689173686766_0.5137413095695187","host":"s3://npm-registry-packages"}},"3.0.2":{"name":"aws-cloudfront-sign","version":"3.0.2","keywords":["aws","CloudFront","signed URL"],"author":{"name":"Jason Sims","email":"sims.jrobert@gmail.com"},"license":"MIT","_id":"aws-cloudfront-sign@3.0.2","maintainers":[{"name":"jasonsims","email":"sims.jrobert@gmail.com"}],"contributors":[{"name":"Matt Palmerlee"}],"homepage":"https://github.com/jasonsims/aws-cloudfront-sign#readme","bugs":{"url":"https://github.com/jasonsims/aws-cloudfront-sign/issues"},"dist":{"shasum":"da5273b0301bcd70312c8c76293d5fec6d414f0a","tarball":"https://registry.npmjs.org/aws-cloudfront-sign/-/aws-cloudfront-sign-3.0.2.tgz","fileCount":33,"integrity":"sha512-Z/yOGZ3Hd1rhYbY13mtRiLCbCDC1Xf/v+dQUyUwMLnyunD/nfDZd/2LMZ9MKxxOhVb2RzEmEwY0F9f+riPaSWQ==","signatures":[{"sig":"MEQCIG0OrUj7ihpo7B2BJbrA6vpBlCfJqkseEhlyUCriPGQOAiAlFjk7jgTKN2yq8gSYc1OW9AVQlzeo2ZEBZ9WtOrzFAA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34775},"main":"./dist/cjs/index.js","types":"./dist/cjs/index.d.ts","engines":{"node":">=18"},"funding":"https://ko-fi.com/jzimz","gitHead":"6513f8169cdbdc0080e753e14e5c4dc8a54b473c","scripts":{"lint":"eslint ./src","test":"jest ./src","build":"npm run build:esm && npm run build:cjs","prepare":"husky install","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","commitlint":"commitlint --edit"},"_npmUser":{"name":"jasonsims","email":"sims.jrobert@gmail.com"},"repository":{"url":"git+https://github.com/jasonsims/aws-cloudfront-sign.git","type":"git"},"_npmVersion":"9.5.1","description":"Utility module for signing AWS CloudFront URLs","directories":{},"_nodeVersion":"18.16.1","_hasShrinkwrap":false,"devDependencies":{"husky":"^8.0.0","sinon":"^15.2.0","eslint":"^8.41.0","moment":"^2.9.0","ts-jest":"^29.1.0","typescript":"^5.0.4","@types/node":"^20.4.0","@types/sinon":"^10.0.15","@jest/globals":"^29.5.0","@commitlint/cli":"^17.6.5","@typescript-eslint/parser":"^5.59.7","eslint-config-semistandard":"^17.0.0","@commitlint/config-conventional":"^17.6.5","@typescript-eslint/eslint-plugin":"^5.59.7"},"tonicExampleFilename":"./examples/signedURL.js","_npmOperationalInternal":{"tmp":"tmp/aws-cloudfront-sign_3.0.2_1689178239209_0.7520742320848268","host":"s3://npm-registry-packages"}},"4.0.0":{"_id":"aws-cloudfront-sign@4.0.0","bugs":{"url":"https://github.com/jasonsims/aws-cloudfront-sign/issues"},"dist":{"shasum":"352249aa0406ed1e2e19018490dafb1dfd263e6c","tarball":"https://registry.npmjs.org/aws-cloudfront-sign/-/aws-cloudfront-sign-4.0.0.tgz","integrity":"sha512-Q3/mJKcB5ffszPT/b+m8Ul9o9vgRtp+Kw0x1mIIatjAkSRh+z6f8z9wkNx3YFSwlSowlz5yb6lqMLBZBTAtmuw==","fileCount":38,"unpackedSize":53489,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/aws-cloudfront-sign@4.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCLEMh0P5nqJ0LfkWVEfWOWEBTdxrPPDZu8Xryx4RYGxAIhAOTOnitLroL+p3WtNxcQj9/U3IuWkokxH8bpOlfkss60"}]},"main":"./dist/cjs/index.js","name":"aws-cloudfront-sign","type":"commonjs","_from":"file:/home/runner/work/_temp/pack/aws-cloudfront-sign-4.0.0.tgz","types":"./dist/cjs/index.d.ts","author":{"name":"Jason Sims","email":"sims.jrobert@gmail.com"},"module":"./dist/esm/index.esm.js","engines":{"node":">=22"},"exports":{".":{"import":{"types":"./dist/esm/index.esm.d.ts","default":"./dist/esm/index.esm.js"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}},"./types":{"import":{"types":"./dist/esm/types.d.ts","default":"./dist/esm/types.js"},"require":{"types":"./dist/cjs/types.d.ts","default":"./dist/cjs/types.js"}},"./dist/*":"./dist/*","./package.json":"./package.json"},"funding":"https://ko-fi.com/jzimz","license":"MIT","scripts":{"lint":"eslint .","test":"vitest run","build":"npm run clean && npm run build:esm && npm run build:cjs && npm run build:pkg","clean":"rimraf ./dist","format":"prettier --write .","prepare":"git config core.hooksPath .githooks || exit 0","lint:fix":"eslint . --fix","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","build:pkg":"node ./scripts/write-dist-package-json.mjs","typecheck":"tsc --noEmit -p tsconfig.json","test:watch":"vitest","format:check":"prettier --check .","check:package":"publint && attw --pack .","prepublishOnly":"npm run build","test:integration":"node scripts/integration-test.mjs"},"version":"4.0.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"bca3c2a5-9786-4b0c-8f8a-7b5ae5bc3043"},"approver":{"name":"jasonsims","email":"sims.jrobert@gmail.com"}},"homepage":"https://github.com/jasonsims/aws-cloudfront-sign#readme","keywords":["aws","cloudfront","signed-url","signed-cookies","cloudfront-signed-url","private-content"],"_resolved":"/home/runner/work/_temp/pack/aws-cloudfront-sign-4.0.0.tgz","_integrity":"sha512-Q3/mJKcB5ffszPT/b+m8Ul9o9vgRtp+Kw0x1mIIatjAkSRh+z6f8z9wkNx3YFSwlSowlz5yb6lqMLBZBTAtmuw==","repository":{"url":"git+https://github.com/jasonsims/aws-cloudfront-sign.git","type":"git"},"_npmVersion":"11.19.1","description":"Generate AWS CloudFront signed URLs and signed cookies. Zero dependencies, TypeScript types, ESM and CommonJS.","directories":{},"maintainers":[{"name":"jasonsims","email":"sims.jrobert@gmail.com"}],"sideEffects":false,"_nodeVersion":"24.22.2","contributors":[{"name":"Matt Palmerlee"}],"typesVersions":{"*":{"types":["./dist/cjs/types.d.ts"]}},"devDependencies":{"eslint":"^10.13.0","moment":"^2.31.0","rimraf":"^6.1.3","vitest":"^5.0.5","globals":"^17.13.0","publint":"^0.3.25","prettier":"^3.9.10","@eslint/js":"^10.0.1","typescript":"^5.9.3","@types/node":"^22.20.5","@commitlint/cli":"^21.2.4","typescript-eslint":"^8.72.0","@arethetypeswrong/cli":"^0.18.5","eslint-config-prettier":"^10.1.8","@commitlint/config-conventional":"^21.2.4"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/aws-cloudfront-sign_4.0.0_1794376700794_0.46194184304241637"},"_hasShrinkwrap":false}},"time":{"created":"2014-02-09T23:43:12.186Z","modified":"2026-11-11T05:58:21.143Z","0.0.1":"2014-02-09T23:43:13.298Z","0.0.2":"2014-02-09T23:45:10.346Z","0.0.3":"2014-02-10T00:01:47.835Z","1.0.0":"2014-06-07T20:51:01.356Z","1.1.0":"2014-11-26T23:03:04.593Z","2.0.0":"2015-04-02T02:32:56.249Z","2.0.1":"2015-04-22T00:47:01.041Z","2.1.0":"2016-02-24T19:41:57.841Z","2.1.1":"2016-02-24T21:20:47.668Z","2.1.2":"2016-02-27T05:00:43.526Z","2.2.0":"2016-11-10T04:53:36.214Z","2.2.1":"2023-07-06T14:10:52.759Z","3.0.0":"2023-07-10T04:25:02.845Z","3.0.1":"2023-07-12T14:54:47.000Z","3.0.2":"2023-07-12T16:10:39.417Z","4.0.0":"2026-11-11T05:58:20.867Z"},"bugs":{"url":"https://github.com/jasonsims/aws-cloudfront-sign/issues"},"author":{"name":"Jason Sims","email":"sims.jrobert@gmail.com"},"license":"MIT","homepage":"https://github.com/jasonsims/aws-cloudfront-sign#readme","keywords":["aws","cloudfront","signed-url","signed-cookies","cloudfront-signed-url","private-content"],"repository":{"url":"git+https://github.com/jasonsims/aws-cloudfront-sign.git","type":"git"},"description":"Generate AWS CloudFront signed URLs and signed cookies. Zero dependencies, TypeScript types, ESM and CommonJS.","contributors":[{"name":"Matt Palmerlee"}],"maintainers":[{"name":"jasonsims","email":"sims.jrobert@gmail.com"}],"readme":"AWS CloudFront URL Signature Utility\n===================\n[![CI](https://github.com/jasonsims/aws-cloudfront-sign/actions/workflows/ci.yml/badge.svg)](https://github.com/jasonsims/aws-cloudfront-sign/actions/workflows/ci.yml)\n[![npm version](https://img.shields.io/npm/v/aws-cloudfront-sign)](https://www.npmjs.com/package/aws-cloudfront-sign)\n\n---\n\n**NOTE**\n\nThe [AWS SDK for JavaScript v3](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html) also generates CloudFront signed URLs and cookies via [`@aws-sdk/cloudfront-signer`](https://www.npmjs.com/package/@aws-sdk/cloudfront-signer). If you already use the AWS SDK, that is a fine choice. This package is a lightweight alternative: zero runtime dependencies and a small API covering signed URLs and signed cookies (returned as a plain object you can set directly on a response).\n\n---\n\nA small utility for generating [signed URLs](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-signed-urls.html) and [signed cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-signed-cookies.html) (canned policy) for private CloudFront content.\n\n## Usage\n### Requirements\n* Node.js >=22\n* Active CloudFront distribution with origin configured\n\n### Configuring CloudFront\n1. Generate an RSA key pair. Keep the private key secret; only the public key is uploaded to AWS.\n   ```sh\n   openssl genrsa -out private_key.pem 2048\n   openssl rsa -pubout -in private_key.pem -out public_key.pem\n   ```\n2. In the CloudFront console, upload `public_key.pem` as a **public key** and add it to a **key group**.\n   Note the public key's **ID** (e.g. `K2JCJMDEHXQW5F`): this is the `keypairId` option.\n3. In your distribution's cache behavior, enable **Restrict viewer access** and select\n   **Trusted key groups**, choosing the key group from step 2. [more info][cf_trusted_signers_docs]\n4. If your origin is an S3 bucket, keep the bucket private and use\n   **Origin Access Control (OAC)** so only CloudFront can read from it. [more info][cf_oac_docs]\n\nAWS recommends trusted key groups over legacy CloudFront key pairs, which require the AWS\naccount root user to manage. Legacy key pair IDs still work with this package.\n\n### Installing\n```sh\nnpm install aws-cloudfront-sign\n```\n\n### TypeScript\nType definitions are included, and the public types are exported from the package entry:\n```ts\nimport { getSignedUrl } from 'aws-cloudfront-sign';\nimport type { SignatureOptions } from 'aws-cloudfront-sign';\n\nconst options: SignatureOptions = {\n  keypairId: 'K2JCJMDEHXQW5F',\n  privateKeyPath: '/path/to/private_key.pem',\n};\nconst signedUrl = getSignedUrl('https://d111111abcdef8.cloudfront.net/path/to/object', options);\n```\n\n### Upgrading from 3.x to 4.x\n**Breaking:** Node.js 22 or later is required. Node.js 18 and 20 have reached end of life;\nif you can't upgrade yet, 3.x keeps working there.\n\n**Breaking:** the package now declares an `exports` map, so only these import paths resolve:\n`aws-cloudfront-sign`, `aws-cloudfront-sign/types`, `aws-cloudfront-sign/package.json` and\n`aws-cloudfront-sign/dist/*`. Deep imports into `dist/` are not part of the public API; if you\nuse them, the path must now include the file extension (e.g.\n`aws-cloudfront-sign/dist/cjs/utils.js`, not `aws-cloudfront-sign/dist/cjs/utils`).\nIf you only import from `aws-cloudfront-sign`, nothing changes: signed URLs and cookies are\nbyte-for-byte identical to 3.x.\n\nAlso new in 4.x:\n* ES Modules now work: `import { getSignedUrl } from 'aws-cloudfront-sign'` loads a native ESM\n  build (the ESM build in 3.0.x was not reachable). `import cf from 'aws-cloudfront-sign'` also\n  works. CommonJS (`require`) is unchanged.\n* Public types (`SignatureOptions`, `ExpireTime`) are exported from the package entry;\n  `aws-cloudfront-sign/types` works too.\n* The `expireTime` type now matches what the runtime accepts (see [options](#options)).\n* New `privateKeyPassphrase` option for encrypted private keys.\n* Calling without `privateKeyString` or `privateKeyPath` now throws a\n  `Missing param` error instead of a misleading line-break error.\n\n### Upgrading from 2.x to 3.x\n* There shouldn't be any breaking changes when coming to 3.x. RTMP URLs were deprecated by Amazon\nbut that will affect all versions.\n* Support for ES Modules was added\n* Support for TypeScript was added\n\n### Upgrading from 1.x to 2.x\n* `expireTime` now takes its value as milliseconds, Date, or\n [moment][moment_docs] instead of seconds.\n\n### API\n#### getSignedUrl(url, options)\n* `@param {String} url` - CloudFront URL to sign\n* `@param {Object} options` - URL signature [options](#options)\n* `@return {String} signedUrl` - Signed CloudFront URL\n\n#### getSignedCookies(url, options)\n* `@param {String} url` - CloudFront URL to sign\n* `@param {Object} options` - URL signature [options](#options)\n* `@return {Object} cookies` - Signed AWS cookies\n\n#### ~~getSignedRTMPUrl(domainName, s3key, options)~~\n⛔️ **Deprecated**: [RTMP Support Discontinuing on December 31, 2020](https://repost.aws/questions/QUoUZgHZh7SEWlnQUPlBmVNQ/announcement-rtmp-support-discontinuing-on-december-31-2020)\n* ~~`@param {String} domainName` - Domain name of your Cloudfront distribution~~\n* ~~`@param {String} s3key` - Path to s3 object~~\n* ~~`@param {Object} options` - URL signature [options](#options)~~\n* ~~`@return {Object} url.rtmpServerPath` - RTMP formatted server path~~\n* ~~`@return {Object} url.rtmpStreamName` - Signed RTMP formatted stream name~~\n\n### Options\n* `keypairId` - The ID of the CloudFront public key in your trusted key group\n  (or, for legacy setups, the access key ID of a CloudFront key pair).\n* `privateKeyString` || `privateKeyPath` - The private key matching that public\n  key, provided either as a PEM string or as a path to the `.pem` file.\n  If both are given, `privateKeyPath` is used.\n  **Note:** When providing the private key as a string, it must include its\n  line breaks. Loading it from a file or an environment variable is easiest:\n\n  ```js\n  const privateKeyString = process.env.CF_PRIVATE_KEY;\n  // or\n  const privateKeyString = fs.readFileSync('private_key.pem', 'utf8');\n  // or inline, using a template literal (avoid committing real keys)\n  const privateKeyString = `-----BEGIN PRIVATE KEY-----\n  ...base64-encoded key data...\n  -----END PRIVATE KEY-----`;\n  ```\n  Storing the key in an environment variable:\n  ```sh\n  # Local env example\n  export CF_PRIVATE_KEY=\"$(cat private_key.pem)\"\n\n  # Heroku env\n  heroku config:set CF_PRIVATE_KEY=\"$(cat private_key.pem)\"\n  ```\n* `privateKeyPassphrase` (**Optional**) - Passphrase for an encrypted private key.\n* `expireTime` (**Optional** - Default: 30 minutes from now) - The point in time\n  when the URL or cookies expire. Accepted values are:\n   * Date - JavaScript Date object (`new Date(Date.now() + 60 * 60 * 1000)`)\n   * number - Unix timestamp in **milliseconds** (`Date.now() + 1800000`)\n   * string - Numeric string of milliseconds (`'1767225600000'`)\n   * Any object whose `valueOf()` returns milliseconds, e.g.\n     [Day.js](https://day.js.org/) (`dayjs().add(1, 'day')`) or\n     [moment][moment_docs] (`moment().add(1, 'day')`)\n* `ipRange` (**Optional**) - IP address range allowed to make GET requests\n  for your signed URL. This value must be given in standard IPv4 CIDR format\n  (for example, 10.52.176.0/24).\n\n## Examples\n### Creating a signed URL\nBy default the URL will expire after half an hour.\n```js\n// ESM\nimport { getSignedUrl } from 'aws-cloudfront-sign';\n// CommonJS\n// const { getSignedUrl } = require('aws-cloudfront-sign');\n\nconst options = {\n  keypairId: 'K2JCJMDEHXQW5F',\n  privateKeyPath: '/path/to/private_key.pem',\n  expireTime: new Date(Date.now() + 60 * 60 * 1000), // 1 hour\n};\nconst signedUrl = getSignedUrl('https://d111111abcdef8.cloudfront.net/path/to/object', options);\nconsole.log(`Signed URL: ${signedUrl}`);\n```\n\n### Creating signed cookies\n```js\n// ESM\nimport { getSignedCookies } from 'aws-cloudfront-sign';\n// CommonJS\n// const { getSignedCookies } = require('aws-cloudfront-sign');\n\nconst options = {\n  keypairId: 'K2JCJMDEHXQW5F',\n  privateKeyString: process.env.CF_PRIVATE_KEY,\n};\nconst signedCookies = getSignedCookies('https://d111111abcdef8.cloudfront.net/*', options);\n\n// Set the cookies on your response, e.g. with Express:\nfor (const [name, value] of Object.entries(signedCookies)) {\n  res.cookie(name, value);\n}\n```\n\nMore runnable examples are in [examples/](examples/).\n\n[moment_docs]: https://momentjs.com/docs/\n[cf_trusted_signers_docs]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-trusted-signers.html\n[cf_oac_docs]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html\n","readmeFilename":"README.md","users":{"khay":true,"amaynut":true,"koulmomo":true,"eserozvataf":true,"esperluette":true}}