{"id":27295100,"url":"https://github.com/mergentlabs/mergent-js","last_synced_at":"2025-06-21T16:34:50.534Z","repository":{"id":37057343,"uuid":"441777784","full_name":"mergentlabs/mergent-js","owner":"mergentlabs","description":"JavaScript / TypeScript library for the Mergent API.","archived":false,"fork":false,"pushed_at":"2025-04-08T01:25:31.000Z","size":1383,"stargazers_count":20,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T22:58:13.824Z","etag":null,"topics":["javascript","js","mergent","node","ts","typescript"],"latest_commit_sha":null,"homepage":"https://mergent.co","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mergentlabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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-12-25T23:51:58.000Z","updated_at":"2025-04-06T22:29:50.000Z","dependencies_parsed_at":"2023-02-16T23:31:22.407Z","dependency_job_id":"b4a6f4ee-8646-4bf0-8961-283d836c4891","html_url":"https://github.com/mergentlabs/mergent-js","commit_stats":{"total_commits":140,"total_committers":3,"mean_commits":"46.666666666666664","dds":0.4357142857142857,"last_synced_commit":"bd5d3aab4ae0ef73a4804e8c8c4254f2d0c9b220"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mergentlabs%2Fmergent-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mergentlabs%2Fmergent-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mergentlabs%2Fmergent-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mergentlabs%2Fmergent-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mergentlabs","download_url":"https://codeload.github.com/mergentlabs/mergent-js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248492903,"owners_count":21113162,"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":["javascript","js","mergent","node","ts","typescript"],"created_at":"2025-04-11T22:58:18.837Z","updated_at":"2025-04-11T22:58:19.492Z","avatar_url":"https://github.com/mergentlabs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mergent JavaScript Library\n\n[![npm version](https://badge.fury.io/js/mergent.svg)](https://badge.fury.io/js/mergent)\n[![CI](https://github.com/mergentlabs/mergent-js/actions/workflows/ci.yml/badge.svg)](https://github.com/mergentlabs/mergent-js/actions/workflows/ci.yml)\n\nThe Mergent JavaScript library provides convenient access to the Mergent API\nfrom applications written in the JavaScript language.\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install mergent --save\n# or\nyarn add mergent\n```\n\n## Usage\n\nThe library needs to be configured with your project's API key. Set\n`Mergent.api_key` to its value:\n\n```js\nconst Mergent = require(\"mergent\");\n\n// set the Mergent API key\nconst mergent = new Mergent(\"...\");\n\n// create a Task that will make an HTTP request in 5 minutes\nmergent.tasks\n  .create({\n    request: { url: \"...\", body: \"Hello, world!\" },\n    delay: { minutes: 5 },\n  })\n  .then((task) =\u003e console.log(task))\n  .catch((error) =\u003e console.error(error));\n\n// create a recurring Schedule that will make an HTTP request every minute\nmergent.schedules\n  .create({\n    request: { url: \"...\", body: \"Hello, world!\" },\n    cron: \"* * * * *\",\n  })\n  .then((task) =\u003e console.log(task))\n  .catch((error) =\u003e console.error(error));\n```\n\n### Usage with TypeScript\n\n```ts\nimport Mergent from \"mergent\";\n\n// set the Mergent API key\nconst mergent = new Mergent(\"...\");\n\n// create a Task that will make an HTTP request in 5 minutes\nmergent.tasks\n  .create({\n    request: { url: \"...\", body: \"Hello, world!\" },\n    delay: { minutes: 5 },\n  })\n  .then((task) =\u003e console.log(task))\n  .catch((error) =\u003e console.error(error));\n\n// create a recurring Schedule that will make an HTTP request every minute\nmergent.schedules\n  .create({\n    request: { url: \"...\", body: \"Hello, world!\" },\n    cron: \"* * * * *\",\n  })\n  .then((task) =\u003e console.log(task))\n  .catch((error) =\u003e console.error(error));\n```\n\nSee the [Mergent JavaScript docs](https://docs.mergent.co/libraries/javascript)\nfor more details.\n\n## Development\n\nAfter checking out the repo, run `npm install` to install dependencies. Then,\nrun `npm test` to run the tests.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at\nhttps://github.com/mergentlabs/mergent-js.\n\n## Distributing\n\n1. Update the version with `npm version \u003cversion\u003e` (this makes a new commit)\n1. Amend that commit with updates to the CHANGELOG\n1. Push with `git push --tags`\n1. Package with `npm run package`\n1. Publish with `npm publish`\n\n## License\n\nThe library is available as open source under the terms of the\n[MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmergentlabs%2Fmergent-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmergentlabs%2Fmergent-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmergentlabs%2Fmergent-js/lists"}