Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
cloudworker-tls-no-crypto
Advanced tools
node.js runner for Cloudflare Workers with TLS, but without crypto
https://github.com/ArtskydJ/cloudworker-tls-no-crypto is based on https://github.com/supermari0/cloudworker/tree/tls-support-upstream which is based on https://github.com/dollarshaveclub/cloudworker
Cloudworker allows you to run Cloudflare Worker scripts locally.
Install via NPM:
npm install -g cloudworker-tls-no-crypto
const Cloudworker = require('cloudworker-tls-no-crypto')
const simpleScript = `addEventListener('fetch', event => {
event.respondWith(new Response('hello', {status: 200}))
})`
const req = new Cloudworker.Request('https://myfancywebsite.com/someurl')
const cw = new Cloudworker(simpleScript)
cw.dispatch(req).then((res) => {
console.log("Response Status: ", res.status)
res.text().then((body) =>{
console.log("Response Body: ", body)
})
})
Usage: cloudworker [options] <file>
Options:
-p, --port <port> Port (default: 3000)
-d, --debug Debug
-s, --kv-set [variable.key=value] Binds variable to a local implementation of Workers KV and sets key to value (default: [])
-f, --kv-file [variable=path] Set the filepath for value peristence for the local implementation of Workers KV (default: [])
-w, --wasm [variable=path] Binds variable to wasm located at path (default: [])
-c, --enable-cache Enables cache <BETA>
-r, --watch Watch the worker script and restart the worker when changes are detected
--tls-key <tlsKey> Optional. Path to encryption key for serving requests with TLS enabled. Must specify --tls-cert when using this option.
--tls-cert <tlsCert> Optional. Path to certificate for serving requests with TLS enabled. Must specify --tls-key when using this option.
--https-port <httpsPort> Optional. Port to listen on for HTTPS requests. Must specify --tls-cert and --tls-key when using this option. May not be the same value as --port.
-h, --help output usage information
cloudworker example/example.js
curl localhost:3000/
cloudworker --debug example/example.js
curl localhost:3000/
cloudworker --debug --kv-set KeyValueStore.key=value --kv-set KeyValueStore.hello=world example/example-kv.js
curl localhost:3000/
cloudworker --debug --kv-file KeyValueStore=kv.json --kv-set KeyValueStore.key=value --kv-set KeyValueStore.hello=world example/example-kv.js
curl localhost:3000/
cloudworker --debug --wasm Wasm=example/simple.wasm example/example-wasm-simple.js
curl localhost:3000/
cloudworker --debug --wasm isqrt=example/isqrt.wasm example/example-wasm-isqrt.js
curl localhost:3000/?num=9
cloudworker --debug --wasm RESIZER_WASM=example/resizer.wasm example/example-wasm-resizer.js
curl localhost:3000/wasm-demo/dogdrone.png?width=210 # or open in browser
cloudworker-tls-no-crypto strives to be as similar to the Cloudflare Worker runtime as possible, with the exceptions of supporting TLS, and not supporting crypto. A script should behave the same when executed by Cloudworker and when run within Cloudflare Workers. Please file an issue for scenarios in which Cloudworker behaves differently. As behavior differences are found, this package will be updated to match the Cloudflare Worker runtime. This may result in breakage if scripts depended on those behavior differences.
MIT
0.0.1
node-webcrypto-ossl
dependency, and dropped support for the crypto
objectFAQs
node.js runner for Cloudflare Workers with TLS, but without crypto
The npm package cloudworker-tls-no-crypto receives a total of 1 weekly downloads. As such, cloudworker-tls-no-crypto popularity was classified as not popular.
We found that cloudworker-tls-no-crypto demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.