Skip to content
This repository has been archived by the owner on Jun 8, 2020. It is now read-only.

txgruppi/meteor-namespace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Travis branch GitHub tag GitHub license

meteor-namespace

A namespace helper for meteor. It allows you to define namespaces in meteor using the well-known dot notation.

Installation

$ meteor add txgruppi:namespace

Usage

ES5

namespace('MyBlog.Models', function() {
  var Posts = new Mongo.Collection('posts');
  return {
    Posts: Posts
  };
});

ES6

namespace('MyBlog.Models', () => {
  let Posts = new Mongo.Collection('posts');
  return {
    Posts
  };
});

CoffeeScript

namespace 'MyBlog.Models', ->
  Posts = new Mongo.Collection 'posts'
  return { Posts }

License

GPLv3

About

Namespace helper for Meteor

Resources

License

Stars

Watchers

Forks

Packages

No packages published