Socket
Socket
Sign inDemoInstall

annotating

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    annotating

class annotations tool


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
33.5 kB
Created
Weekly downloads
 

Readme

Source

大有用处的注释

以前用PHP开发web应用时,非常喜欢PHP的反射类,通过反射类能够解析到类、方法、属性的注释语句, 利用注释语句实现很多意想不到的功能,在这方法,php框架symfony在这方法可谓做到了极致。但是在 npmjs里面找到了一些类似的,但经过使用,要么过于简单,有么包含了不需要的功能, 所以在这里决定写一个符合公司业务逻辑的annotations解析工具。

Metadata

  • path
  • definition
  • construction
  • methods

Compiler

  • setDirective(name: string, directive: Function)
  • compile(path: string)

Parser

  • setSource(source: string|Buffer): ParserInterface
  • setMetadata(metadata: MetadataInterface): ParserInterface
  • parseFile(path: string): MetadataInterface
  • parse(): MetadataInterface

MetadataError

AnnotatingError

Keywords

FAQs

Last updated on 08 Jul 2017

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc