{"id":15007757,"url":"https://github.com/zachey01/autostarter","last_synced_at":"2026-03-12T14:14:17.357Z","repository":{"id":254177213,"uuid":"845717129","full_name":"zachey01/autostarter","owner":"zachey01","description":"Its a Nodejs module for enabling autostart for your applications!","archived":false,"fork":false,"pushed_at":"2024-08-24T13:30:10.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T11:46:58.610Z","etag":null,"topics":["automation","nodejs","npm-module","npm-package","startup"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/autostarter","language":"JavaScript","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/zachey01.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2024-08-21T19:41:23.000Z","updated_at":"2025-05-20T17:19:16.000Z","dependencies_parsed_at":"2024-09-28T15:21:02.393Z","dependency_job_id":null,"html_url":"https://github.com/zachey01/autostarter","commit_stats":null,"previous_names":["zachey01/autostarter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zachey01/autostarter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachey01%2Fautostarter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachey01%2Fautostarter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachey01%2Fautostarter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachey01%2Fautostarter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zachey01","download_url":"https://codeload.github.com/zachey01/autostarter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachey01%2Fautostarter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30427955,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T14:00:25.264Z","status":"ssl_error","status_checked_at":"2026-03-12T13:59:52.690Z","response_time":114,"last_error":"SSL_read: 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":["automation","nodejs","npm-module","npm-package","startup"],"created_at":"2024-09-24T19:13:39.202Z","updated_at":"2026-03-12T14:14:17.312Z","avatar_url":"https://github.com/zachey01.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `autostarter` 🚀\n\n`autostarter` is a Node.js module that allows you to enable, disable, and check the autostart status of your applications. With `autostarter`, you can easily manage whether your application starts automatically on system boot.\n\n![Static Badge](https://img.shields.io/badge/Zachey-autostarter-autostarter)\n![GitHub top language](https://img.shields.io/github/languages/top/zachey01/autostarter)\n![GitHub Repo stars](https://img.shields.io/github/stars/zachey01/autostarter)\n![GitHub issues](https://img.shields.io/github/issues/zachey01/autostarter)\n![NPM Downloads](https://img.shields.io/npm/dm/autostarter)\n\n## Table of Contents 📚\n\n- [`autostarter` 🚀](#autostarter-)\n  - [Table of Contents 📚](#table-of-contents-)\n  - [Installation 🛠️](#installation-️)\n    - [npm](#npm)\n    - [yarn](#yarn)\n  - [Simple Usage 📝](#simple-usage-)\n  - [API Documentation 📖](#api-documentation-)\n    - [`enableAutostart(appName, command, path)`](#enableautostartappname-command-path)\n    - [`disableAutostart(appName)`](#disableautostartappname)\n    - [`isAutostartEnabled(appName)`](#isautostartenabledappname)\n  - [Examples 💡](#examples-)\n    - [Enable Autostart](#enable-autostart)\n    - [Disable Autostart](#disable-autostart)\n    - [Check Autostart Status](#check-autostart-status)\n  - [Contributing 🤝](#contributing-)\n\n## Installation 🛠️\n\nYou can install `autostarter` using either npm or yarn:\n\n### npm\n\n```shell\nnpm install autostarter\n```\n\n### yarn\n\n```shell\nyarn add autostarter\n```\n\n## Simple Usage 📝\n\nHere's a basic example demonstrating how to use the `autostarter` module:\n\n```js\nconst autostarter = require(\"autostarter\");\n\n// Enable autostart for an application\nautostarter\n  .enableAutostart(\"myApp\", \"node myApp.js\", \"/path/to/app\")\n  .then(() =\u003e console.log(\"Autostart enabled\"))\n  .catch((error) =\u003e console.error(\"Failed to enable autostart:\", error));\n\n// Disable autostart for an application\nautostarter\n  .disableAutostart(\"myApp\")\n  .then(() =\u003e console.log(\"Autostart disabled\"))\n  .catch((error) =\u003e console.error(\"Failed to disable autostart:\", error));\n\n// Check if autostart is enabled\nautostarter\n  .isAutostartEnabled(\"myApp\")\n  .then((isEnabled) =\u003e {\n    if (isEnabled) {\n      console.log(\"Autostart is enabled\");\n    } else {\n      console.log(\"Autostart is not enabled\");\n    }\n  })\n  .catch((error) =\u003e console.error(\"Failed to check autostart:\", error));\n```\n\n## API Documentation 📖\n\n### `enableAutostart(appName, command, path)`\n\nEnables autostart for the specified application.\n\n- **Parameters:**\n\n  - `appName` (string): The name of the application to be enabled for autostart.\n  - `command` (string): The command to run the application.\n  - `path` (string): The path where the application is located.\n\n- **Returns:** `Promise\u003cvoid\u003e`: Resolves when autostart is successfully enabled.\n\n### `disableAutostart(appName)`\n\nDisables autostart for the specified application.\n\n- **Parameters:**\n\n  - `appName` (string): The name of the application to be disabled for autostart.\n\n- **Returns:** `Promise\u003cvoid\u003e`: Resolves when autostart is successfully disabled.\n\n### `isAutostartEnabled(appName)`\n\nChecks if autostart is enabled for the specified application.\n\n- **Parameters:**\n\n  - `appName` (string): The name of the application to check.\n\n- **Returns:** `Promise\u003cboolean\u003e`: Resolves with `true` if autostart is enabled, `false` otherwise.\n\n## Examples 💡\n\n### Enable Autostart\n\n```js\nconst autostarter = require(\"autostarter\");\n\nautostarter\n  .enableAutostart(\"myApp\", \"node myApp.js\", \"/path/to/app\")\n  .then(() =\u003e console.log(\"Autostart successfully enabled for myApp\"))\n  .catch((error) =\u003e console.error(\"Error enabling autostart:\", error));\n```\n\n### Disable Autostart\n\n```js\nconst autostarter = require(\"autostarter\");\n\nautostarter\n  .disableAutostart(\"myApp\")\n  .then(() =\u003e console.log(\"Autostart successfully disabled for myApp\"))\n  .catch((error) =\u003e console.error(\"Error disabling autostart:\", error));\n```\n\n### Check Autostart Status\n\n```js\nconst autostarter = require(\"autostarter\");\n\nautostarter\n  .isAutostartEnabled(\"myApp\")\n  .then((isEnabled) =\u003e {\n    if (isEnabled) {\n      console.log(\"Autostart is enabled for myApp\");\n    } else {\n      console.log(\"Autostart is not enabled for myApp\");\n    }\n  })\n  .catch((error) =\u003e console.error(\"Error checking autostart status:\", error));\n```\n\n## Contributing 🤝\n\nContributions are welcome! If you have any suggestions, improvements, or bug reports, please submit an issue or pull request on the [GitHub repository](https://github.com/zachey01/autostarter).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachey01%2Fautostarter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzachey01%2Fautostarter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachey01%2Fautostarter/lists"}