0.2.5 • Published 10 years ago

snooze-stdlib v0.2.5

Weekly downloads
5
License
MIT
Repository
github
Last release
10 years ago

snooze-stdlib

STABLE VERSION COMING

August 10, 2014 Status Update

Thank you for using snooze/snooze-stdlib. Being the only one working on snooze right now in my free time I don't have a lot of time to work on snooze AND update the documentation. With all the changes and updates I'm adding to snooze it's currently in a very unstable state with no recent documentation. This will be fixed when snooze reaches v1.0 which could be in a few weeks to a few months.

Stay up to date on progress by following me on twitter: https://twitter.com/micahwllmsn

And feel free to send me questions, comments, bug reports via email: micahwllmsn@gmail.com

Thank you for your patients!

Site

New site with better documentation now up!

http://snoozejs.org/snooze-stdlib

The Snooze Standard Library is a module that includes helpful services that most server applications will use.

Installation

Install snooze-stdlib alongside snooze.

npm install snooze-stdlib

The directory structure should look something like-

main.js
node_modules\
	snooze\
	snooze-stdlib\

Add Module Dependency

var snooze = require('snooze');

snooze.module('myServer', ['snooze-stdlib']);

You're Done!

That's it. Now you can inject snooze-stdlib services in any of your controllres, services, and validators!

snooze.module('myServer').controller('MyCtrl', function($q) {
	return {
		test: function() {
			var deferred = $q.defer();

			setTimeout(function() {
				deferred.resolve('Resolved after 1 second.');
			}, 1000);

			return deferred.promise;
		}		
	};
});

Current Library

Instead of updating this here I'll be updating the snoozejs.org site

0.2.5

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago