{"id":17419596,"url":"https://github.com/bendrucker/load-segment","last_synced_at":"2025-04-15T00:02:04.863Z","repository":{"id":65992433,"uuid":"58009261","full_name":"bendrucker/load-segment","owner":"bendrucker","description":"Load Segment's analytics.js library asynchronously with method queueing","archived":false,"fork":false,"pushed_at":"2018-11-13T19:30:04.000Z","size":8,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T08:14:02.765Z","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/bendrucker.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-03T23:57:24.000Z","updated_at":"2020-04-18T08:27:02.000Z","dependencies_parsed_at":"2023-07-20T12:16:07.742Z","dependency_job_id":null,"html_url":"https://github.com/bendrucker/load-segment","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"a2d5415ad382e7c08946541d45f24e1af8fffd0a"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fload-segment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fload-segment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fload-segment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fload-segment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bendrucker","download_url":"https://codeload.github.com/bendrucker/load-segment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248981263,"owners_count":21193145,"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-10-17T02:27:28.809Z","updated_at":"2025-04-15T00:02:04.842Z","avatar_url":"https://github.com/bendrucker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# load-segment [![Build Status](https://travis-ci.org/bendrucker/load-segment.svg?branch=master)](https://travis-ci.org/bendrucker/load-segment)\n\n\u003e Load Segment's analytics.js library asynchronously with method queueing\n\n\n## Install\n\n```\n$ npm install --save load-segment\n```\n\n\n## Usage\n\n```js\nvar Segment = require('load-segment')\n\nvar analytics = Segment({key: 'myWriteKey'})\n\nanalytics.track('MyEvent')\n```\n\n## API\n\n#### `Segment(options)` -\u003e `object`\n\nReturns a queue interface that accumulates calls to Segment while it loads and proxies them once it arrives.\n\n##### options\n\n*Required*  \nType: `object`\n\nSegment configuration. Currently only `key` is supported and required.\n\n\n## License\n\nMIT © [Ben Drucker](http://bendrucker.me)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Fload-segment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbendrucker%2Fload-segment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Fload-segment/lists"}