diff --git a/packages/serialport-util/README.md b/packages/serialport-util/README.md index 379f24f..c9d90a2 100644 --- a/packages/serialport-util/README.md +++ b/packages/serialport-util/README.md @@ -1,11 +1,11 @@ -# Serialport Parsers +# Serialport Utilities [![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lernajs.io/) -[![Greenkeeper badge](https://badges.greenkeeper.io/node-serialport/parsers.svg)](https://greenkeeper.io/) -[![Build Status](https://travis-ci.org/node-serialport/parsers.svg?branch=master)](https://travis-ci.org/node-serialport/parsers) -[![codecov](https://codecov.io/gh/node-serialport/parsers/branch/master/graph/badge.svg)](https://codecov.io/gh/node-serialport/parsers) +[![Greenkeeper badge](https://badges.greenkeeper.io/node-serialport/utilities.svg)](https://greenkeeper.io/) +[![Build Status](https://travis-ci.org/node-serialport/utilities.svg?branch=master)](https://travis-ci.org/node-serialport/utilities) +[![codecov](https://codecov.io/gh/node-serialport/utilities/branch/master/graph/badge.svg)](https://codecov.io/gh/node-serialport/utilities) -Working with streams of binary data can be hard, this monorepo is a collection of projects that make it easier. We currently have the following projects. +Working with serialports can be hard, this monorepo is a collection of projects that make it easier. We currently have the following projects. - Parser Byte Length - Parser cctalk @@ -16,10 +16,16 @@ Working with streams of binary data can be hard, this monorepo is a collection o - Parser slip-encoder ## API Docs -You can find the api docs in `/docs` or view them online here: https://node-serialport.github.io/parsers/ +You can find the api docs in `/docs` or view them online here: https://node-serialport.github.io/utilities/ ## License -SerialPort Parsers are all [MIT licensed](LICENSE) and all it's dependencies are MIT or BSD licensed. +SerialPort Utilities are all [MIT licensed](LICENSE) and all it's dependencies are MIT or BSD licensed. + +# Developing +1. Clone this repo `git clone git@github.com:node-serialport/utilities.git` +1. Run `npx lerna bootstrap` 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. Run `npm run generate` to generate a new project # Contributing @@ -35,18 +41,18 @@ There are a lot of ways to get involved and help out: ## Reporting An Issue -SerialPort Parsers does it's [issue tracking](https://github.com/node-serialport/parsers/issues) through github. To report an issue first search the repo to make sure that it has not been reported before. If no one has reported the bug before, create a new issue and be sure to follow the template. +SerialPort Utilities does it's [issue tracking](https://github.com/node-serialport/utilities/issues) through github. To report an issue first search the repo to make sure that it has not been reported before. If no one has reported the bug before, create a new issue and be sure to follow the template. ## Requesting Features -To request a new feature be added create a [github issue](https://github.com/node-serialport/parsers/issues/new) and include: +To request a new feature be added create a [github issue](https://github.com/node-serialport/utilities/issues/new) and include: **What feature you'd like to see:** **Why this is important to you:** (this is here because it's interesting knowing what cool things people are working on and also could help community members make suggestions for work-arounds until the feature is built) ## Submitting Pull Requests -To contribute code to SerialPort Parsers, fork the project onto your github account and do your work in a branch. Before you submit the PR, make sure to rebase master into your branch so that you have the most recent changes and nothing breaks or conflicts. Lint and test your code using `npm run lint` and `npm run test`. +To contribute code to SerialPort Utilities, fork the project onto your github account and do your work in a branch. Before you submit the PR, make sure to rebase master into your branch so that you have the most recent changes and nothing breaks or conflicts. Lint and test your code using `npm run lint` and `npm run test`. You can use the generator `npm run generate` as a starting point for new streams. @@ -66,7 +72,7 @@ Tests are written using [mocha](https://mochajs.org/), [chai](http://chaijs.com/ ## Writing Documentation -We are always looking to improve our docs. If you find that any are lacking information or have wrong information, fix and submit a PR. If you're looking for areas to start writing docs for, see the [docs](https://github.com/node-serialport/parsers/labels/docs) label in issues. +We are always looking to improve our docs. If you find that any are lacking information or have wrong information, fix and submit a PR. If you're looking for areas to start writing docs for, see the [docs](https://github.com/node-serialport/utilities/labels/docs) label in issues. We use [jsdoc](http://usejsdoc.org/) to generate our docs. Make your changes to `README.md` or the documentation blocks in the JavaScript files and run `npm run docs` to generate new documentation in `/docs/`. diff --git a/packages/serialport-util/docs/ByteLengthParser.html b/packages/serialport-util/docs/ByteLengthParser.html index 191e9ac..2e12303 100644 --- a/packages/serialport-util/docs/ByteLengthParser.html +++ b/packages/serialport-util/docs/ByteLengthParser.html @@ -284,7 +284,7 @@ parser.on('data', console.log) // will have 8 bytes per data event
diff --git a/packages/serialport-util/docs/CCTalkParser.html b/packages/serialport-util/docs/CCTalkParser.html index 62ba23d..45feff8 100644 --- a/packages/serialport-util/docs/CCTalkParser.html +++ b/packages/serialport-util/docs/CCTalkParser.html @@ -186,7 +186,7 @@ parser.on('data', console.log)
diff --git a/packages/serialport-util/docs/DelimiterParser.html b/packages/serialport-util/docs/DelimiterParser.html index 05b859f..f2bdd63 100644 --- a/packages/serialport-util/docs/DelimiterParser.html +++ b/packages/serialport-util/docs/DelimiterParser.html @@ -186,7 +186,7 @@ parser.on('data', console.log)
diff --git a/packages/serialport-util/docs/ReadLineParser.html b/packages/serialport-util/docs/ReadLineParser.html index 581155d..e8c183d 100644 --- a/packages/serialport-util/docs/ReadLineParser.html +++ b/packages/serialport-util/docs/ReadLineParser.html @@ -186,7 +186,7 @@ parser.on('data', console.log)
diff --git a/packages/serialport-util/docs/ReadyParser.html b/packages/serialport-util/docs/ReadyParser.html index 24ed47e..22584c1 100644 --- a/packages/serialport-util/docs/ReadyParser.html +++ b/packages/serialport-util/docs/ReadyParser.html @@ -291,7 +291,7 @@ parser.on('data', console.log) // all data after READY is received
diff --git a/packages/serialport-util/docs/RegexParser.html b/packages/serialport-util/docs/RegexParser.html index 1e1d9b2..47a533d 100644 --- a/packages/serialport-util/docs/RegexParser.html +++ b/packages/serialport-util/docs/RegexParser.html @@ -185,7 +185,7 @@ parser.on('data', console.log)
diff --git a/packages/serialport-util/docs/SlipEncoderParser.html b/packages/serialport-util/docs/SlipEncoderParser.html index bde4e97..e1231f0 100644 --- a/packages/serialport-util/docs/SlipEncoderParser.html +++ b/packages/serialport-util/docs/SlipEncoderParser.html @@ -190,7 +190,7 @@ encoder.pipe(port);
diff --git a/packages/serialport-util/docs/index.html b/packages/serialport-util/docs/index.html index d20f058..176aaa2 100644 --- a/packages/serialport-util/docs/index.html +++ b/packages/serialport-util/docs/index.html @@ -46,8 +46,8 @@
-

