@attributes/web

Metadata for web development

Usage no npm install needed!

<script type="module">
  import attributesWeb from 'https://cdn.skypack.dev/@attributes/web';
</script>

README

@attributes/web

class UserController {
    method1() {}
    method2() {}
    method3() {}
}

ControllerAttribute

Reflector(UserController).getOwnAttribute(ControllerAttribute)

ParamsAttribute

Reflector(UserController).property('method1').getOwnAttribute(ParamsAttribute)

MiddlewareAttribute

Reflector(UserController).property('method2').getOwnAttribute(MiddlewareAttribute)

MethodAttribute

Reflector(UserController).property('method3').getOwnAttribute(MethodAttribute)