new Commented()
Generate the expanded format of RFC 7049, section 2.2.1
Extends
- stream.Transform
Classes
Methods
-
<static> comment(input, options [, cb])
-
Comment on an input Buffer or string, creating a string passed to the callback. If callback not specified, a promise is returned.
Parameters:
Name Type Argument Description inputstring | Buffer | NoFilter optionsstring | object | function Properties
Name Type Argument Default Description max_depthnumber <optional>
10 how many times to indent the dashes cbcommentCallback <optional>
Returns:
if cb not specified- Type
- Promise