Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
cloudflare-workers-template
Advanced tools
A Cloudflare Workers template with Typescript and predefined opinionated ESLint and Prettier rules
A Cloudflare Workers template with Typescript and predefined opinionated ESLint and Prettier rules.
yarn create cloudflare project-name https://github.com/Aynh/cloudflare-workers-template/
# or
npm init cloudflare project-name https://github.com/Aynh/cloudflare-workers-template/
# Clone the repository
git clone https://github.com/Aynh/cloudflare-workers-template/ project-name --depth 1
# Follow the step below if you want to re-initialize the git repository (optional)
cd project-name
# Remove .git folder
rm -rf .git
# Initialize git
git init .
yarn
# or
npm install
Subsitute yarn
with npm run
if you use npm
.
# Local development
yarn dev
# Remote development
yarn preview
# Publish to cloudflare
yarn publish
# Lint
yarn lint
# Type check
yarn typecheck
This template leverage Wrangler2's module system to work, See here if you are not familiar with Cloudflare Worker's Module Worker format.
You may want to replace some (or all) ESLint rules defined at .eslintrc.cjs
. You can also remove linting entirely by deleting .eslintrc.cjs
and removing all ESLint-related dependency.
You may also want replace Prettier rules at .prettierrc.json
.
FAQs
A Cloudflare Workers template with Typescript and predefined opinionated ESLint and Prettier rules
The npm package cloudflare-workers-template receives a total of 0 weekly downloads. As such, cloudflare-workers-template popularity was classified as not popular.
We found that cloudflare-workers-template 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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.