Initial commit

This commit is contained in:
Marcelo
2025-11-20 15:27:34 -06:00
commit cc72c9fc5d
3221 changed files with 737477 additions and 0 deletions

21
node_modules/serialport/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright 2010 Christopher Williams. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.

88
node_modules/serialport/README.md generated vendored Normal file
View File

@@ -0,0 +1,88 @@
# serialport
Access serial ports with JavaScript. Linux, OSX and Windows. Welcome your robotic JavaScript overlords. Better yet, program them!
> Go to https://serialport.io/ to learn more, find guides and api documentation.
## Quick Links
- [**Guides**](https://serialport.io/docs/guide-about)
- [**API Docs**](https://serialport.io/docs/api-serialport)
### Serialport
- [`serialport`](https://serialport.io/docs/api-serialport) Chances are you're looking for the `serialport` package which provides a good set of defaults for most projects. However it is quite easy to mix and match the parts of serialport you need.
### Bindings
The Bindings provide a low level interface to work with your serialport. It is possible to use them alone but it's usually easier to use them with an interface.
- [`@serialport/bindings-cpp`](https://serialport.io/docs/api-bindings-cpp) bindings for Linux, Mac and Windows
- [`@serialport/bindings-interface`](https://serialport.io/docs/api-bindings-interface) a typescript interface to use if you're making your own bindings
- [`@serialport/binding-mock`](https://serialport.io/docs/api-binding-mock) for a mock binding package for testing
### Interfaces
Interfaces take a binding object and provide a different API on top of it. Currently we only ship a Node Stream Interface.
- [`@serialport/stream`](https://serialport.io/docs/api-stream) our traditional Node.js Stream interface
### Parsers
Parsers are used to take raw binary data and transform them into usable messages. This may include tasks such as converting the data to text, emitting useful chunks of data when they have been fully received, or even validating protocols.
Parsers are traditionally Transform streams, but Duplex streams and other non stream interfaces are acceptable.
- [@serialport/parser-byte-length](https://serialport.io/docs/api-parser-byte-length)
- [@serialport/parser-cctalk](https://serialport.io/docs/api-parser-cctalk)
- [@serialport/parser-delimiter](https://serialport.io/docs/api-parser-delimiter)
- [@serialport/parser-readline](https://serialport.io/docs/api-parser-readline)
- [@serialport/parser-ready](https://serialport.io/docs/api-parser-ready)
- [@serialport/parser-regex](https://serialport.io/docs/api-parser-regex)
- [@serialport/parser-slip-encoder](https://serialport.io/docs/api-parser-slip-encoder)
## Developing
### Developing node serialport projects
1. Clone this repo `git clone git@github.com:serialport/node-serialport.git`
1. Run `npm install` to setup local package dependencies (run this any time you depend on a package local to this repo)
1. Run `npm test` to ensure everything is working properly
1. Add dev dependencies to the root package.json and package dependencies to the package's one.
### Developing Docs
You can develop the docs with in the [website repo](https://github.com/serialport/website).
Docs are automatically built with [vercel](https://vercel.com/) including previews on branches. The main branch is deployed to https://serialport.io
## License
SerialPort packages are all [MIT licensed](LICENSE) and all it's dependencies are MIT licensed.
## Code of Conduct
SerialPort follows the [Nodebots Code of Conduct](http://nodebots.io/conduct.html). While the code is MIT licensed participation in the community has some rules to make this a good place to work and learn.
### TLDR
- Be respectful.
- Abusive behavior is never tolerated.
- Data published to NodeBots is hosted at the discretion of the service administrators, and may be removed.
- Don't build evil robots.
- Violations of this code may result in swift and permanent expulsion from the NodeBots community.
## Governance and Community
SerialPort is currently employees a [governance](https://medium.com/the-node-js-collection/healthy-open-source-967fa8be7951) with a group of maintainers, committers and contributors, all fixing bugs and adding features and improving documentation. You need not apply to work on SerialPort, all are welcome to join, build, and maintain this project.
- A Contributor is any individual creating or commenting on an issue or pull request. By participating, this is you.
- Committers are contributors who have been given write access to the repository. They can review and merge pull requests.
- Maintainers are committers representing the required technical expertise to resolve rare disputes.
If you have a PR that improves the project people in any or all of the above people will help you land it.
### Maintainers
- [Francis Gulotta](https://twitter.com/reconbot) | [reconbot](https://github.com/reconbot)
- [Nick Hehr](https://twitter.com/hipsterbrown) | [hipsterbrown](https://github.com/hipsterbrown)

12
node_modules/serialport/dist/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,12 @@
export * from '@serialport/parser-byte-length';
export * from '@serialport/parser-cctalk';
export * from '@serialport/parser-delimiter';
export * from '@serialport/parser-inter-byte-timeout';
export * from '@serialport/parser-packet-length';
export * from '@serialport/parser-readline';
export * from '@serialport/parser-ready';
export * from '@serialport/parser-regex';
export * from '@serialport/parser-slip-encoder';
export * from '@serialport/parser-spacepacket';
export * from './serialport-mock';
export * from './serialport';

28
node_modules/serialport/dist/index.js generated vendored Normal file
View File

@@ -0,0 +1,28 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("@serialport/parser-byte-length"), exports);
__exportStar(require("@serialport/parser-cctalk"), exports);
__exportStar(require("@serialport/parser-delimiter"), exports);
__exportStar(require("@serialport/parser-inter-byte-timeout"), exports);
__exportStar(require("@serialport/parser-packet-length"), exports);
__exportStar(require("@serialport/parser-readline"), exports);
__exportStar(require("@serialport/parser-ready"), exports);
__exportStar(require("@serialport/parser-regex"), exports);
__exportStar(require("@serialport/parser-slip-encoder"), exports);
__exportStar(require("@serialport/parser-spacepacket"), exports);
__exportStar(require("./serialport-mock"), exports);
__exportStar(require("./serialport"), exports);

8
node_modules/serialport/dist/serialport-mock.d.ts generated vendored Normal file
View File

@@ -0,0 +1,8 @@
import { ErrorCallback, OpenOptions, SerialPortStream } from '@serialport/stream';
import { MockBindingInterface } from '@serialport/binding-mock';
export type SerialPortMockOpenOptions = Omit<OpenOptions<MockBindingInterface>, 'binding'>;
export declare class SerialPortMock extends SerialPortStream<MockBindingInterface> {
static list: () => Promise<import("@serialport/bindings-interface").PortInfo[]>;
static readonly binding: MockBindingInterface;
constructor(options: SerialPortMockOpenOptions, openCallback?: ErrorCallback);
}

17
node_modules/serialport/dist/serialport-mock.js generated vendored Normal file
View File

@@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SerialPortMock = void 0;
const stream_1 = require("@serialport/stream");
const binding_mock_1 = require("@serialport/binding-mock");
class SerialPortMock extends stream_1.SerialPortStream {
static list = binding_mock_1.MockBinding.list;
static binding = binding_mock_1.MockBinding;
constructor(options, openCallback) {
const opts = {
binding: binding_mock_1.MockBinding,
...options,
};
super(opts, openCallback);
}
}
exports.SerialPortMock = SerialPortMock;

8
node_modules/serialport/dist/serialport.d.ts generated vendored Normal file
View File

@@ -0,0 +1,8 @@
import { ErrorCallback, SerialPortStream, StreamOptions } from '@serialport/stream';
import { AutoDetectTypes, OpenOptionsFromBinding } from '@serialport/bindings-cpp';
export type SerialPortOpenOptions<T extends AutoDetectTypes> = Omit<StreamOptions<T>, 'binding'> & OpenOptionsFromBinding<T>;
export declare class SerialPort<T extends AutoDetectTypes = AutoDetectTypes> extends SerialPortStream<T> {
static list: () => Promise<import("@serialport/bindings-interface").PortInfo[]>;
static readonly binding: AutoDetectTypes;
constructor(options: SerialPortOpenOptions<T>, openCallback?: ErrorCallback);
}

18
node_modules/serialport/dist/serialport.js generated vendored Normal file
View File

@@ -0,0 +1,18 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SerialPort = void 0;
const stream_1 = require("@serialport/stream");
const bindings_cpp_1 = require("@serialport/bindings-cpp");
const DetectedBinding = (0, bindings_cpp_1.autoDetect)();
class SerialPort extends stream_1.SerialPortStream {
static list = DetectedBinding.list;
static binding = DetectedBinding;
constructor(options, openCallback) {
const opts = {
binding: DetectedBinding,
...options,
};
super(opts, openCallback);
}
}
exports.SerialPort = SerialPort;

78
node_modules/serialport/package.json generated vendored Normal file
View File

@@ -0,0 +1,78 @@
{
"name": "serialport",
"version": "12.0.0",
"description": "Node.js package to access serial ports. Linux, OSX and Windows. Welcome your robotic JavaScript overlords. Better yet, program them!",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc --build tsconfig-build.json"
},
"repository": {
"type": "git",
"url": "git://github.com/serialport/node-serialport.git"
},
"keywords": [
"ccTalk",
"com port",
"COM",
"data logging",
"hardware",
"iot",
"johnny-five",
"modem",
"nodebots",
"RFID",
"robotics",
"sensor",
"serial port",
"serial",
"serialport",
"sms gateway",
"sms",
"stream",
"tty",
"UART"
],
"maintainers": [
{
"name": "Francis Gulotta",
"email": "wizard@roborooter.com",
"url": "https://www.roborooter.com"
},
{
"name": "Nick Hehr",
"email": "headhipster@hipsterbrown.com",
"url": "https://hipsterbrown.com/"
},
{
"name": "Maybe you? Come and help out!",
"url": "https://github.com/node-serialport"
}
],
"dependencies": {
"@serialport/binding-mock": "10.2.2",
"@serialport/bindings-cpp": "12.0.1",
"@serialport/parser-byte-length": "12.0.0",
"@serialport/parser-cctalk": "12.0.0",
"@serialport/parser-delimiter": "12.0.0",
"@serialport/parser-inter-byte-timeout": "12.0.0",
"@serialport/parser-packet-length": "12.0.0",
"@serialport/parser-readline": "12.0.0",
"@serialport/parser-ready": "12.0.0",
"@serialport/parser-regex": "12.0.0",
"@serialport/parser-slip-encoder": "12.0.0",
"@serialport/parser-spacepacket": "12.0.0",
"@serialport/stream": "12.0.0",
"debug": "4.3.4"
},
"engines": {
"node": ">=16.0.0"
},
"license": "MIT",
"funding": "https://opencollective.com/serialport/donate",
"preferUnplugged": false,
"devDependencies": {
"typescript": "5.2.2"
},
"gitHead": "f7e7bd53f9578a26c4f44cc1949fef396dc064c7"
}