{"_id":"@darco2903/uniserverz","_rev":"2-3aa5a890ee4bf71ab5803954fd0c7480","name":"@darco2903/uniserverz","dist-tags":{"beta":"0.4.1-beta.0","latest":"0.4.2"},"versions":{"0.4.1-beta.0":{"name":"@darco2903/uniserverz","version":"0.4.1-beta.0","keywords":[],"author":{"name":"Darco2903"},"license":"ISC","_id":"@darco2903/uniserverz@0.4.1-beta.0","maintainers":[{"name":"darco2903","email":"william.valenduc@orange.fr"}],"homepage":"https://github.com/Darco2903/uniserverz#readme","bugs":{"url":"https://github.com/Darco2903/uniserverz/issues"},"dist":{"shasum":"2bab0e16224d07beba1d3761b2e4b041fb230b59","tarball":"https://registry.npmjs.org/@darco2903/uniserverz/-/uniserverz-0.4.1-beta.0.tgz","fileCount":8,"integrity":"sha512-GoJSu7aQDsX9h27lejT9fV747kOtXDgTlmdwHW9+IE8NyhedKGweRU3ox+VpihRfD9/+IwRn/JOcOiRNG3IVUA==","signatures":[{"sig":"MEUCIQCmtuqIkXrTFQ3QFxQW9GjfJrEkSoPnGFP32w8zSHzFKQIgPYpbT1YhKyIyHcRPsz1ncexmzDQ195NrkrzPo7BtfU0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7899},"main":"dist/index.js","type":"module","_from":"file:darco2903-uniserverz-0.4.1-beta.0.tgz","types":"dist/index.d.ts","scripts":{"build":"tsc","clean":"rimraf -g dist darco2903-uniserverz-*.tgz"},"_npmUser":{"name":"darco2903","email":"william.valenduc@orange.fr"},"_resolved":"C:\\Users\\Will\\AppData\\Local\\Temp\\1f0f4264a076caa3016fd71b89266865\\darco2903-uniserverz-0.4.1-beta.0.tgz","_integrity":"sha512-GoJSu7aQDsX9h27lejT9fV747kOtXDgTlmdwHW9+IE8NyhedKGweRU3ox+VpihRfD9/+IwRn/JOcOiRNG3IVUA==","repository":{"url":"git+https://github.com/Darco2903/uniserverz.git"},"_npmVersion":"11.6.2","description":"UniServerZ Control","directories":{},"_nodeVersion":"24.11.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^6.1.3","typescript":"^5.9.3","@types/node":"^25.3.5"},"_npmOperationalInternal":{"tmp":"tmp/uniserverz_0.4.1-beta.0_1772767428808_0.9185342227289262","host":"s3://npm-registry-packages-npm-production"}},"0.4.2":{"name":"@darco2903/uniserverz","version":"0.4.2","author":{"name":"Darco2903"},"description":"UniServerZ Control","keywords":[],"license":"ISC","main":"dist/index.js","types":"dist/index.d.ts","type":"module","repository":{"url":"git+https://github.com/Darco2903/uniserverz.git"},"publishConfig":{"access":"public"},"devDependencies":{"@types/node":"^25.3.5","rimraf":"^6.1.3","typescript":"^5.9.3"},"scripts":{"build":"tsc","clean":"rimraf -g dist darco2903-uniserverz-*.tgz"},"_id":"@darco2903/uniserverz@0.4.2","bugs":{"url":"https://github.com/Darco2903/uniserverz/issues"},"homepage":"https://github.com/Darco2903/uniserverz#readme","_integrity":"sha512-haxqZP+O8sSrIx5Naq15cgd9vm5qx1Iw95WIqCbq63robRQZ24Bh4GnPhvgcB8F8LTO9UKZE7+3U3SmhZKcE9Q==","_resolved":"/tmp/093dbbcfe266d99ca4cb06f46056c14d/darco2903-uniserverz-0.4.2.tgz","_from":"file:darco2903-uniserverz-0.4.2.tgz","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-haxqZP+O8sSrIx5Naq15cgd9vm5qx1Iw95WIqCbq63robRQZ24Bh4GnPhvgcB8F8LTO9UKZE7+3U3SmhZKcE9Q==","shasum":"0ff2354ed20d374431080f322e8a09243eb9e22b","tarball":"https://registry.npmjs.org/@darco2903/uniserverz/-/uniserverz-0.4.2.tgz","fileCount":9,"unpackedSize":42984,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCIHlM9GKJo0JpKNyZl5r+7mJ4BDZUKciBPAI6Oi6Q9jwIhAM1+Q4RaxvyvRSwQ62B/VN82PbyWvBaBqPkzjJ2FyISC"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:7e0fa61e-238e-42d9-8c5c-8d4b46021057"}},"directories":{},"maintainers":[{"name":"darco2903","email":"william.valenduc@orange.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/uniserverz_0.4.2_1772767887995_0.6073760070226286"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-06T03:23:48.704Z","modified":"2026-03-06T03:31:28.240Z","0.4.1-beta.0":"2026-03-06T03:23:48.956Z","0.4.2":"2026-03-06T03:31:28.134Z"},"bugs":{"url":"https://github.com/Darco2903/uniserverz/issues"},"author":{"name":"Darco2903"},"license":"ISC","homepage":"https://github.com/Darco2903/uniserverz#readme","keywords":[],"repository":{"url":"git+https://github.com/Darco2903/uniserverz.git"},"description":"UniServerZ Control","maintainers":[{"name":"darco2903","email":"william.valenduc@orange.fr"}],"readme":"# UniServerZ NodeJS Controller\n\n## Description\n\nThis package provides a simple interface to control [**Uniform Server**](https://www.uniformserver.com/), a lightweight WAMP server solution for Windows. It allows you to start and stop Apache and MySQL services, as well as check their running status.\n\n> [!WARNING]\n> As UniformServer is a Windows-only application, this package is designed to work exclusively on Windows environments.\n\n## Installation\n\n```bash\nnpm install @darco2903/uniserverz\n```\n\n## Usage\n\n```ts\nimport { Uni } from \"@darco2903/uniserverz\";\n\n// Path to UniServerZ base folder\n// e.g. C:/UniServerZ if UniController.exe is located in C:/UniServerZ/UniController.exe\nconst UNI_PATH = \"C:/UniServerZ\";\n\n(async () => {\n    const u = await Uni.createUni(UNI_PATH);\n    console.log(\"Uni created.\");\n\n    await u.isApacheRunning().then((res) => console.log(\"isApacheRunning\", res));\n    await u.isMysqlRunning().then((res) => console.log(\"isMysqlRunning \", res));\n    await u.isBothRunning().then((res) => console.log(\"isBothRunning  \", res));\n\n    await u.startApache();\n    console.log(\"Apache started.\");\n    await u.isApacheRunning().then((res) => console.log(\"isApacheRunning\", res));\n\n    await u.stopApache();\n    console.log(\"Apache stopped.\");\n    await u.isApacheRunning().then((res) => console.log(\"isApacheRunning\", res));\n\n    await u.startMysql();\n    console.log(\"MySQL started.\");\n    await u.isMysqlRunning().then((res) => console.log(\"isMysqlRunning \", res));\n\n    await u.stopMysql();\n    console.log(\"MySQL stopped.\");\n    await u.isMysqlRunning().then((res) => console.log(\"isMysqlRunning \", res));\n\n    await u.startBoth();\n    console.log(\"Both started.\");\n    await u.isBothRunning().then((res) => console.log(\"isBothRunning  \", res));\n\n    await u.stopBoth();\n    console.log(\"Both stopped.\");\n    await u.isBothRunning().then((res) => console.log(\"isBothRunning  \", res));\n})();\n```\n","readmeFilename":"README.md"}