{"id":19725392,"url":"https://github.com/bodacious/consented_scripts","last_synced_at":"2025-10-27T02:11:48.784Z","repository":{"id":44020383,"uuid":"230964614","full_name":"Bodacious/consented_scripts","owner":"Bodacious","description":"Only run JS scripts when you have user consent","archived":false,"fork":false,"pushed_at":"2022-12-05T02:54:14.000Z","size":784,"stargazers_count":1,"open_issues_count":10,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-10T16:55:00.937Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","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/Bodacious.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-30T18:53:15.000Z","updated_at":"2022-07-26T23:06:51.000Z","dependencies_parsed_at":"2023-01-22T23:31:27.432Z","dependency_job_id":null,"html_url":"https://github.com/Bodacious/consented_scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bodacious%2Fconsented_scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bodacious%2Fconsented_scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bodacious%2Fconsented_scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bodacious%2Fconsented_scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bodacious","download_url":"https://codeload.github.com/Bodacious/consented_scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241049324,"owners_count":19900426,"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","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-11T23:29:34.372Z","updated_at":"2025-10-27T02:11:48.708Z","avatar_url":"https://github.com/Bodacious.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ConsentedScripts\n\nA simple Javascript pack for managing user consent to cookies.\n\nIf your site distinguishes between necessary and optional cookies, this pack\nwill help you mark certain scripts as \"consent only\". This means that services\nsuch as Google Analytics and Facebook Pixels can be loaded on a consented basis.\n\n## Installation\n\n### Yarn Installation\n\nAdd the JS package by running the following command in the command line:\n\n```\nyarn add consented_scripts\n```\n\nAnd then include it in your file:\n\n``` javascript\nlet ConsentedScripts = require(\"consented_scripts\");\n```\n\n### Rails Installation\n\nThe main bulk of this library is in the Javascript, but you can install the gem\nto your Rails app for a helpful view helper.\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'consented_scripts'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install consented_scripts\n\n## Usage\n\n### JS Usage\n\n\n### Rails Usage\n\nDo the above, but also...\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/consented_scripts.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbodacious%2Fconsented_scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbodacious%2Fconsented_scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbodacious%2Fconsented_scripts/lists"}