{"id":15910469,"url":"https://github.com/parkejunior/bs-cookie-notice","last_synced_at":"2026-05-07T14:38:58.163Z","repository":{"id":143866522,"uuid":"341546930","full_name":"parkejunior/bs-cookie-notice","owner":"parkejunior","description":"A simple cookie notice alert for Bootstrap 4","archived":false,"fork":false,"pushed_at":"2021-03-02T13:58:21.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-30T11:45:57.797Z","etag":null,"topics":["bootstrap","bootstrap4","gdpr","gdpr-cookie","javascript","npm","npm-package"],"latest_commit_sha":null,"homepage":"https://parkejunior.github.io/bs-cookie-notice/","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/parkejunior.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-23T12:26:18.000Z","updated_at":"2022-07-11T19:57:10.000Z","dependencies_parsed_at":"2023-06-26T17:59:00.757Z","dependency_job_id":null,"html_url":"https://github.com/parkejunior/bs-cookie-notice","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"5b4c6baf9a4d3649ee935d4d7fae4749d1585e9b"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/parkejunior/bs-cookie-notice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parkejunior%2Fbs-cookie-notice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parkejunior%2Fbs-cookie-notice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parkejunior%2Fbs-cookie-notice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parkejunior%2Fbs-cookie-notice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parkejunior","download_url":"https://codeload.github.com/parkejunior/bs-cookie-notice/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parkejunior%2Fbs-cookie-notice/sbom","scorecard":{"id":720533,"data":{"date":"2025-08-11","repo":{"name":"github.com/parkejunior/bs-cookie-notice","commit":"5b4c6baf9a4d3649ee935d4d7fae4749d1585e9b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/15 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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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"}}]},"last_synced_at":"2025-08-22T11:10:59.289Z","repository_id":143866522,"created_at":"2025-08-22T11:10:59.290Z","updated_at":"2025-08-22T11:10:59.290Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32742180,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bootstrap","bootstrap4","gdpr","gdpr-cookie","javascript","npm","npm-package"],"created_at":"2024-10-06T15:06:22.688Z","updated_at":"2026-05-07T14:38:58.129Z","avatar_url":"https://github.com/parkejunior.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Bootstrap Cookie Notice\n\nA simple cookie consent notice alert for Bootstrap 4 without require jQuery.\n\n- Various configuration options\n- Defaults texts in PT, EN and ES\n- Possibility to add extra classes and callbacks\n- Does not require jQuery\n- Compatible with Bootstrap 4.1.x or more recent\n- It's lightweight, only ± 7 kb script\n\nThis plugin is a little bit based on [`Wruczek/Bootstrap-Cookie-Alert`](https://github.com/Wruczek/Bootstrap-Cookie-Alert).\n\n# Installation\n\nFirst, you will need to install [NPM](https://www.npmjs.com/get-npm). Then, run the following command:\n```bash\n$ npm install bs-cookie-notice --save\n```\n\n# Usage\n\n## Basic\nHere is a basic example of using the plugin:\n```js\n\u003cscript type=\"text/javascript\"\u003e\n    var notice = new BsCookieNotice();\n\u003c/script\u003e\n```\nAutomatically opens the notice in the browser when loading the page.\n\n## Colors\nThe default color is `dark`, but you can choose between it and `light`. Example:\n```js\nnew BsCookieNotice({\n    color: 'light'\n});\n```\n\n## Default texts\nYou can change the default texts language, just by setting the `locale` property (English, Portuguese and Spanish). Example:\n```js\nnew BsCookieNotice({\n    locale: 'pt'\n});\n```\nThe default language of the plugin is English.\n\nIf you want to change the text to a custom one, you can pass an object with properties named `message`, `accept` and / or `more` to the `customMessage` property. Example:\n```js\nnew BsCookieNotice({\n    locale: 'pt',\n    customMessage: {\n        more: \"Quero saber mais...\",\n        accept: \"Aceitar Todos\"\n    }\n});\n```\nNote that it's not necessary to pass all properties on the object, you can choose a default language and just change the text of the `Accept` button for example.\n\n## Learn More URL\nOne of the indispensable things that needs to be configured is the \"Learn more\" link URL. For this you can pass to the `more` property an object containing an option named `href` with the URL value you want. Example:\n```js\nnew BsCookieNotice({\n    more: {\n        href: \"https://github.com/parkejunior\",\n    }\n});\n```\nThere may also be a need to use the [target](https://www.w3schools.com/tags/att_a_target.asp) attribute. To do this, you can pass the attribute value ( `_blank`, `_self`, etc.) to the `target` property in the `more` object. Example: \n```js\nnew BsCookieNotice({\n    more: {\n        href: \"https://github.com/parkejunior\",\n        target: \"_blank\",\n    }\n});\n```\n\n## Classes and HTML\nIn the same way that it's possible to configure the URL of the \"Learn More\" link, it's also possible to configure the \"Accept\" button.\n\nYou can add custom classes for these elements by passing an object to the `more` (for \"Learn More\") and `accept` (for the \"Accept\" button) properties. For example, changing the color of the button using the Bootstrap class:\n```js\nnew BsCookieNotice({\n    accept: {\n        class: [\"btn-danger\"],\n    }\n});\n```\nOr add a custom color for the link:\n```js\nnew BsCookieNotice({\n    more: {\n        href: \"https://github.com/parkejunior\",\n        class: [\"text-warning\", \"another-classes\"],\n    }\n});\n```\n## Callbacks\nIt's also possible to add callbacks to the \"Accept\" button and the \"Learn More\" link. Example: \n```js\nnew BsCookieNotice({\n    accept: {\n        callback: function () {\n            console.log(\"User accept cookies\");\n        }\n    },\n    more: {\n        href: \"https://github.com/parkejunior\",\n        callback: function () {\n            console.log(\"User wants to learn more\");\n        }\n    }\n});\n```\nNote: You cannot override the default \"Accept\" button event, just add a callback.\n\n## Expire\nThe default notice hide expiration time is 365 days after acceptance. You can change this by passing the number of days to the `expire` property. Example:\n```js\nnew BsCookieNotice({\n    expire: 30\n});\n```\nIn this example, after 30 days after the user accepts the cookies, the message will be displayed again and the user must accept it again.\n\n# Demo\nYou can test the plugin by opening the `index.html` file in your browser.\n\n# Contribution\nIf you find any incorrect English grammar or any suggestions on how to improve the plugin, I appreciate it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparkejunior%2Fbs-cookie-notice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparkejunior%2Fbs-cookie-notice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparkejunior%2Fbs-cookie-notice/lists"}