{"id":17736637,"url":"https://github.com/parro-it/nice-dialogs","last_synced_at":"2025-08-04T01:34:55.388Z","repository":{"id":65459113,"uuid":"46130617","full_name":"parro-it/nice-dialogs","owner":"parro-it","description":"Awesome replace for alert, confirm, prompt js commands","archived":false,"fork":false,"pushed_at":"2015-11-23T18:50:09.000Z","size":68,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-06T04:32:46.956Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/parro-it.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-13T15:38:55.000Z","updated_at":"2019-07-13T16:01:51.000Z","dependencies_parsed_at":"2023-01-24T13:55:10.962Z","dependency_job_id":null,"html_url":"https://github.com/parro-it/nice-dialogs","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/parro-it/nice-dialogs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fnice-dialogs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fnice-dialogs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fnice-dialogs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fnice-dialogs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parro-it","download_url":"https://codeload.github.com/parro-it/nice-dialogs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fnice-dialogs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268636821,"owners_count":24282179,"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-08-03T02:00:12.545Z","response_time":2577,"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-10-26T00:23:52.077Z","updated_at":"2025-08-04T01:34:55.336Z","avatar_url":"https://github.com/parro-it.png","language":"JavaScript","readme":"# nice-dialogs\n\nAwesome replace for alert, confirm \u0026 prompt js commands.\n\n\u003e This is built with [Electron](https://github.com/atom/electron) usage in mind, but should flawlessy work\n\u003e on any modern browser that support the [dialog](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog) element. The module is tested\n\u003e only on Electron. Open an issue if you find bugs on some other browser engine.\n\n\u003e Templates use CSS classes from [Photon](https://github.com/connors/photon).\n\u003e However, Photon css file are not included, so you can style it whatever you whant.\n\n\u003e We provide only the commonjs module. If you want to use it in a browser, you can use [browserify](https://github.com/substack/node-browserify) to bundle it with your code. Be sure to include [brfs](https://www.npmjs.com/package/brfs) transform, because assets are read using `fs.readFileSync` and you want to include their content in your bundle.\n\n[![Travis Build Status](https://img.shields.io/travis/parro-it/nice-dialogs.svg)](http://travis-ci.org/parro-it/nice-dialogs)\n[![NPM module](https://img.shields.io/npm/v/nice-dialogs.svg)](https://npmjs.org/package/nice-dialogs)\n[![NPM downloads](https://img.shields.io/npm/dt/nice-dialogs.svg)](https://npmjs.org/package/nice-dialogs)\n\n![alert](media/alert.png)\n![confirm](media/confirm.png)\n\n\u003e Example of dialogs when styled using [Photon](https://github.com/connors/photon)\n\n## Installation\n\n```bash\nnpm install --save nice-dialogs\n```\n\n## Usage\n\n```javascript\n  const dialogs = require('nice-dialogs');\n  dialogs.confirm('Are you sure?', 'title')\n    .then(result =\u003e console.log(result))  // true/false\n\n  dialogs.alert('Something happened!', 'Title')\n    .then(result =\u003e console.log(result))  // always true\n```\n\n\n\n\n## License\n\nMIT License.\n\nCopyright (c) 2015 Andrea Parodi\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Fnice-dialogs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparro-it%2Fnice-dialogs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Fnice-dialogs/lists"}