Skip to content

micah-williamson/snooze-moment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snooze-moment

A simple wrapper for the NPM module Moment.

Install

Install with npm

npm install snooze-moment --save

Use

Inject the module into your snooze module

require('snooze-moment');
snooze.module('MyModule', ['snooze-moment']);

Ready to use.

snooze.module('MyModule').service('MyServ', function($moment) {
  return {
    whatIsToday: function() {
      // Todays date in MySQL date format
      return $moment(new Date(), 'YYYY-MM-DD')
    }
  };
});

Documentation

See official moment documentation

http://momentjs.com/docs/#/parsing/

About

NPM Moment Wrapper for SnoozeJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published