Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
datejs
Advanced tools
Readme
DateJS extends the built-in JavaScript Date object to add much better parsing, internationalization support, and all the functions and syntactic sugar you could wish for.
Date JS was started by Geoffrey McGill in 2007, he abandoned it on May 13th 2008; leaving the Google Code repository stagnant and with many bugs unresolved.
This fork was started improve and maintain DateJS. To keep what is still the most full featured JavaScript Date library alive, maintained, and improved. Currently we're on track towards a 1.0 release - having fixed almost all the existing bugs and added several new features, improved parsing, and many other changes.
DateJS supports running either your regular web browser as a client library or Node.js.
Installation is as easy as running:
npm install datejs
If you use Bower to manage your frontend packages then it's also really simple:
bower install datejs
Otherwise...
In Node.js you can just call Date.i18n.setLanguage
with the IETF appropriate code (e.g. "de-DE", or "es-MX") and DateJS will load the file automatically. For the browser DateJS has langauge support in one of two ways:
date-es-MX.js
loads Mexican Spanish).Date.Config.i18n
to the location of the internationalization files on your server and DateJS will dynamically load the files by script element insertion.DateJS will always support loading US English via Date.i18n.setLanguage("en-US")
no matter what other language is specifically loaded. So you can always support both your localization and the English speaking world.
build
Output from the Grunt powered build process
development
Non-minified files with full comments. Suitable for development environments.production
Fully minified (by Google's Closure Compiler) files suitable for production.src
All the source files used to build the final files.
core
The main DateJS source files.i18n
Internationalization files. Language specifics (days of the week, regex formats,etc). Organized by IETF language tag (eg - en-US, etc).specs
Unit Tests written using Jasmine. Code coverage is calculated by BlanketJS.tests
Orginal unit tests for 2008 project. DeprecatedFAQs
DateJS is the most full-featured, internationalized, open-source JavaScript Date Library.
The npm package datejs receives a total of 40,151 weekly downloads. As such, datejs popularity was classified as popular.
We found that datejs 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.