
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Here is a powerful toolbox providing you all the functions you need to manipulate your Sass lists. See complete documentation here.
gem install SassyLists
bower install SassyLists --save-dev
sl-chunk()
: returns whether list contains $valuesl-comma-list()
: initializes an empty comma-separated listsl-contain()
: returns whether the list contains the valuesl-count-values()
: counts the number of occurrences of each value of listsl-debug()
: returns list as a stringsl-every()
: returns whether all items from list pass test from given functionsl-explode()
: explodes a string into a list using a string as a delimitersl-first()
: returns first value in listsl-flatten()
: turns multidimensional list into a one-level listsl-has-values()
: checks if list is not emptysl-has-multiple-values()
: checks if list has more than one valuesl-insert-nth()
: inserts value at indexsl-intersection()
: returns a list of shared values across all given listssl-is-empty()
: checks if list is emptysl-is-single()
: checks if list has a single valuesl-is-symmetrical()
: checks if list is symmetricalsl-last()
: returns last value in listsl-last-index()
: returns last index of value in listsl-loop()
: shifts indexes in listsl-prepend()
: prepends value to listsl-purge()
: removes all false
and null
values from listsl-random-value()
: returns random value from listsl-range()
: returns a list of values between 1 and given valuesl-remove()
: removes value in listsl-remove-duplicates()
: removes duplicate values from listsl-remove-nth()
: removes value at indexsl-replace()
: replaces value in listsl-replace-nth()
: replaces value at indexsl-reverse()
: reverses listsl-shuffle()
: shuffles listsl-slice()
: slices listsl-sort()
: sorts listsl-some()
: returns whether some values from list pass test from given functionsl-sum()
: sums all unitless values in listsl-tail()
: returns anything but the first element in listsl-to-list()
: casts value as listsl-to-map()
: casts list as map using indexes as keyssl-to-string()
: casts list as string (JS .join()
)sl-union()
: returns a list of values from given lists minus duplicatessl-walk()
: applies a function to every value of listIf you feel like an explorer, you can have a look at the code here.
If you are looking for the last version of SassyLists running on Sass 3.2, install 0.4.9
.
Some functions depend on other functions. If you include functions individually, make sure to check for these dependencies in their respective docs.
A lot of thanks to all contributors and to at-import for their support.
FAQs
Unknown package
We found that SassyLists demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.