{"id":20494844,"url":"https://github.com/apiko-dev/meteor-sweetalert","last_synced_at":"2025-10-14T10:12:03.291Z","repository":{"id":88210090,"uuid":"65006232","full_name":"apiko-dev/meteor-sweetalert","owner":"apiko-dev","description":"A beautiful replacement for JavaScript's \"alert\"","archived":false,"fork":false,"pushed_at":"2016-08-05T09:42:13.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-05T17:53:29.248Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apiko-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-08-05T09:23:01.000Z","updated_at":"2016-08-05T09:24:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"f0b11d1f-c6da-4521-b4a6-7f52130504fa","html_url":"https://github.com/apiko-dev/meteor-sweetalert","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/apiko-dev/meteor-sweetalert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apiko-dev%2Fmeteor-sweetalert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apiko-dev%2Fmeteor-sweetalert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apiko-dev%2Fmeteor-sweetalert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apiko-dev%2Fmeteor-sweetalert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apiko-dev","download_url":"https://codeload.github.com/apiko-dev/meteor-sweetalert/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apiko-dev%2Fmeteor-sweetalert/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018772,"owners_count":26086449,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-15T17:43:23.795Z","updated_at":"2025-10-14T10:12:03.245Z","avatar_url":"https://github.com/apiko-dev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"SweetAlert [![Build Status](https://travis-ci.org/t4t5/sweetalert.svg?branch=master)](https://travis-ci.org/t4t5/sweetalert)\n==========\n\nAn awesome replacement for JavaScript's alert.\n\n![A success modal](https://raw.github.com/t4t5/sweetalert/master/sweetalert.gif)\n\n[See it in action!](http://t4t5.github.io/sweetalert)\n\n[Learn how to use it!](https://www.ludu.co/lesson/how-to-use-sweetalert)\n\n\nUsage\n-----\n\nYou can install SweetAlert through bower:\n\n```bash\nbower install sweetalert\n```\n\nOr through npm:\n\n```bash\nnpm install sweetalert\n```\n\nAlternatively, download the package and reference the JavaScript and CSS files manually:\n\n```html\n\u003cscript src=\"dist/sweetalert.min.js\"\u003e\u003c/script\u003e\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"dist/sweetalert.css\"\u003e\n```\n**Note:** If you're using an older version than v1.0.0, the files are `lib/sweet-alert.min.js` and `lib/sweet-alert.css`\n\n\nTutorial\n--------\n\nThe easiest way to get started is follow the [SweetAlert tutorial on Ludu](https://www.ludu.co/lesson/how-to-use-sweetalert)!\n\n\nExamples\n--------\n\nThe most basic message:\n\n```javascript\nswal(\"Hello world!\");\n```\n\nA message signaling an error:\n\n```javascript\nswal(\"Oops...\", \"Something went wrong!\", \"error\");\n```\n\nA warning message, with a function attached to the \"Confirm\"-button:\n\n```javascript\nswal({\n  title: \"Are you sure?\",\n  text: \"You will not be able to recover this imaginary file!\",\n  type: \"warning\",\n  showCancelButton: true,\n  confirmButtonColor: \"#DD6B55\",\n  confirmButtonText: \"Yes, delete it!\",\n  closeOnConfirm: false,\n  html: false\n}, function(){\n  swal(\"Deleted!\",\n  \"Your imaginary file has been deleted.\",\n  \"success\");\n});\n```\n\nA prompt modal where the user's input is logged:\n\n```javascript\nswal({\n  title: \"An input!\",\n  text: 'Write something interesting:',\n  type: 'input',\n  showCancelButton: true,\n  closeOnConfirm: false,\n  animation: \"slide-from-top\"\n}, function(inputValue){\n  console.log(\"You wrote\", inputValue);\n});\n```\n\nAjax request example:\n\n```javascript\nswal({\n  title: 'Ajax request example',\n  text: 'Submit to run ajax request',\n  type: 'info',\n  showCancelButton: true,\n  closeOnConfirm: false,\n  disableButtonsOnConfirm: true,\n  confirmLoadingButtonColor: '#DD6B55'\n}, function(inputValue){\n  setTimeout(function() {\n    swal('Ajax request finished!');\n  }, 2000);\n});\n```\n\n[View more examples](http://t4t5.github.io/sweetalert)\n\n\nThemes\n------\n\nSweetAlert can easily be themed to fit your site's design. SweetAlert comes with three example themes that you can try out: **facebook**, **twitter** and **google**. They can be referenced right after the intial sweetalert-CSS:\n```html\n\u003clink rel=\"stylesheet\" href=\"dist/sweetalert.css\"\u003e\n\u003clink rel=\"stylesheet\" href=\"themes/twitter/twitter.css\"\u003e\n```\n\n\nBrowser compatibility\n---------------------\n\nSweetAlert works in most major browsers (yes, even IE). Some details:\n\n- **IE8**: (Dropped since v1.0.0-beta)\n- **IE9**: Works, but icons are not animated.\n- **IE10+**: Works!\n- **Safari 4+**: Works!\n- **Firefox 3+**: Works!\n- **Chrome 14+**: Works!\n- **Opera 15+**: Works!\n\n\nContributing\n------------\n\nIf you want to contribute:\n\n- Fork the repo\n\n- Make sure you have [Node](http://nodejs.org/), [NPM](https://www.npmjs.com/) and [Gulp](http://gulpjs.com/) installed. When in the SweetAlert directory, run `npm install` to install the dependencies. Then run `gulp` while working to automatically minify the SCSS and JS-files.\n\n- Keep in mind that SweetAlert uses Browserify in order to compile ES6-files. For easy debugging, make sure you reference the file `dist/sweetalert-dev.js` instead of `sweetalert.js`.\n\n- After you're done, make a pull request and wait for approval! :)\n\n\nRelated projects\n----------------\n\n* [SweetAlert for Android](https://github.com/pedant/sweet-alert-dialog)\n* [SweetAlert for Bootstrap](https://github.com/lipis/bootstrap-sweetalert)\n* [SweetAlert for AngularJS](https://github.com/oitozero/ngSweetAlert)\n* [SweetAlert for RubyOnRails](https://github.com/sharshenov/sweetalert-rails)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapiko-dev%2Fmeteor-sweetalert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapiko-dev%2Fmeteor-sweetalert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapiko-dev%2Fmeteor-sweetalert/lists"}