Giter Club home page Giter Club logo

humanizer.js's Introduction

Humanizer.Js

Humanizer meets all your JavaScript needs for manipulating and displaying strings, dates, times, numbers and quantities. This is a port of the popular Humanizer library to JavaScript. For the most part you can just follow the documentation for Humanizer with little to no issue. See below for big differences.

##Differences From Humanizer

  1. Name casing has been changed for JavaScript so all functions and properties start with lower case now, so instead of "Sentence casing".Transform(To.LowerCase) you use "Sentence casing".transform(Humanizer.To.LowerCase).

  2. There isn't a TimeSpan equivalent in JavaScript so all action from or to TimeSpans now use Numbers in milliseconds instead. So instead of TimeSpan.FromDays(16).Humanize() you use (16).days().time(). Both will return "2 weeks".

    Also to deal with the lack of TimeSpan extra to* methods have been added to Numbers to make conversions simpler.

  3. I am sadly behind the changes to Humanizer so at times what I have will be the old way of doing something so you might have to look at older version of the documentation to understand things.

##Road Map

I have two primary tasks currently with Humanizer.Js

  1. Implement features not implemented that are in Humanizer.
  2. Update Implemented features to match updates to Humanizer.

Currently it's just me working on this while I wait for code to compile at work. As such I'm only going so fast. I'm currently focusing on number 2 so that the documentation from Humanizer can be used. To save myself time I currently am only implementing default and/or English for code that is localisable. The ablity to add other languages is there, but for the sake of getting more of the API done I'm only doing this.

humanizer.js's People

Contributors

shmuelie avatar pyusim avatar

Watchers

James Cloos avatar Kai Puth avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.