nl_tokens: @module @lobsangnet / lobsang - formatter - matrix Library to wrap a message into an object which complies to the given schema .
pl_tokens: function lobsangFormatterSchema ( message , <mask> ) { if ( typeof message !== 'string' ) { return Promise . reject ( new Error ( 'Message is not a string' ) ) } return schema ( topic ) . then ( ( schemaObject ) => { const validator = validate ( schemaObject ) const schemaMessage = format ( message ) if ( validator ( schemaMessage ) ) { return Promise . resolve ( schemaMessage ) } return Promise . reject ( validator . errors ) } ) }