Repository: feross/simple-peer Branch: master Commit: f1a492d1999c Files: 25 Total size: 111.4 KB Directory structure: gitextract_bqa_c8qr/ ├── .airtap.yml ├── .github/ │ ├── ISSUE_TEMPLATE/ │ │ ├── bug_report.md │ │ ├── config.yml │ │ └── feature_request.md │ ├── PULL_REQUEST_TEMPLATE.md │ ├── dependabot.yml │ └── workflows/ │ └── ci.yml ├── .gitignore ├── .npmignore ├── LICENSE ├── README.md ├── index.js ├── package.json ├── perf/ │ ├── receive.js │ ├── send.js │ └── server.js └── test/ ├── basic.js ├── binary.js ├── common.js ├── multistream.js ├── negotiation.js ├── object-mode.js ├── stream.js ├── trickle.js └── z-cleanup.js ================================================ FILE CONTENTS ================================================ ================================================ FILE: .airtap.yml ================================================ sauce_connect: true browsers: - name: firefox version: latest - name: chrome version: latest - name: safari version: latest - name: edge version: latest - name: and_chr version: latest - name: ios_saf version: latest providers: - airtap-sauce presets: local: providers: airtap-manual browsers: - name: manual ================================================ FILE: .github/ISSUE_TEMPLATE/bug_report.md ================================================ --- name: "🐞 Bug report" about: Report an issue with this software title: '' labels: '' assignees: '' --- **What version of this package are you using?** **What operating system, Node.js, and npm version?** **What happened?** **What did you expect to happen?** **Are you willing to submit a pull request to fix this bug?** ================================================ FILE: .github/ISSUE_TEMPLATE/config.yml ================================================ blank_issues_enabled: false contact_links: - name: ❓ Ask a question url: https://discord.gg/CNxFAzdEmr about: Ask questions about this software ================================================ FILE: .github/ISSUE_TEMPLATE/feature_request.md ================================================ --- name: "⭐️ Feature request" about: Request a new feature to be added title: '' labels: '' assignees: '' --- **What version of this package are you using?** **What problem do you want to solve?** **What do you think is the correct solution to this problem?** **Are you willing to submit a pull request to implement this change?** ================================================ FILE: .github/PULL_REQUEST_TEMPLATE.md ================================================ **What is the purpose of this pull request? (put an "X" next to item)** [ ] Documentation update [ ] Bug fix [ ] New feature [ ] Other, please explain: **What changes did you make? (Give an overview)** **Which issue (if any) does this pull request address?** **Is there anything you'd like reviewers to focus on?** ================================================ FILE: .github/dependabot.yml ================================================ version: 2 updates: - package-ecosystem: npm directory: / schedule: interval: daily labels: - dependency versioning-strategy: increase - package-ecosystem: github-actions directory: / schedule: interval: daily labels: - dependency ================================================ FILE: .github/workflows/ci.yml ================================================ name: ci 'on': - push - pull_request jobs: test: name: Node ${{ matrix.node }} / ${{ matrix.os }} runs-on: ${{ matrix.os }} environment: ci strategy: fail-fast: false matrix: os: - ubuntu-latest node: - '14' steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: node-version: ${{ matrix.node }} - run: npm install - run: npm run build --if-present - run: echo "127.0.0.1 airtap.local" | sudo tee -a /etc/hosts - run: npm test env: SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }} SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }} ================================================ FILE: .gitignore ================================================ .nyc_output node_modules package-lock.json ================================================ FILE: .npmignore ================================================ .airtap.yml .nyc_output .github/ img/ perf/ test/ ================================================ FILE: LICENSE ================================================ The MIT License (MIT) Copyright (c) Feross Aboukhadijeh 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. ================================================ FILE: README.md ================================================ # simple-peer [![ci][ci-image]][ci-url] [![coveralls][coveralls-image]][coveralls-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url] [![javascript style guide][sauce-image]][sauce-url] [ci-image]: https://img.shields.io/github/workflow/status/feross/simple-peer/ci/master [ci-url]: https://github.com/feross/simple-peer/actions [coveralls-image]: https://coveralls.io/repos/github/feross/simple-peer/badge.svg?branch=master [coveralls-url]: https://coveralls.io/github/feross/simple-peer?branch=master [npm-image]: https://img.shields.io/npm/v/simple-peer.svg [npm-url]: https://npmjs.org/package/simple-peer [downloads-image]: https://img.shields.io/npm/dm/simple-peer.svg [downloads-url]: https://npmjs.org/package/simple-peer [standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg [standard-url]: https://standardjs.com [sauce-image]: https://saucelabs.com/buildstatus/simple-peer [sauce-url]: https://saucelabs.com/u/simple-peer #### Simple WebRTC video, voice, and data channels