
Security News
ESLint Adds Official Support for Linting HTML
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
https://github.com/albertosaurus/us_bank_holidays
Patches Date
to make working with US bank holidays easier
Tested against the following Ruby runtimes:
Add this line to your application's Gemfile:
gem 'us_bank_holidays'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install us_bank_holidays
First, load the gem.
require 'us_bank_holidays'
This adds the following features to dates.
date = Date.new(2014, 1, 3) # Friday, January 3, 2014
date.bank_holiday? # Returns false
date.weekend? # Returns false
date.next_banking_day # Returns Monday, January 6, 2014
date.banking_day? # Returns true
date.first_banking_day_of_month? # Returns false
date.last_banking_day_of_month? # Returns false
Date.new(2014, 1, 16).add_banking_days(2) # Returns Tuesday, January 21, 2014
Date.new(2014, 1, 5).previous_banking_day # Returns Friday, January 3, 2014
By default, weekends always count as bank holidays, but this can be disabled.
date = Date.new(2014, 2, 2) # Sunday, February 2, 2014
date.bank_holiday? # Returns true
date.bank_holiday?(false) # Returns false
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that us_bank_holidays 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
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.