JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 15333789
  • Score
    100M100P100Q228248F
  • License BSD-3-Clause

A closure for generating functions programmatically.

Package Exports

  • @protobufjs/codegen

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@protobufjs/codegen) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@protobufjs/codegen

npm

A closure for generating functions programmatically.

API

  • codegen(...params: string): function(format: string, ...args: string): self
    Begins generating a function programmatically.

  • codegen#str([name: string]): string
    Stringifies the so far generated function source.

  • codegen#eof([name?: string], [scope: Object]): function
    Ends generation and builds the function whilst applying a scope.

License: BSD 3-Clause License