{"_id":"@danchitnis/comport","_rev":"3-8b5dc44d85448e0764065b7d93cd485e","name":"@danchitnis/comport","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@danchitnis/comport","version":"0.1.0","description":"An easy to use package for Serial Api","main":"./dist/ComPort.js","scripts":{"build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/danchitnis/ComPort.git"},"author":{"name":"Danial Chitnis"},"license":"MIT","bugs":{"url":"https://github.com/danchitnis/ComPort/issues"},"homepage":"https://github.com/danchitnis/ComPortt#readme","devDependencies":{"typescript":"^3.7.4"},"gitHead":"f2622e471ed57aca1a42a42c5a599f98d064dd5e","_id":"@danchitnis/comport@0.1.0","_nodeVersion":"10.16.3","_npmVersion":"6.13.4","dist":{"integrity":"sha512-ICOYPfAhcZP7Y3oA2Do7QVNY+DB7Qywh6frxSRg2y03CnYiZ0aR08kgltRL/BvoAfQnfDH449WgxESMpKIdWJQ==","shasum":"062d55d1c3a47a26419e905a0df0b9cf90ada938","tarball":"https://registry.npmjs.org/@danchitnis/comport/-/comport-0.1.0.tgz","fileCount":8,"unpackedSize":13663,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeDCEcCRA9TVsSAnZWagAAx6kP/RBrVU5dbfeewiaUfI83\nUvbzRUSmNgMsdTavSprPZzNDucaqBMCrDXWXYwSFY6m4jGGUHEtN+3Cyc8Ba\nO/Zy/oZXRvkyuUbXcnWGSn87/baiMf+C/Bpg4kLdokyGfMgZDgSY2UqdxVm1\nWDNjZ2+fCcndBiBZFoY2uHSiy/q/Bh2qNQL70Cbgdhtd+cT2yMzeKxtyUSHC\nKV3uMca1LkUUdSrhPQHssAsMJGQjS05BbVBFG3ats472Jkmun1Jkq+QF3Hlb\nNM52bQTnSSkspozaDLDchzqZBhvFu1smIZDaGZnEZN7uiLGIP+8AFEW0EjM1\n977GBHz45geo33ww8eqW3u+EZFHtx0VH4EP1i7QX70Fur7nZ/7PyREahv+nJ\nVghUc/f2GLCO/vyqVjvqbQ/xyQUxHjS8mKarW7U53fvw10iVtllRNDuKBh8Y\nZnxhlvmgbsu5NJfQDMcqFYgY143vqGeBCOz0ZvnpF4knmQYMLivmTWTSHXrU\nIsVJo50mHeBCFSzvcv96ELLm1jLEnJmKm1ILGep+y5bnStRIXgA47KSnSZFH\nAhMFBlRshN5gpA3Wg6OJ6ii5iwEpYy8dhWudNc7+ywVspLhgK7hEPdyIsGPz\nYdEBgLSp4Nb80gAxeJfHJ4OdqNbdjbYFup5jHoOPg4fQV4LeBtwvFKpcoVDR\nxy6g\r\n=w28A\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCa+bIU9zd2qWiAC8fAJkUKmMa67emL/3EswPQs5dj3gwIhAMBLTcYlFfboEvv36b+tnmD6knRoHpWS/XmkhZeVnAUN"}]},"maintainers":[{"name":"danchitnis","email":"danchitnis@gmail.com"}],"_npmUser":{"name":"danchitnis","email":"danchitnis@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/comport_0.1.0_1577853211759_0.9626380824243324"},"_hasShrinkwrap":false},"0.1.1":{"name":"@danchitnis/comport","version":"0.1.1","description":"An easy to use package for Serial Api","main":"./dist/ComPort","typings":"./src/ComPort","scripts":{"build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/danchitnis/ComPort.git"},"author":{"name":"Danial Chitnis"},"license":"MIT","bugs":{"url":"https://github.com/danchitnis/ComPort/issues"},"homepage":"https://github.com/danchitnis/ComPortt#readme","devDependencies":{"typescript":"^3.7.4"},"gitHead":"f2622e471ed57aca1a42a42c5a599f98d064dd5e","_id":"@danchitnis/comport@0.1.1","_nodeVersion":"10.16.3","_npmVersion":"6.13.4","dist":{"integrity":"sha512-szWSWu7eETzAi90hNt8KNVg6WB9/zRdo9K/iHx5qF9NLRsNSU8mrZ1qCxCAR1rJF6X7sr2Z9uaFZJ4MDCcWTQg==","shasum":"d2b8d5242ad009d0acbcedb77b400c3f06c7afcb","tarball":"https://registry.npmjs.org/@danchitnis/comport/-/comport-0.1.1.tgz","fileCount":8,"unpackedSize":13690,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeDCM1CRA9TVsSAnZWagAA/wMP/07CxRP7kyobLXk+zWsm\nme2lY3V4JscqMunO+8CbtuhI2YVkcCJrjXaV/HEcxfy5b9VOGFvGyDa3KNYU\njEtw2fad/0xcBOpAp5BsZx5DLLX9IXwk9Z1QkShv9V/oCUhH6R99S+ZrTABJ\nLGX28m8MNVp+wdEpK5laK1U8xMGO7d5QeL1sdipQRnUPE7jJtYhds80UJ6l8\nda2HcPSfZjt7Yi2Bkpf4czuLQPI1zMo2nvwnu7zV0/v+PPRBsD7oP/VxoLIk\nCiKig4Czxg9eOywTjSzPTkSkqavfazv3Ntm4MsArq9ny+Da/iyDG/jciiEF5\nFKtlYiJ48vgCKorm3CtG8oaRfR4SGviaLUF0IBU85R7QEgiwnaB2lF6cc/IV\npjNVqisH9MF9VyviUeBjj8MpLC8TtWvLXG17Eh3h2V+2ggmlcjDmQHhWzek9\nWnkzFr5b1xCntsIpCGwbVgOLvLKssf4HhbT+6yLVRMfnh/9ebfzx1U9whdWM\nSiwQbpIDwrGr4hMp16bB7CDSy+bEgOVXaR4xqVKNPinAikWxWG7wNmuCl5wK\nA3cFmuzAfUPRapWHEfSUkhXHo2X08wJLLg7DbyI7/2P4oFyK4VISQ8V9fCwx\nnrf3XPHGBghVfz/OUTxXQJaX5WsAeZOrnSjpVcintKnnSFIixLXhxBs+9k9z\nYcD1\r\n=iTz7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCn7EXYv1b0tQt9DF9miz+blUdfscF0aue0krpkMBZk1AIhAJ2nsKDuGddcuxSKv+lNAdpIU6Lmu0mD7nY6p0Q8/XhY"}]},"maintainers":[{"name":"danchitnis","email":"danchitnis@gmail.com"}],"_npmUser":{"name":"danchitnis","email":"danchitnis@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/comport_0.1.1_1577853749190_0.3944477732160565"},"_hasShrinkwrap":false},"0.1.2":{"name":"@danchitnis/comport","version":"0.1.2","description":"An easy to use package for Serial Api","main":"./dist/ComPort","typings":"./src/ComPort","scripts":{"build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/danchitnis/ComPort.git"},"author":{"name":"Danial Chitnis"},"license":"MIT","bugs":{"url":"https://github.com/danchitnis/ComPort/issues"},"homepage":"https://github.com/danchitnis/ComPortt#readme","devDependencies":{"typescript":"^3.7.4"},"gitHead":"ebf68e6236116e3248007545242630b7fc01771a","_id":"@danchitnis/comport@0.1.2","_nodeVersion":"10.16.3","_npmVersion":"6.13.4","dist":{"integrity":"sha512-FIKqOOuYhP91Gt21VsX0vrC5FHYZ/D3MU3E0kSP+IxwvbHssyYNGPwKf2641wjBcnEjCJhrgFC1fPCfdoMSmgQ==","shasum":"46c730fba8a222da2c444912c3dba5b845904b3a","tarball":"https://registry.npmjs.org/@danchitnis/comport/-/comport-0.1.2.tgz","fileCount":8,"unpackedSize":17822,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeDnU/CRA9TVsSAnZWagAA9NUP/ixZhurpgEEtyPsgfKdH\ngMLkFU5q1mqaOpHQTbxlzID+UQzg7lHj3x4aE/Lo+7wIlMP7Ggd17zqEUICK\nOuZ2K84xwGXaPydVb4x32HqgNQb4ZYWPzjzbme78I9BSqSyBQTGSbY8syvY+\n4cJYguoP0x3EUbfeHiJuFp5aoetlgIsx+mQfWASIKiO3gV0vfA1CZ3Vav444\nuiBrmizEPmDwq/G/QVktkB4ShlbWo8W6sD7DbDcOEz0XccgogQPxX7G1sv4w\neoF3sxvgFLNxSLelVEy7ZwkPNnDaCAPO7mUv6Znmzvs4Y7k2JNetUD1jqDhm\n1ypOH5JTTkit/2pHGuUcL9/CmtogoI1M08eh+sX1QhXaP+SGT372wn3ZzwQx\nyLNfBIFZxuo7vHa5pHBimW3DvVWHv4RUlTV7dSRvEwfbwdIrDl+ZKFj+Aq0C\n5v6Z/W4LeohlzfB5FQUd3wCoEktCdnqaQE5YlUQPyoUdXr6C/u6Q/UoJHwd2\npGbraAxJvaQTigZ1TJKoG89fAKJZwo78tnAOE8eS3ma1fewvrztAlEvHx9cU\nzEk+eg+NgKaj4kg5jaQXfYoq2qfcXEG518oR+YLqzOm5047Rjtq/RjDqD/iC\nJ9p7ugVQw3QPpOx4Ann+EQT0GLfevhIs1iQ99qWVY7VoUEMaQLxu55Fa8Pvl\nGV89\r\n=DaKb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWv4VGlima0pwL4Wu+kOm5AtNZtFh176GpQy8wA0qVRgIhAMDtDeJYXvhkpMje/02MMGVCwv+Vyx0Br2hfhtHdN8OK"}]},"maintainers":[{"name":"danchitnis","email":"danchitnis@gmail.com"}],"_npmUser":{"name":"danchitnis","email":"danchitnis@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/comport_0.1.2_1578005823190_0.2600096627278754"},"_hasShrinkwrap":false}},"time":{"created":"2020-01-01T04:33:31.729Z","0.1.0":"2020-01-01T04:33:31.922Z","modified":"2022-04-05T02:39:31.641Z","0.1.1":"2020-01-01T04:42:29.323Z","0.1.2":"2020-01-02T22:57:03.363Z"},"maintainers":[{"name":"danchitnis","email":"danchitnis@gmail.com"}],"description":"An easy to use package for Serial Api","homepage":"https://github.com/danchitnis/ComPortt#readme","repository":{"type":"git","url":"git+https://github.com/danchitnis/ComPort.git"},"author":{"name":"Danial Chitnis"},"bugs":{"url":"https://github.com/danchitnis/ComPort/issues"},"license":"MIT","readme":"# ComPort\r\n\r\nA simple package to use the new [Serial Api](https://wicg.github.io/serial/) available in Chrome\r\n\r\n🔥 Notice : Serial Api is under Chrome experimental flag for Chrome 79 and expected to goes on Origins Trail on Chrome 80\r\n\r\n## Why Serial Api\r\n\r\nAlthough [WebUSB](https://wicg.github.io/webusb/) has been around for some years, it is mainly targeted at companies intending to developed web-based firmwares. A major downside of WebUSB is once a native driver is installed on the OS, the device will no longer be recognized by WebUSB. Unlike WebUSB, the [Serial Api](https://wicg.github.io/serial/) is intended for use as a traditional COM port (Serial port) which includes many microcontroller based devices and USB-to-Serial devices such as FTDI and Cypress chipsets. Additionally, you can still implement your own USB CDC protocol, and have the OS driver and Web driver co-exist. The Serial Api opens doors for new and exciting web-based front-ends for small and medium sized embedded projects.\r\n\r\n## Why ComPort\r\n\r\nComPort makes it easy for embedded developers to quickly build a modern front-end for their applications. It removes the hassle of dealing with async/await functions. This package is not intended for high-performance and high data-rate applications, but for quick and simple development. If high-performance is required then a browser based app is probably the wrong choice.  \r\n\r\n## Potential use cases\r\n\r\nall serial communication to and from embedded hardware via USB-to-Serial bridges like FTDI cables and Arduino boards.\r\n\r\n## How to enable Serial Api (Chrome 79)\r\n\r\nEnable it in: chrome://flags/#enable-experimental-web-platform-features\r\n\r\n## Build instructions\r\n\r\n```bash\r\nnpm i\r\nnpm run build\r\n```\r\n\r\n## installation\r\n\r\n```bash\r\nnpm i @danchitnis/comport\r\n```\r\n\r\n## Examples\r\n\r\nSee [here](https://github.com/danchitnis/Serial-API-Examples) examples tested with [Arduino Nano 33 BLE](https://store.arduino.cc/arduino-nano-33-ble), but also extendable to other boards as it is simply using serial communication.\r\n\r\n## Useful links\r\n\r\n* [W3C Serial Api working draft](https://wicg.github.io/serial/)\r\n* [Serial Api Chrome status](https://www.chromestatus.com/feature/6577673212002304)\r\n* [Google Serial Api example](https://codelabs.developers.google.com/codelabs/web-serial/#0)\r\n* [Serial Api Explainer](https://github.com/WICG/serial/blob/gh-pages/EXPLAINER.md)\r\n","readmeFilename":"README.md"}