{"id":39590574,"url":"https://github.com/shemanaev/node-lpt","last_synced_at":"2026-01-18T07:43:42.709Z","repository":{"id":12184640,"uuid":"14786348","full_name":"shemanaev/node-lpt","owner":"shemanaev","description":"High-level bindings to parallel port for node.js","archived":false,"fork":false,"pushed_at":"2017-12-20T06:53:17.000Z","size":26,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-14T21:18:54.032Z","etag":null,"topics":["linux","lpt","lpt-port","node","node-lpt","nodejs","parallel-port"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shemanaev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-28T20:58:34.000Z","updated_at":"2023-10-16T16:17:20.000Z","dependencies_parsed_at":"2022-09-15T05:52:12.501Z","dependency_job_id":null,"html_url":"https://github.com/shemanaev/node-lpt","commit_stats":null,"previous_names":["denisix/node-lpt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shemanaev/node-lpt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shemanaev%2Fnode-lpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shemanaev%2Fnode-lpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shemanaev%2Fnode-lpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shemanaev%2Fnode-lpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shemanaev","download_url":"https://codeload.github.com/shemanaev/node-lpt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shemanaev%2Fnode-lpt/sbom","scorecard":{"id":113116,"data":{"date":"2025-08-04","repo":{"name":"github.com/shemanaev/node-lpt","commit":"aa2a88c98f91e0a77ccd8036df37727e80e0de44"},"scorecard":{"version":"v5.2.1-28-gc1d103a9","commit":"c1d103a9bb9f635ec7260bf9aa0699466fa4be0e"},"score":3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/17 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 15 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-15T16:24:55.632Z","repository_id":12184640,"created_at":"2025-08-15T16:24:55.632Z","updated_at":"2025-08-15T16:24:55.632Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28533172,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["linux","lpt","lpt-port","node","node-lpt","nodejs","parallel-port"],"created_at":"2026-01-18T07:43:42.561Z","updated_at":"2026-01-18T07:43:42.691Z","avatar_url":"https://github.com/shemanaev.png","language":"C++","readme":"# node-lpt\n\nHigh-level bindings to parallel port for node.js.\n\n**Important**: this module works only under linux through the `parport` driver,\nso you might need to compile kernel or modules (on gentoo mostly).\n\n## Installation\n\n    $ npm install lpt\n\n## Usage\n\n```javascript\nvar lpt = require('lpt')\n  , port = new lpt.Port(0, 'byte', false) // open /dev/parport0 with forced `byte` mode set\n  // , port = new lpt.Port(0) // the same\n\nconsole.log(port.data) // read data register\nconsole.log(port.status.busy) // get /BUSY pin status\n\nport.data = 123 // write data register\nport.control.init = true // write to control register\n```\n\n## API\n\nConstructor receives the following parameters:\n  * `port number`\n  * `parallel port mode` - optional. Can be:\n    * `spp`\n    * `nibble`\n    * `byte` - default\n    * `epp`\n    * `ecp`\n  * `negotiate port` - optional. If `true` will try IEEE 1284 compliant mode negotiation.\n\n`Port` class provides next fields:\n\n| Field           | Type | Description   | Read/Write | Pin num |\n| --------------- | ---- | ------------- |:----------:| -------:|\n| data            | byte | Data register | R/W        | 2..9    |\n| control.init    | bool | INIT          | R/W        | 16      |\n| control.select  | bool | /SELECT_IN *  | R/W        | 17      |\n| control.autofd  | bool | /AUTO_FEED *  | R/W        | 14      |\n| control.strobe  | bool | /STROBE *     | R/W        | 1       |\n| status.ack      | bool | ACK           | R          | 10      |\n| status.busy     | bool | /BUSY *       | R          | 11      |\n| status.error    | bool | ERROR         | R          | 15      |\n| status.select   | bool | SELECT        | R          | 13      |\n| status.paperOut | bool | PAPEROUT      | R          | 12      |\n| -               | -    | Ground        | -          | 18..25  |\n\n*_Note that this pins are inverted by `node-lpt` itself_\n\n**_You can read control pins only after you wrote something to it. Before that moment you can't rely on pin status_\n\n## Useful links\n\n* [Standard Parallel Port](http://users.utcluj.ro/~baruch/media/siee/labor/Standard-Parallel-Port.pdf)\n* [Using in Linux](http://www.labbookpages.co.uk/electronics/parallelPort.html)\n* [Parallel port interfacing made easy](http://www.epanorama.net/circuits/parallel_output.html)\n* [ECP Description](http://retired.beyondlogic.org/ecp/ecp.htm)\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshemanaev%2Fnode-lpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshemanaev%2Fnode-lpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshemanaev%2Fnode-lpt/lists"}