
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@midcontract/protocol
Advanced tools
@akashrajpurohit/ts-npm-template
is a opinionated bootstrap template to create NPM packages.
Click on the "Use this template" button from the options to create a new repository using this template.
That is pretty much it, follow the steps for creating a new repository and its done 🎉
Refer to Sample README file to setup docs and instructions for your package.
Few configurations are required for making the publishing and releasing to NPM automated.
First thing is to generate a NPM token. Automation tokens are recommended since they can be used for an automated workflow, even when your account is configured to use the auth-and-writes level of 2FA.
Save this token as NPM_TOKEN
.
If you want to generate a code coverage badge for your package, you need to follow the steps and configure the gist mentioned by dynamic-badges-action.
Once you have followed the steps above and created a gist, uncomment these lines in the workflow file
- name: Get Coverage for badge 🔢
run: |
COVERAGE="$(cat coverage/coverage-summary.json | jq -r '.total.lines.pct')"
echo "COVERAGE=$(echo ${COVERAGE})" >> $GITHUB_ENV
- name: Create coverage badge ✍🏽
uses: schneegans/dynamic-badges-action@v1.6.0
with:
auth: ${{ secrets.GIST_SECRET }}
gistID: 275fdb9d0c3b23cafa916535c807ce6a
filename: ts-npm-template-coverage.json
label: Code Coverage
message: ${{ env.COVERAGE }}
color: green
namedLogo: vitest
If you encounter any problems feel free to open an issue. If you feel the project is missing a feature, please raise a ticket on GitHub and I'll look into it. Pull requests are also welcome.
FAQs
Crypto payment protocol with escrow
The npm package @midcontract/protocol receives a total of 183 weekly downloads. As such, @midcontract/protocol popularity was classified as not popular.
We found that @midcontract/protocol demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.