Skip to content

Global transformersΒ #6

@nombrekeff

Description

@nombrekeff

Add global transformers that apply to all templates generated by a formatter.

const formatter = strif.create({
  transformers: {
    trim: s => s.trim()
  },
  active: [  'trim'  ]
});

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions