npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

win_service_control

v1.0.2

Published

a windows service operation used in node-red, For programe base on nodejs

Downloads

13

Readme

win_service_control

A Node-RED node to make a nodejs programme to a windows service...

Install

You can install this node directly from the "Manage Palette" menu in the Node-RED interface.

Alternatively, run the following command in your Node-RED user directory - typically ~/.node-red on Linux or %HOMEPATH%\.nodered on Windows

    npm install win_service_control

NodeJS version 10 or greater and Node-RED version 1.0 or greater is required.

Usage

You can improt follow json to your own node-red project . those node contain install uninstall stop start server based nodejs. [ { "id": "8c4bdd85679a74bb", "type": "tab", "label": "Flow 2", "disabled": false, "info": "", "env": [] }, { "id": "ec32585b395a1ac7", "type": "inject", "z": "8c4bdd85679a74bb", "name": "", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 180, "y": 220, "wires": [ [ "2f1cc72f97ea1769" ] ] }, { "id": "de66537764224e4a", "type": "debug", "z": "8c4bdd85679a74bb", "name": "debug 53", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 640, "y": 220, "wires": [] }, { "id": "2f1cc72f97ea1769", "type": "win_service_control", "z": "8c4bdd85679a74bb", "name": "install", "mcommand": "install", "mservicename": "Node-Red", "mservicedescription": "", "mserviceExecutePath": "C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\node-red\\red.js", "mexecuteOption": "--port 5000 --userDir C:\\Users\\Administrator\\.node-red", "x": 350, "y": 220, "wires": [ [ "de66537764224e4a" ] ] }, { "id": "ccefb524b41aec2e", "type": "win_service_control", "z": "8c4bdd85679a74bb", "name": "uninstall", "mcommand": "uninstall", "mservicename": "Node-Red", "mservicedescription": "1", "mserviceExecutePath": "C:\Users\Administrator\AppData\Roaming\npm\node_modules\node-red\red.js", "mexecuteOption": "--port 5000 --userDir C:\Users\Administrator\.node-red", "x": 360, "y": 280, "wires": [ [ "de66537764224e4a" ] ] }, { "id": "c3bdfde857330a4b", "type": "inject", "z": "8c4bdd85679a74bb", "name": "", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 180, "y": 280, "wires": [ [ "ccefb524b41aec2e" ] ] }, { "id": "c13e961598ef5744", "type": "win_service_control", "z": "8c4bdd85679a74bb", "name": "start", "mcommand": "start", "mservicename": "Node-Red", "mservicedescription": "1", "mserviceExecutePath": "C:\Users\Administrator\AppData\Roaming\npm\node_modules\node-red\red.js", "mexecuteOption": "--port 5000 --userDir C:\Users\Administrator\.node-red", "x": 350, "y": 340, "wires": [ [ "de66537764224e4a" ] ] }, { "id": "5f9eedbcd529482c", "type": "inject", "z": "8c4bdd85679a74bb", "name": "", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 180, "y": 340, "wires": [ [ "c13e961598ef5744" ] ] }, { "id": "fed93b6ac27ffa08", "type": "win_service_control", "z": "8c4bdd85679a74bb", "name": "stop", "mcommand": "stop", "mservicename": "Node-Red", "mservicedescription": "1", "mserviceExecutePath": "C:\Users\Administrator\AppData\Roaming\npm\node_modules\node-red\red.js", "mexecuteOption": "--port 5000 --userDir C:\Users\Administrator\.node-red", "x": 350, "y": 400, "wires": [ [ "de66537764224e4a" ] ] }, { "id": "98c2df4c3b945761", "type": "inject", "z": "8c4bdd85679a74bb", "name": "", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 180, "y": 400, "wires": [ [ "fed93b6ac27ffa08" ] ] } ]