Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

This package has been deprecated

Author message:

Sambo has been renamed to sarnie. Please install the latest version of sarnie instead of sambo

sambo

0.0.2 • Public • Published

Build Status

sambo

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

sambo alba,albero,albergo,alberto
# => alb(a|er(go|o|to))

sambo aria:arianna : [ + ]
# => aria[+nna]

what?

In Irish slang, sambo 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, Claudio Procida

MIT

Keywords

none

install

npm i sambo

Downloadsweekly downloads

6

version

0.0.2

license

MIT

last publish

collaborators

  • avatar
Report a vulnerability