{"_id":"slambdack","_rev":"50359-4e2ddac4e6d3499b33a438c0026ffb94","name":"slambdack","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"slambdack","version":"1.0.1","keywords":["slack","aws","lambda"],"author":{"name":"Social Tables"},"license":"Apache-2","_id":"slambdack@1.0.1","maintainers":[{"name":"danmactough","email":"danmactough@gmail.com"}],"homepage":"https://github.com/socialtables/slambdack","bugs":{"url":"https://github.com/socialtables/slambdack/issues"},"dist":{"shasum":"9b4dc0eefd7d0344e844280cbe217f43cb9925c8","tarball":"https://registry.npmjs.org/slambdack/-/slambdack-1.0.1.tgz","integrity":"sha512-99bUSmuyFoG0ddhsd9Q8quFm81Vq3HVnvyZ7V1XG72CJatOusYk1OdezWyRTLBjRUywJRmmAtAfOMHfPmIpihg==","signatures":[{"sig":"MEQCIDWkiGwH7Kc3LkpEGZyySSbaK0EuBTEPW7j7JyvAC37LAiB3zqtqEZGqEQ+ifwD4xNhyYoD65SyiDnZwM/BuU59BvA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"9b4dc0eefd7d0344e844280cbe217f43cb9925c8","gitHead":"e72c574502ca2d9152d67523b55f4778bbf187ff","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"danmactough","email":"danmactough@gmail.com"},"repository":{"url":"https://github.com/socialtables/slambdack.git","type":"git"},"_npmVersion":"1.4.28","description":"Slack Helpers for AWS Lambda","directories":{},"dependencies":{},"devDependencies":{"eslint":"^1.10.3"},"_npmOperationalInternal":{"tmp":"tmp/slambdack-1.0.1.tgz_1455038083103_0.540875184815377","host":"packages-6-west.internal.npmjs.com"}},"1.0.2":{"name":"slambdack","version":"1.0.2","keywords":["slack","aws","lambda"],"author":{"name":"Social Tables"},"license":"Apache-2","_id":"slambdack@1.0.2","maintainers":[{"name":"socialtables-engineering","email":"devops@socialtables.com"}],"homepage":"https://github.com/socialtables/slambdack","bugs":{"url":"https://github.com/socialtables/slambdack/issues"},"dist":{"shasum":"a02092bbd8159c6a7bb24cc48142d45db4b2f11f","tarball":"https://registry.npmjs.org/slambdack/-/slambdack-1.0.2.tgz","integrity":"sha512-LCDZEHJlSN/n1t0EXTiofTJWxyqD9znmKOhVv+BxstWbu9w7HokonA3CImt5kFEc9davKRIn/Z04XkG6oN3AhA==","signatures":[{"sig":"MEUCIAJb11RyRi92jlQIrLcrlBlCJmFqqZlVvP6sZgjMqLHJAiEApqIfPaIakjAGxZZMbt67G3zyh+RUlnUCF5KgHBVhcg0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh27ViCRA9TVsSAnZWagAAP4kP/0/0RggGghD2OjkgQRaD\nwQsLyFNsbhjdvEOGWrUam8Pr3LhdWfEkFtunPICMCwlt3d8vv7ifzsDw1Ql6\n397gA134OQGWl1G6yVTylmjd25o+cK5zTUTJVeHjgEk7uln8uE++mNwyvzfF\najbq8IpB8w5Xs6O4ugTBCw9mCBQg/KKLbnXJRawmTt39Eu5882vS8+O3dUhr\nCWTyybHXI9UPZquIFU4Df6XDV2iOE/AR8WiVLNqU0KZ3rzlxtNqhj8RBuVee\nIlmMl0vkUCSFRwTBaM4ODjIggky+RRDTlpVahzBGRs/9oxHyF0NrFnVIz6DY\nMj0xpMXuhhx6JTEqOYQ9ug5nGug+PgnyXfHKfXI3jEG6IcRrv3b5gTL99n+S\n1C8tckLSMk2eB6/KHujpPa1ZIZU2+najd+hKtWri7b/dqNWc3wAvCdd6LZgH\nRLOFFFuqbOO8qERRzfPKGMdJPGlWb6hbWLDdWlj1fBHRyenJqGku+HAEnjDU\ni7TArUS3iXBJ+lX3ZSBTye8rX5RzeT9/fVrWatTZ+FoHQnZTw61NtKMU+ZWT\n6BWlXEIEh4KTVprqSHo5Lk/Bf3FS6+V5DqpSKjg3NGck6KVUIurzD7L7eRbw\nM/IBXkd9R373PUGT0YtHvxbHD1CaAbfymL7dqTs3LVF7DOseZeouAs8NS4Gf\ngd4n\r\n=ls0L\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","_from":".","_shasum":"a02092bbd8159c6a7bb24cc48142d45db4b2f11f","gitHead":"59455fe49e202a8102599539efd311cb4ec882b3","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"socialtables-engineering","email":"devops@socialtables.com"},"repository":{"url":"git+https://github.com/socialtables/slambdack.git","type":"git"},"_npmVersion":"2.14.12","description":"Slack Helpers for AWS Lambda","directories":{},"_nodeVersion":"4.3.0","dependencies":{},"devDependencies":{"eslint":"^1.10.3"},"_npmOperationalInternal":{"tmp":"tmp/slambdack-1.0.2.tgz_1456780832201_0.5599518099334091","host":"packages-6-west.internal.npmjs.com"}}},"time":{"created":"2016-02-09T16:13:08.086Z","modified":"2026-08-22T04:56:00.688Z","1.0.0":"2016-02-09T16:13:08.086Z","1.0.1":"2016-02-09T17:14:46.289Z","0.0.1":"2016-02-29T21:17:30.841Z","1.0.2":"2016-02-29T21:20:35.596Z"},"bugs":{"url":"https://github.com/socialtables/slambdack/issues"},"author":{"name":"Social Tables"},"license":"Apache-2","homepage":"https://github.com/socialtables/slambdack","keywords":["slack","aws","lambda"],"repository":{"url":"git+https://github.com/socialtables/slambdack.git","type":"git"},"description":"Slack Helpers for AWS Lambda","maintainers":[{"email":"jrnail23@gmail.com","name":"jrnail23"},{"email":"devops@socialtables.com","name":"socialtables-engineering"},{"email":"asrivastava2@cvent.com","name":"asrivastava2"},{"email":"jcoutee@cvent.com","name":"jcoutee"},{"email":"yic@cvent.com","name":"yi.chen"},{"email":"ket29@cornell.edu","name":"katherine.thompson"},{"email":"devops@socialtables.com","name":"socialtables-deployer"},{"email":"gvorvik@gmail.com","name":"gvorvik"},{"email":"andrew@csontos.net","name":"andrewcsontos"},{"email":"alind@socialtables.com","name":"adamlind"},{"email":"svann-shirley@socialtables.com","name":"ashanevs"},{"email":"swegmann@socialtables.com","name":"sarawegmann"},{"email":"ielshakankiry@cvent.com","name":"ishak"},{"email":"j.zhang@socialtables.com","name":"johnbryant262"},{"email":"LdelaRosa@socialtables.com","name":"ldelarosa"},{"email":"andy.king@cvent.com","name":"andrewmking"},{"email":"matthew.a.turney@gmail.com","name":"pho3nixf1re"},{"email":"NFrattaroli@socialtables.com","name":"_evilnix_"},{"email":"sarthak.chatterjee@cvent.com","name":"sarthak.chatterjee"},{"email":"josh.lartz@gmail.com","name":"joshlartz"},{"email":"OTaghlabi@socialtables.com","name":"otaghlabi"},{"email":"dwicks@socialtables.com","name":"dwicks-socialtables"},{"email":"jonathan.armel.daigle@gmail.com","name":"jonathandaigle"},{"email":"j.martin@cvent.com","name":"j.martin"},{"email":"Omono.Ukpoma@cvent.com","name":"sarahu-cv"},{"email":"SRamkumar@cvent.com","name":"sramkumar2"},{"email":"r.froehlich.itf@gmail.com","name":"robbe1912"},{"email":"ramin.mahmoodi@cvent.com","name":"rmcvent"},{"email":"AWaas@socialtables.com","name":"st-awaas"},{"email":"Liz.Thorne@cvent.com","name":"liz.thorne"},{"email":"k.tran@cvent.com","name":"ktst"},{"email":"bmontague@cvent.com","name":"bmontague-cvent"},{"email":"IVaswanicasas@cvent.com","name":"ivaswanicasas"},{"email":"jmorley@cvent.com","name":"jmorley-cvent"},{"email":"ABenjamin@cvent.com","name":"abenjamin"},{"email":"nehasharma@cvent.com","name":"nehasharmast"},{"email":"tom.mcnutt@cvent.com","name":"tom.mcnutt"},{"email":"atangri@cvent.com","name":"atangri"},{"email":"Alisha.Qian@cvent.com","name":"alishaq"},{"email":"julia.chen@cvent.com","name":"julia.chen"},{"email":"hicham.elhammouchi@gmail.com","name":"melxx001"},{"email":"daniel.brown+2@cvent.com","name":"daniellbisme12"},{"email":"ronen@prismm.com","name":"ronen.tsamir"},{"email":"john.fletchercabrera@cvent.com","name":"john.cabrera.cs"},{"email":"sre-build-and-deploy@cvent.com","name":"cvent-build-and-deploy"}],"readme":"# slambdack\n\nSlack Helpers for AWS Lambda\n\n# Usage\n\n```js\n// You need to provide the URL for your Webhook endpoint (or just the token)\nvar webhookUri = \"https://hooks.slack.com/services/<some long token>\";\nvar slack = require(\"slambdack\")({\n\twebhookUri: webhookUri\n});\n// See:\n//   - https://api.slack.com/docs/formatting\n//   - https://api.slack.com/docs/attachments\nvar message = {\n\tusername: \"slambdack\", // optional: overrides the default webhook username\n\tchannel: \"#my-channel\", // optional: overrides the default webhook channel\n\ttext: \"*Hi, there, _friend_!*\",\n\tattachments: [\n\t\t{\n\t\t\tfallback: \"Hi, there\",\n\t\t\ttext: \"*Hi, there!*\",\n\t\t\tmrkdwn_in: [ \"text\", \"fields\" ],\n\t\t\tfields: [\n\t\t\t\t{\n\t\t\t\t\ttitle: \"Message\",\n\t\t\t\t\tvalue: \"*Hi, there, _friend_!*\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttitle: \"Post time\",\n\t\t\t\t\tvalue: slack.formatDate(new Date()), // formatted like: \"01 Jan 1969 at 12:00:00 GMT\"\n\t\t\t\t\tshort: true // short-width fields allow you to stack fields side-by-side\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t]\n};\nslack.notify(message, function (err, response) {\n\t// maybe do something\n});\n```\n\n## Methods\n\n### `notify(message<Object>, cb<Function>)`\n\nPosts the `message` to Slack.\n\n### `formatDate(date<Date>)`\n\nReturns `date` formatted like: \"01 Jan 1969 at 12:00:00 GMT\".\n\n### `log()`\n\nBy default, we log stuff to `stdout`. This exposes that log function.\n\nThis is useful on AWS Lambda because it's the only way to get logs into your\nCloudwatch logs. Set `process.env.SLAMBDACK_SILENT` to something truthy to\ndisable this output.\n\n- - -\n\nCopyright (C) 2016 Social Tables, Inc. (https://www.socialtables.com) All rights reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n","readmeFilename":"README.md"}