Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@enhance/arc-plugin-enhance

Package Overview
Dependencies
Maintainers
6
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@enhance/arc-plugin-enhance

adds file based routing to arc.codes with enhance.dev server rendered custom elements

  • 1.0.22
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
124
increased by13.76%
Maintainers
6
Weekly downloads
 
Created
Source

@enhance-dev/arc-plugin-enhance

adds file based routing to arc.codes with enhance.dev server rendered custom elements

project structure

public/ ............... static assets
app/
├── api/ .............. api routes
├── elements/ ......... custom elements named-like-this
└── pages/ ............ html or custom elements that are routes (eg. about.html renders /about)
    ├── about.mjs
    ├── index.html
    └── notes/
        ├── $id.mjs ... url parameters are supported
        └── index.mjs

decisions

file based routing using leading $ for dynamic parameters reasoning

  • $ is safe on windows and linux UNLESS its trailing in which case thats a hidden file in windows
  • : is illegal in windows file paths
  • * will expand in various system shells creating ambiguity
  • . is meaningful in system shells (current dir) and completions with .. and/or ... creates ambiguity

FAQs

Package last updated on 11 Aug 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc