{"id":13426680,"url":"https://github.com/jaredreich/notie","last_synced_at":"2025-12-12T03:25:21.633Z","repository":{"id":41493412,"uuid":"45655949","full_name":"jaredreich/notie","owner":"jaredreich","description":"🔔 a clean and simple notification, input, and selection suite for javascript, with no dependencies","archived":false,"fork":false,"pushed_at":"2023-05-04T13:18:42.000Z","size":11399,"stargazers_count":6302,"open_issues_count":20,"forks_count":371,"subscribers_count":113,"default_branch":"master","last_synced_at":"2025-10-23T05:52:33.324Z","etag":null,"topics":["alert","confirm","growl","input","javascript","notification","notifications","prompt","selection","toast"],"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/jaredreich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2015-11-06T03:08:02.000Z","updated_at":"2025-10-21T22:01:30.000Z","dependencies_parsed_at":"2022-08-10T02:34:59.876Z","dependency_job_id":"8040859a-b586-48af-b9b2-1099e55df474","html_url":"https://github.com/jaredreich/notie","commit_stats":{"total_commits":119,"total_committers":12,"mean_commits":9.916666666666666,"dds":"0.19327731092436973","last_synced_commit":"720e68524c0f6bfd92dedf5692aa0252ac281f8f"},"previous_names":["jaredreich/notie.js"],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/jaredreich/notie","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredreich%2Fnotie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredreich%2Fnotie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredreich%2Fnotie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredreich%2Fnotie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredreich","download_url":"https://codeload.github.com/jaredreich/notie/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredreich%2Fnotie/sbom","scorecard":{"id":506449,"data":{"date":"2025-08-11","repo":{"name":"github.com/jaredreich/notie","commit":"720e68524c0f6bfd92dedf5692aa0252ac281f8f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"81 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-c6rq-rjc2-86v2","Warn: Project is vulnerable to: GHSA-257v-vj4p-3w2h","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-vh7m-p724-62c2","Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-xf7w-r453-m56c","Warn: Project is vulnerable to: GHSA-44pw-h2cw-w3vq","Warn: Project is vulnerable to: GHSA-jp4x-w63m-7wgm","Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-7r28-3m3f-r2pr","Warn: Project is vulnerable to: GHSA-r8j5-h5cx-65gg","Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-282f-qqgm-c34q","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-779f-wgxg-qr8f","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-hxm2-r34f-qmc5","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-fhjf-83wg-r2j9","Warn: Project is vulnerable to: GHSA-9v62-24cr-58cx","Warn: Project is vulnerable to: GHSA-r8f7-9pfq-mjmv","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-566m-qj78-rww5","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-7mwh-4pqv-wmr8","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-4g88-fppr-53pp","Warn: Project is vulnerable to: GHSA-4jqc-8m5r-9rpr","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: GHSA-j44m-qm6p-hp7m","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T23:20:19.894Z","repository_id":41493412,"created_at":"2025-08-19T23:20:19.894Z","updated_at":"2025-08-19T23:20:19.894Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27675543,"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-12-12T02:00:06.775Z","response_time":129,"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":["alert","confirm","growl","input","javascript","notification","notifications","prompt","selection","toast"],"created_at":"2024-07-31T00:01:41.070Z","updated_at":"2025-12-12T03:25:21.615Z","avatar_url":"https://github.com/jaredreich.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","UI","Notifications","javascript","Notifications [🔝](#readme)","UI Components","通知","Uncategorized"],"sub_categories":["Runner","Notification, Snackbar and Toast","运行器","运行器e2e测试","Uncategorized"],"readme":"# notie\n\n[![npm](https://img.shields.io/npm/v/notie.svg)](https://www.npmjs.com/package/notie)\n[![cdnjs](https://img.shields.io/cdnjs/v/notie.svg)](https://cdnjs.com/libraries/notie)\n\n\u003e notie is a clean and simple notification, input, and selection suite for javascript, with no dependencies\n\nLive demo: [https://jaredreich.com/notie](https://jaredreich.com/notie)\n\n#### With notie you can:\n* Alert users\n* Confirm user choices\n* Allow users to input information\n* Allow users to select choices\n* Allow users to select dates\n\n![Alt text](/demo.gif?raw=true \"Demo\")\n\n## Features\n\n* Pure JavaScript, no dependencies, written in ES6\n* Easily customizable\n* Change colors to match your style/brand\n* Modify styling with the sass file (notie.scss) or overwrite the CSS\n* Font size auto-adjusts based on screen size\n\n## Browser Support\n\n* IE 10+\n* Chrome 11+\n* Firefox 4+\n* Safari 5.1+\n* Opera 11.5+\n\n## Installation\n\n#### HTML:\n```html\n\u003chead\u003e\n  ...\n  \u003clink rel=\"stylesheet\" type=\"text/css\" href=\"https://unpkg.com/notie/dist/notie.min.css\"\u003e\n  \u003cstyle\u003e\n    /* override styles here */\n    .notie-container {\n      box-shadow: none;\n    }\n  \u003c/style\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n  ...\n  \u003c!-- Bottom of body --\u003e\n  \u003cscript src=\"https://unpkg.com/notie\"\u003e\u003c/script\u003e\n\u003c/body\u003e\n```\n\n#### npm:\n```bash\nnpm install notie\n```\n\n\n## Usage\n\n#### ES6:\n```js\nimport notie from 'notie'\n// or\nimport { alert, force, confirm, input, select, date, setOptions, hideAlerts } from 'notie'\n```\n\n#### Browser:\n```js\nnotie\n// or\nwindow.notie\n```\n\n#### Available methods:\n```js\nnotie.alert({\n  type: Number|String, // optional, default = 4, enum: [1, 2, 3, 4, 5, 'success', 'warning', 'error', 'info', 'neutral']\n  text: String,\n  stay: Boolean, // optional, default = false\n  time: Number, // optional, default = 3, minimum = 1,\n  position: String // optional, default = 'top', enum: ['top', 'bottom']\n})\n\nnotie.force({\n  type: Number|String, // optional, default = 5, enum: [1, 2, 3, 4, 5, 'success', 'warning', 'error', 'info', 'neutral']\n  text: String,\n  buttonText: String, // optional, default = 'OK'\n  position: String, // optional, default = 'top', enum: ['top', 'bottom']\n  callback: Function // optional\n}, callbackOptional())\n\nnotie.confirm({\n  text: String,\n  submitText: String, // optional, default = 'Yes'\n  cancelText: String, // optional, default = 'Cancel'\n  position: String, // optional, default = 'top', enum: ['top', 'bottom']\n  submitCallback: Function, // optional\n  cancelCallback: Function // optional\n}, submitCallbackOptional(), cancelCallbackOptional())\n\nnotie.input({\n  text: String,\n  submitText: String, // optional, default = 'Submit'\n  cancelText: String, // optional, default = 'Cancel'\n  position: String, // optional, default = 'top', enum: ['top', 'bottom']\n  submitCallback: Function(value), // optional\n  cancelCallback: Function(value), // optional\n  autocapitalize: 'words', // default: 'none'\n  autocomplete: 'on', // default: 'off'\n  autocorrect: 'off', // default: 'off'\n  autofocus: 'true', // default: 'true'\n  inputmode: 'latin', // default: 'verbatim'\n  max: '10000',// default: ''\n  maxlength: '10', // default: ''\n  min: '5', // default: ''\n  minlength: '1', // default: ''\n  placeholder: 'Jane Smith', // default: ''\n  value: String, // default: ''\n  spellcheck: 'false', // default: 'default'\n  step: '5', // default: 'any'\n  type: 'text', // default: 'text'\n  allowed: ['an', 's'] // Default: null, 'an' = alphanumeric, 'a' = alpha, 'n' = numeric, 's' = spaces allowed. Can be custom RegExp, ex. allowed: new RegExp('[^0-9]', 'g')\n}, submitCallbackOptional(value), cancelCallbackOptional(value))\n\nnotie.select({\n  text: String,\n  cancelText: String, // optional, default = 'Cancel'\n  position: String, // optional, default = 'bottom', enum: ['top', 'bottom']\n  choices: [\n    {\n      type: Number|String, // optional, default = 1\n      text: String,\n      handler: Function\n    }\n    ...\n  ],\n  cancelCallback: Function // optional\n}, cancelCallbackOptional())\n\nnotie.date({\n  value: Date,\n  submitText: String, // optional, default = 'OK'\n  cancelText: String, // optional, default = 'Cancel'\n  position: String, // optional, default = 'top', enum: ['top', 'bottom']\n  submitCallback: Function(date), // optional\n  cancelCallback: Function(date) // optional\n}, submitCallbackOptional(date), cancelCallbackOptional(date))\n```\n\n#### For example:\n```js\nnotie.alert({ text: 'Info!' })\nnotie.alert({ type: 1, text: 'Success!', stay: true }) // Never hides unless clicked, or escape or enter is pressed\nnotie.alert({ type: 'success', text: 'Success!', time: 2 }) // Hides after 2 seconds\nnotie.alert({ type: 2, text: 'Warning\u003cbr\u003e\u003cb\u003ewith\u003c/b\u003e\u003cbr\u003e\u003ci\u003eHTML\u003c/i\u003e\u003cbr\u003e\u003cu\u003eincluded.\u003c/u\u003e' })\nnotie.alert({ type: 'warning', text: 'Watch it...' })\nnotie.alert({ type: 3, text: 'Error.', position: 'bottom' })\nnotie.alert({ type: 'error', text: 'Oops!' })\nnotie.alert({ type: 4, text: 'Information.' })\nnotie.alert({ type: 'info', text: 'FYI, blah blah blah.' })\n\nnotie.force({\n  type: 3,\n  text: 'You cannot do that, sending you back.',\n  buttonText: 'OK',\n  callback: function () {\n    notie.alert({ type: 3, text: 'Maybe when you\\'re older...' })\n  }\n})\n\nnotie.confirm({\n  text: 'Are you sure you want to do that?\u003cbr\u003e\u003cb\u003eThat\\'s a bold move...\u003c/b\u003e',\n  cancelCallback: function () {\n    notie.alert({ type: 3, text: 'Aw, why not? :(', time: 2 })\n  },\n  submitCallback: function () {\n    notie.alert({ type: 1, text: 'Good choice! :D', time: 2 })\n  }\n})\nnotie.confirm({ text: 'Are you sure?' }, function() {\n  notie.confirm({ text: 'Are you \u003cb\u003ereally\u003c/b\u003e sure?' }, function() {\n    notie.confirm({ text: 'Are you \u003cb\u003ereally\u003c/b\u003e \u003ci\u003ereally\u003c/i\u003e sure?' }, function() {\n      notie.alert({ text: 'Okay, jeez...' })\n    })\n  })\n})\n\nnotie.input({\n  text: 'Please enter your email:',\n  submitText: 'Submit',\n  cancelText: 'Cancel',\n  cancelCallback: function (value) {\n    notie.alert({ type: 3, text: 'You cancelled with this value: ' + value })\n  },\n  submitCallback: function (value) {\n    notie.alert({ type: 1, text: 'You entered: ' + value })\n  },\n  value: 'jane@doe.com',\n  type: 'email',\n  placeholder: 'name@example.com'\n})\n\nnotie.input({\n  text: 'Please enter your name:',\n  type: 'text',\n  placeholder: 'Jane Doe',\n  allowed: ['a', 's']\n}, function(value) {\n  notie.alert({ type: 1, text: 'You entered: ' + value })\n}, function(value) {\n  notie.alert({ type: 3, text: 'You cancelled with this value: ' + value })\n})\n\nnotie.input({\n  text: 'Please enter the price:',\n  cancelCallback: function (value) {\n    notie.alert({ type: 3, text: 'You cancelled with this value: ' + value })\n  },\n  submitCallback: function (value) {\n    notie.alert({ type: 1, text: 'You entered: ' + value })\n  },\n  type: 'text',\n  placeholder: '500',\n  allowed: new RegExp('[^0-9]', 'g')\n})\n\nnotie.select({\n  text: 'Demo item #1, owner is Jane Smith',\n  cancelText: 'Close',\n  cancelCallback: function () {\n    notie.alert({ type: 5, text: 'Cancel!' })\n  },\n  choices: [\n    {\n      text: 'Share',\n      handler: function () {\n        notie.alert({ type: 1, text: 'Share item!' })\n      }\n    },\n    {\n      text: 'Open',\n      handler: function () {\n        notie.alert({ type: 1, text: 'Open item!' })\n      }\n    },\n    {\n      type: 2,\n      text: 'Edit',\n      handler: function () {\n        notie.alert({ type: 2, text: 'Edit item!' })\n      }\n    },\n    {\n      type: 3,\n      text: 'Delete',\n      handler: function () {\n        notie.alert({ type: 3, text: 'Delete item!' })\n      }\n    }\n  ]\n})\n\nfunction date() {\n  notie.date({\n    value: new Date(2015, 8, 27),\n    cancelCallback: function (date) {\n      notie.alert({ type: 3, text: 'You cancelled: ' + date.toISOString() })\n    },\n    submitCallback: function (date) {\n      notie.alert({ type: 1, text: 'You selected: ' + date.toISOString() })\n    }\n  })\n}\n```\n\n#### Use ES6 for nicer code and to inherit `this`:\n``` javascript\nnotie.confirm({\n  text: 'Leave the page?',\n  submitCallback: () =\u003e this.location.href = 'https://google.com'\n})\n\nnotie.confirm({\n  text: 'Is ES6 great?',\n  cancelCallback: () =\u003e notie.alert({ type: 3, text: 'Why not?' }),\n  submitCallback: () =\u003e notie.alert({ type: 1, text: 'I Agree' })\n})\n\nnotie.force({\n  type: 3,\n  text: 'You cannot do that, sending you back.',\n  buttonText: 'OK',\n  callback: () =\u003e notie.alert({ type: 3, text: 'Maybe when you\\'re older...' })\n})\n```\n\n## Custom Styles\n\n#### SASS:\n```scss\n// Before notie is imported:\n$notie-color-success: #57BF57;\n$notie-color-warning: #D6A14D;\n$notie-color-error: #E1715B;\n$notie-color-info: #4D82D6;\n$notie-color-neutral: #A0A0A0;\n// See all overwriteable variables in src/notie.scss\n\n// Then import notie:\n@import '../../node_modules/notie/src/notie';\n```\n\n#### CSS:\n```css\n/* After notie styles are applied to DOM: */\n.notie-container {\n  box-shadow: none;\n}\n```\n\n## Options \u0026 Methods\n\n```js\n// Showing all available options with defaults\nnotie.setOptions({\n  alertTime: 3,\n  dateMonths: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']\n  overlayClickDismiss: true,\n  overlayOpacity: 0.75,\n  transitionCurve: 'ease',\n  transitionDuration: 0.3,\n  transitionSelector: 'all'\n  classes: {\n    container: 'notie-container',\n    textbox: 'notie-textbox',\n    textboxInner: 'notie-textbox-inner',\n    button: 'notie-button',\n    element: 'notie-element',\n    elementHalf: 'notie-element-half',\n    elementThird: 'notie-element-third',\n    overlay: 'notie-overlay',\n    backgroundSuccess: 'notie-background-success',\n    backgroundWarning: 'notie-background-warning',\n    backgroundError: 'notie-background-error',\n    backgroundInfo: 'notie-background-info',\n    backgroundNeutral: 'notie-background-neutral',\n    backgroundOverlay: 'notie-background-overlay',\n    alert: 'notie-alert',\n    inputField: 'notie-input-field',\n    selectChoiceRepeated: 'notie-select-choice-repeated',\n    dateSelectorInner: 'notie-date-selector-inner',\n    dateSelectorUp: 'notie-date-selector-up'\n  },\n  ids: {\n    overlay: 'notie-overlay'\n  },\n  positions: {\n    alert: 'top',\n    force: 'top',\n    confirm: 'top',\n    input: 'top',\n    select: 'bottom',\n    date: 'top'\n  }\n})\n```\n\n```js\n// programmatically hide all alerts with an optional callback function\nnotie.hideAlerts(callbackOptional)\n```\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredreich%2Fnotie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredreich%2Fnotie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredreich%2Fnotie/lists"}