Serialport Parsers

lerna
Greenkeeper badge
Build Status
codecov

-

Working with streams of binary data can be hard, this monorepo is a collection of projects that make it easier. We currently have the following projects.

+

Serialport Utilities

lerna
Greenkeeper badge
Build Status
codecov

+

Working with serialports can be hard, this monorepo is a collection of projects that make it easier. We currently have the following projects.

  • Parser Byte Length
  • Parser cctalk
  • @@ -57,8 +57,8 @@
  • Parser regex
  • Parser slip-encoder
-

API Docs

You can find the api docs in /docs or view them online here: https://node-serialport.github.io/parsers/

-

License

SerialPort Parsers are all MIT licensed and all it's dependencies are MIT or BSD licensed.

+

API Docs

You can find the api docs in /docs or view them online here: https://node-serialport.github.io/utilities/

+

License

SerialPort Utilities are all MIT licensed and all it's dependencies are MIT or BSD licensed.

Contributing

Do you want to help out but don't know where to start?

There are a lot of ways to get involved and help out:

-

Reporting An Issue

SerialPort Parsers does it's issue tracking through github. To report an issue first search the repo to make sure that it has not been reported before. If no one has reported the bug before, create a new issue and be sure to follow the template.

+

Reporting An Issue

SerialPort Utilities does it's issue tracking through github. To report an issue first search the repo to make sure that it has not been reported before. If no one has reported the bug before, create a new issue and be sure to follow the template.

-

Requesting Features

To request a new feature be added create a github issue and include:

+

Requesting Features

To request a new feature be added create a github issue and include:

