{"id":20806336,"url":"https://github.com/nodesource/nsolid-command","last_synced_at":"2025-05-11T17:31:47.586Z","repository":{"id":65465808,"uuid":"148355175","full_name":"nodesource/nsolid-command","owner":"nodesource","description":"A N|Solid Custom Command Helper","archived":true,"fork":false,"pushed_at":"2018-09-11T19:54:34.000Z","size":9,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-04-19T20:34:48.778Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/nodesource.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-11T17:36:23.000Z","updated_at":"2025-02-01T14:00:59.000Z","dependencies_parsed_at":"2023-01-25T08:45:43.201Z","dependency_job_id":null,"html_url":"https://github.com/nodesource/nsolid-command","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodesource%2Fnsolid-command","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodesource%2Fnsolid-command/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodesource%2Fnsolid-command/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodesource%2Fnsolid-command/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodesource","download_url":"https://codeload.github.com/nodesource/nsolid-command/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253604872,"owners_count":21934911,"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-17T19:19:24.162Z","updated_at":"2025-05-11T17:31:47.315Z","avatar_url":"https://github.com/nodesource.png","language":"JavaScript","readme":"# N|Solid Custom Command\n\nImplement a [N|Solid custom command][] for your application. For more information please visit our [N|Solid documentation site][].\n\n## Installation\n\n``` bash\nnpm install nsolid-command\n```\n\n## Usage\n\n_Note: For the following example make sure you run your node process with `--expose-gc`_\n\n``` js\nconst nsolidCommand = require('nsolid-command')\n\nnsolidCommand('gc', request =\u003e {\n  global.gc()\n  request.return({\n    status: 'OK',\n    type: 'gc'\n  })\n})\n\n// or\n\nnsolidCommand({\n  name: 'gc',\n  command: request =\u003e {\n    global.gc()\n    request.return({\n      status: 'OK',\n      type: 'gc'\n    })\n  }\n})\n```\n\nFrom the N|Solid CLI\n\n``` bash\nnsolid-cli custom --id \u003cagentID\u003e --name gc\n```\n\n## Contributing\n\nTo submit a bug report, please create an [issue at GitHub][].\n\nIf you'd like to contribute code to this project, please read the\n[CONTRIBUTING.md][] document.\n\n\n## Authors and Contributors\n\n\u003ctable\u003e\u003ctbody\u003e\n  \u003ctr\u003e\n    \u003cth align=\"left\"\u003eJulián Duque\u003c/th\u003e\n    \u003ctd\u003e\u003ca href=\"https://github.com/julianduque\"\u003eGitHub/julianduque\u003c/a\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ca href=\"https://twitter.com/julian_duque\"\u003eTwitter/@julian_duque\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/tbody\u003e\u003c/table\u003e\n\n\n## License \u0026 Copyright\n\n**nsolid-command** is Copyright (c) 2018 NodeSource and licensed under the\nMIT license. All rights not explicitly granted in the MIT license are reserved.\nSee the included [LICENSE.md][] file for more details.\n\n[N|Solid documentation site]: https://docs.nodesource.com\n[N|Solid custom command]: https://docs.nodesource.com/docs/custom-commands\n[issue at GitHub]: https://github.com/nodesource/nsolid-command/issues\n[CONTRIBUTING.md]: CONTRIBUTING.md\n[LICENSE.md]: LICENSE.md\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodesource%2Fnsolid-command","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodesource%2Fnsolid-command","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodesource%2Fnsolid-command/lists"}