Skip to content

🍞 Converts a list of strings into a compact, readable representation with delimiters of choice

License

Notifications You must be signed in to change notification settings

decadentjs/sarnie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

sarnie

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]

What?

In British slang, sarnie is the abbreviation of sandwich. The name hints at the strings being sliced and interleaved with bread, the delimiters.

Why?

Useful when you need to pass long lists of URL params

License

Copyright (c) 2016-2017, Claudio Procida

MIT

About

🍞 Converts a list of strings into a compact, readable representation with delimiters of choice

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published