Node.js+ws模块来制作的一个简易聊天室。
2021-09-14 18:04:31 7KB node
1
exporter Linux版本
2021-09-14 09:00:50 8.49MB Prometheus Linux exporter
1
节点现值 生成具有指定长度的随机字母数字字符串。 安装 npm install @rdcl/nonce 用法 const nonce = require ( '@rdcl/nonce' ) nonce ( 27 ) . then ( function ( nonce ) { // ... } ) 测验 npm test
2021-09-13 14:56:11 4KB JavaScript
1
serialport - 读和写访问串行端口的Node.js包
2021-09-13 10:59:25 1.06MB Node.js开发-硬件操作
1
node-serialport 是一个 Node.js 的包,用来对串口数据进行读写操作。基本示例代码:var SerialPort = require("serialport").SerialPort var serialPort = new SerialPort("/dev/tty-usbserial1", {   baudrate: 57600 }, false); // this is the openImmediately flag [default is true] serialPort.open(function (error) {   if ( error ) {     console.log('failed to open: ' error);   } else {     console.log('open');     serialPort.on('data', function(data) {       console.log('data received: '   data);     });     serialPort.write("ls\n", function(err, results) {       console.log('err '   err);       console.log('results '   results);     });   } });罗列所有串口:var serialPort = require("serialport"); serialPort.list(function (err, ports) {   ports.forEach(function(port) {     console.log(port.comName);     console.log(port.pnpId);     console.log(port.manufacturer);   }); });串口配置:baudRatedataBitsstopBitsparityrtsctsxonxoffxanyflowControlbufferSizeparserencodingdataCallbackdisconnectedCallbackplatformOptions - sets platform specific options, see below.目前已有很多项目在使用这个包进行串口处理:Johnny-Five - Firmata based Arduino Framework.Cylon.js - JavaScript Robotics, By Your Command.node-l8smartlight (source) A node library to control the L8 Smartlight via Bluetooth or USB portfirmata Talk natively to Arduino using the firmata protocol.tmpad source - a DIY midi pad using infrared, arduino, and nodejs. Videoduino - A higher level framework for working with Arduinos in node.js.Arduino Drinking Game Extravaganza - AKA "The Russian" a hexidecimal drinking game for geeks by Uxebu presented at JSConf EU 2011.Arduino controlling popcorn.js - Controlling a popcorn.js video with an Arduino kit.Robotic JavaScript - The first live presentation of the node-serialport code set as presented at JSConf EU 2010.devicestack - This module helps you to represent a device and its protocol.reflecta A communication protocol that combines Arduino Libraries and NodeJS into an integrated system.rc4pt-node - Control Popcorntime with an
2021-09-13 10:29:17 178KB 开源项目
1
亚历山大 自托管、Node 驱动的电子书库和 OPDS 服务器 开发设置 依赖项: 咕噜声 咖啡脚本 首先npm install 要运行监视和自动构建过程,只需键入grunt 启动服务器, coffee server.coffee 然后,您可以将浏览器指向http://localhost:3000
2021-09-13 08:42:28 6KB CoffeeScript
1
Express_Node_xiaofang 在CentOS使用宝塔面板快速部署Express项目 实现步骤 购置服务器 系统CentOS 部署宝塔面板 更改宝塔相关信息 极速安装web应用的软件,期中用到了PM2来部署Node项目 1.部署宝塔面板 ssh连接服务器后 输入:yum install -y wget && wget -O install.sh && sh install.sh 一键部署面板 2.极速安装web应用的软件 一开始面板会推荐你安装一些软件 直接安装即可:Nginx等等会直接安装好 因为要部署Node的项目 需要安装PM2来管理 3.PM2来部署Node项目
2021-09-12 16:52:53 232KB JavaScript
1
node+mongo实现增删改查的小项目
2021-09-11 09:07:08 7.56MB nodejs mongodb express javascript
1
托管项目 Node.js的ESC / POS打印机驱动程序 可用软件包: 例 const escpos = require ( 'escpos' ) ; // install escpos-usb adapter module manually escpos . USB = require ( 'escpos-usb' ) ; // Select the adapter based on your printer type const device = new escpos . USB ( ) ; // const device = new escpos.Network('localho
2021-09-10 18:47:25 377KB nodejs printer usb hardware
1
Express 模块实现数据库增删改查 数据库用JSON文件模拟
2021-09-10 18:03:39 5.13MB Node express
1