Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

datejs-rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datejs-rails

  • 2.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

datejs-rails

datejs-rails wraps the datejs library in a rails engine for simple use with the asset pipeline provided by rails 3.1. From version 2.0 onward, the gem includes the fork of Datejs maintained by Eric Lindvall

datejs extends the Javascript date object to allow for simple date parsing, calculation, and formatting.

Usage

Add the following to your gemfile:

gem 'datejs-rails'

Add the following directive to your Javascript manifest file (application.js):

//= require date

This will require the en-US version of datejs. All other localizations are available as well. For instance, you could instead:

//= require date
//= require date/fr-FR

Optionally, require extras.js for strftime-style FormatSpecifiers.

//= require date/extras

FAQs

Package last updated on 18 Dec 2012

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc