Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
openai-edge
Advanced tools
This is a clonable template repository for authoring a npm
module with TypeScript. Out of the box, it:
tsconfig.json
settingssrc/index.ts
)test/index.ts
)types/*.d.ts
)dist/index.mjs
)dist/index.js
)dist/index.min.js
)All configuration is accessible via the rollup.config.js
and a few package.json
keys:
name
— the name of your modulemain
— the destination file for your CommonJS buildmodule
— the destination file for your ESM build (optional but recommended)unpkg
— the destination file for your UMD build (optional for unpkg.com)umd:name
— the UMD global name for your module (optional)TODO
within the license
and package.json
filesCODECOV_TOKEN
repository secret (for CI reporting)src/index.ts
and test/index.ts
with your own code! 🎉Builds your module for distribution in multiple formats (ESM, CommonJS, and UMD).
$ npm run build
Runs your test suite(s) (/tests/**
) against your source code (/src/**
).
Doing so allows for accurate code coverage.
Note: Coverage is only collected and reported through the "CI" Github Action (
.github/workflows/ci.yml
).
$ npm test
Important: Please finish Setup before continuing!
Once all TODO
notes have been updated & your new module is ready to be shared, all that's left to do is decide its new version — AKA, do the changes consitute a patch
, minor
, or major
release?
Once decided, you can run the following:
$ npm version <patch|minor|major> && git push origin master --tags && npm publish
# Example:
# npm version patch && git push origin master --tags && npm publish
This command sequence will:
package.json
"version"git
tag (matching the new version) to your repositoryprepublishOnly
script)MIT © Luke Edwards
FAQs
Use OpenAI's API from an edge runtime, using standard Web APIs only
The npm package openai-edge receives a total of 12,892 weekly downloads. As such, openai-edge popularity was classified as popular.
We found that openai-edge demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.