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

nytimes-style

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nytimes-style

  • 0.7.0
  • Rubygems
  • Socket score

Version published
Maintainers
3
Created
Source

= nytimes-style

Helper methods for generating text that conforms to The New York Times Manual of Style and Usage.

Annotated source code: http://ascheink.github.com/nytimes-style

== INSTALLATION

gem install nytimes-style

== USAGE

require 'nytimes-style' include Nytimes::Style

nytimes_date Date.today

=> "May 12, 2011"

nytimes_date Date.today, :hide_current_year => true, :day_of_week => true

=> "Wednesday, June 15"

nytimes_time Time.now, :hide_abbreviation => false

=> "2:30 p.m."

nytimes_state_abbrev 'AZ'

=> "Ariz."

nytimes_state_name '55'

=> "Wisconsin"

== CONTRIBUTORS

Andrei Scheinkman, andreischeinkman@gmail.com

Tyson Evans, tyson.evans@nytimes.com

Derek Willis, dwillis@nytimes.com

FAQs

Package last updated on 17 May 2013

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