This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
sarnie with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Converts a list of strings into a compact, readable representation with delimiters of choice
sarnie 'alba,albero,albergo,alberto' # => alb(a|er(go|o|to)) sarnie 'aria:arianna' ':' '[' '+' ']' # => aria[+nna]
In British slang, sarnie is the abbreviation of sandwich. The name hints at the strings being sliced and interleaved with bread, the delimiters.
Useful when you need to pass long lists of URL params
Copyright (c) 2016-2017, Claudio Procida