
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Custom ICU rulesets for collation in ruby - requires libicu
Add this line to your application's Gemfile:
gem 'cicu'
And then execute:
$ bundle
Or install it yourself as:
$ gem install cicu
Create a ruleset
ruleset = Cicu::Ruleset.new("[normalization on] & b < a < c")
Sort an array
ary = %w( a b c ba bb bc )
sorted_ary = ruleset.sort_by { |el| ruleset.sort_key(el) }
# => "["b", "bb", "ba", "bc", "a", "c"]"
Get the sort key for a string
ruleset.sort_key("abc")
# => "*\x04)*\x05\x01\a\x01\a"
You can store sort keys in a database column to use them in ORDER BY
queries. Make sure to use a column type that supports binary strings (e.g. MySQLs VARBINARY).
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that cicu 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
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.