What feature you'd like to see:
Why this is important to you: (this is here because it's interesting knowing what cool things people are working on and also could help community members make suggestions for work-arounds until the feature is built)

-

Submitting Pull Requests

To contribute code to SerialPort Parsers, fork the project onto your github account and do your work in a branch. Before you submit the PR, make sure to rebase master into your branch so that you have the most recent changes and nothing breaks or conflicts. Lint and test your code using npm run lint and npm run test.

+

Submitting Pull Requests

To contribute code to SerialPort Utilities, fork the project onto your github account and do your work in a branch. Before you submit the PR, make sure to rebase master into your branch so that you have the most recent changes and nothing breaks or conflicts. Lint and test your code using npm run lint and npm run test.

You can use the generator npm run generate as a starting point for new streams.

All contributions must adhere to the eslint rules by maintaining the existing coding style.

If you are contributing code, it must include unit tests that fail if the working code isn't present and succeed when it is.

@@ -83,7 +83,7 @@

Writing Tests

Tests are written using mocha, chai and sinon. If you are having issues making a test pass you can open a WIP or Work In Progress pr ans ask for help. Tests can be the hardest part to write when contributing code, so don't be discouraged.

-

Writing Documentation

We are always looking to improve our docs. If you find that any are lacking information or have wrong information, fix and submit a PR. If you're looking for areas to start writing docs for, see the docs label in issues.

+

Writing Documentation

We are always looking to improve our docs. If you find that any are lacking information or have wrong information, fix and submit a PR. If you're looking for areas to start writing docs for, see the docs label in issues.

We use jsdoc to generate our docs. Make your changes to README.md or the documentation blocks in the JavaScript files and run npm run docs to generate new documentation in /docs/.

Docs should have tested and working sample code. Many people using SerialPort are learning how to work with hardware for the first time, so write for a beginner audience.

@@ -98,7 +98,7 @@
diff --git a/packages/serialport-util/docs/parser-byte-length_byte-length.js.html b/packages/serialport-util/docs/parser-byte-length_byte-length.js.html index be4412e..8d8e8ad 100644 --- a/packages/serialport-util/docs/parser-byte-length_byte-length.js.html +++ b/packages/serialport-util/docs/parser-byte-length_byte-length.js.html @@ -107,7 +107,7 @@ module.exports = ByteLengthParser
diff --git a/packages/serialport-util/docs/parser-cctalk_cctalk.js.html b/packages/serialport-util/docs/parser-cctalk_cctalk.js.html index 0ee3880..28e651a 100644 --- a/packages/serialport-util/docs/parser-cctalk_cctalk.js.html +++ b/packages/serialport-util/docs/parser-cctalk_cctalk.js.html @@ -93,7 +93,7 @@ module.exports = CCTalkParser
diff --git a/packages/serialport-util/docs/parser-delimiter_delimiter.js.html b/packages/serialport-util/docs/parser-delimiter_delimiter.js.html index 895ba62..10209f3 100644 --- a/packages/serialport-util/docs/parser-delimiter_delimiter.js.html +++ b/packages/serialport-util/docs/parser-delimiter_delimiter.js.html @@ -101,7 +101,7 @@ module.exports = DelimiterParser
diff --git a/packages/serialport-util/docs/parser-readline_readline.js.html b/packages/serialport-util/docs/parser-readline_readline.js.html index c4ffdc7..810ccd3 100644 --- a/packages/serialport-util/docs/parser-readline_readline.js.html +++ b/packages/serialport-util/docs/parser-readline_readline.js.html @@ -80,7 +80,7 @@ module.exports = ReadLineParser
diff --git a/packages/serialport-util/docs/parser-ready_ready.js.html b/packages/serialport-util/docs/parser-ready_ready.js.html index 419b5f4..825973d 100644 --- a/packages/serialport-util/docs/parser-ready_ready.js.html +++ b/packages/serialport-util/docs/parser-ready_ready.js.html @@ -115,7 +115,7 @@ module.exports = ReadyParser
diff --git a/packages/serialport-util/docs/parser-regex_regex.js.html b/packages/serialport-util/docs/parser-regex_regex.js.html index eee00c7..cc0fcb0 100644 --- a/packages/serialport-util/docs/parser-regex_regex.js.html +++ b/packages/serialport-util/docs/parser-regex_regex.js.html @@ -102,7 +102,7 @@ module.exports = RegexParser
diff --git a/packages/serialport-util/docs/parser-slip-encoder_slip-encoder.js.html b/packages/serialport-util/docs/parser-slip-encoder_slip-encoder.js.html index 61eb88d..f853839 100644 --- a/packages/serialport-util/docs/parser-slip-encoder_slip-encoder.js.html +++ b/packages/serialport-util/docs/parser-slip-encoder_slip-encoder.js.html @@ -125,7 +125,7 @@ module.exports = SlipEncoderParser
diff --git a/packages/serialport-util/package-lock.json b/packages/serialport-util/package-lock.json index 23e56d8..eda1bb8 100644 --- a/packages/serialport-util/package-lock.json +++ b/packages/serialport-util/package-lock.json @@ -1,5 +1,5 @@ { - "name": "serialport-parsers", + "name": "@serialport/utilities", "requires": true, "lockfileVersion": 1, "dependencies": { @@ -3402,9 +3402,9 @@ } }, "lolex": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/lolex/-/lolex-2.3.2.tgz", - "integrity": "sha512-A5pN2tkFj7H0dGIAM6MFvHKMJcPnjZsOMvR7ujCjfgW5TbV6H9vb1PgxLtHvjqNZTHsUolz+6/WEO0N1xNx2ng==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/lolex/-/lolex-2.7.0.tgz", + "integrity": "sha512-uJkH2e0BVfU5KOJUevbTOtpDduooSarH5PopO+LfM/vZf8Z9sJzODqKev804JYM2i++ktJfUmC1le4LwFQ1VMg==", "dev": true }, "longest": { @@ -3742,9 +3742,9 @@ "dev": true }, "nise": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/nise/-/nise-1.3.0.tgz", - "integrity": "sha512-U+Krdzhsw4losPP/Rij5UGTLQgS9gaWmXdRIbZQIQWVsUGDBo+N0m9mrY9CCEnmwssgswwydxLJUZtFfouC0gA==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/nise/-/nise-1.4.2.tgz", + "integrity": "sha512-BxH/DxoQYYdhKgVAfqVy4pzXRZELHOIewzoesxpjYvpU+7YOalQhGNPf7wAx8pLrTNPrHRDlLOkAl8UI0ZpXjw==", "dev": true, "requires": { "@sinonjs/formatio": "^2.0.0", @@ -6569,18 +6569,29 @@ "dev": true }, "sinon": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/sinon/-/sinon-4.4.2.tgz", - "integrity": "sha512-cpOHpnRyY3Dk9dTHBYMfVBB0HUCSKIpxW07X6OGW2NiYPovs4AkcL8Q8MzecbAROjbfRA9esJCmlZgikxDz7DA==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/sinon/-/sinon-5.1.1.tgz", + "integrity": "sha512-h/3uHscbt5pQNxkf7Y/Lb9/OM44YNCicHakcq73ncbrIS8lXg+ZGOZbtuU+/km4YnyiCYfQQEwANaReJz7KDfw==", "dev": true, "requires": { "@sinonjs/formatio": "^2.0.0", - "diff": "^3.1.0", + "diff": "^3.5.0", "lodash.get": "^4.4.2", - "lolex": "^2.2.0", - "nise": "^1.2.0", - "supports-color": "^5.1.0", - "type-detect": "^4.0.5" + "lolex": "^2.4.2", + "nise": "^1.3.3", + "supports-color": "^5.4.0", + "type-detect": "^4.0.8" + }, + "dependencies": { + "supports-color": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", + "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } } }, "slash": { diff --git a/packages/serialport-util/package.json b/packages/serialport-util/package.json index 788bd92..8d28cca 100644 --- a/packages/serialport-util/package.json +++ b/packages/serialport-util/package.json @@ -1,5 +1,5 @@ { - "name": "@serialport/parsers", + "name": "@serialport/utilities", "private": true, "scripts": { "docs": "jsdoc -c ./.jsdoc.json ", @@ -12,7 +12,7 @@ "license": "MIT", "repository": { "type": "git", - "url": "git://github.com/node-serialport/parsers.git" + "url": "git://github.com/node-serialport/utilities.git" }, "devDependencies": { "chai": "^4.1.2", diff --git a/packages/serialport-util/plopfile.js b/packages/serialport-util/plopfile.js index 2ce1c10..bbad1a5 100644 --- a/packages/serialport-util/plopfile.js +++ b/packages/serialport-util/plopfile.js @@ -1,12 +1,12 @@ module.exports = function (plop) { plop.setGenerator('package', { - description: 'Make a new Stream package', + description: 'Make a new project', // inquirer prompts prompts: [{ type: 'input', name: 'name', - message: 'Stream name: ' + message: 'Project name: ' }], // actions to perform