plain-tag
A fast, and essential, noop/plain JS template literal tag.
;// const plainTag = require('plain-tag');// <script src="//unpkg.com/plain-tag"></script> plainTag`one three`;// output: "one 2 three"
It could be used to trigger CSS minification too, through rollup plugins or others.
; const style = css` body { color: green; }`;
Benchmark
Following the result of node test/benchmark.js
after a local install of both fake-tag
and noop-tag
.
plain: 1.359ms
fake: 4.578ms
noop: 10.347ms
The gist of this module fits into 89 bytes before compression.
{forvar c=b0a=1d=argumentslength;a<d;a++c+=argumentsa+ba;return c}