src/esc-pos-encoder.js
/**
     * Insert a horizontal rule
     *
     * @param  {object}          options  And object with the following properties:
     *                                    - style: The style of the line, either single or double
     *                                    - width: The width of the line, by default the width of the paper
     * @return {object}                   Return the object, for easy chaining commands
     *
     */
Insert a horizontal rule
@param  {object}          options  And object with the following properties:
- style: The style of the line, either single or double
- width: The width of the line, by default the width of the paper
@return {object}                   Return the object, for easy chaining commands
Insert a horizontal rule @param { object } options And object with the following properties : - style : The style of the line either single or double - width : The width of the line by default the width of the paper @return { object } Return the object for easy chaining commands
rule(options) {
    options = Object.assign({
      style: 'single',
      width: this._options.width || 10,
    }, options || {});
    this._queue([
      0x1b, 0x74, this._getCodepageIdentifier('cp437'),
      (new Array(options.width)).fill(options.style === 'double' ? 0xcd : 0xc4),
    ]);
    this._queue([
      0x1b, 0x74, this._state.codepage,
    ]);
    this.newline();
    return this;
  }
rule ( options ) { options = Object . assign ( { style : 'single' , width : this . _options . width || 10 , } , options || { } ) ; this . _queue ( [ 0x1b , 0x74 , this . _getCodepageIdentifier ( 'cp437' ) , ( new Array ( options . width ) ) . fill ( options . style === 'double' ? 0xcd : 0xc4 ) , ] ) ; this . _queue ( [ 0x1b , 0x74 , this . _state . codepage , ] ) ; this . newline ( ) ; return this ; }
Insert a horizontal rule
 @param  {object}          options  And object with the following properties:
                                    - style: The style of the line, either single or double
                                    - width: The width of the line, by default the width of the paper
 @return {object}                   Return the object, for easy chaining commands
Insert a horizontal rule @param { object } options And object with the following properties : - style : The style of the line either single or double - width : The width of the line by default the width of the paper @return { object } Return the object for easy chaining commands