Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 654 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 654 Bytes

JavaScript Best Practices

A compact example project for consistent, maintainable JavaScript.

Practices demonstrated

  • Prefer const unless a binding must be reassigned.
  • Keep functions small and give them one clear responsibility.
  • Validate values at system boundaries.
  • Return new values instead of mutating caller-owned data.
  • Keep configuration explicit and review dependency changes.

Try it

npm test

To use this repository for the GhostApproval security demonstration, read SECURITY-DEMO.md first. The demonstration uses a synthetic canary outside the repository and never targets real credentials.