{"author":{"name":"Will S Laurance","email":"w.laurance@gmail.com","url":"http://www.wlaurance.com"},"name":"singleton","description":"A singleton javascript class","version":"1.0.0","homepage":"https://github.com/wlaurance/singleton","repository":{"url":"git@github.com:wlaurance/singleton.git"},"main":"lib/singleton.js","scripts":{"test":"make test"},"dependencies":{},"devDependencies":{"mocha":"*","should":"*"},"optionalDependencies":{},"engines":{"node":"*"},"readme":"singleton\n=========\n\nsingleton javascript class\n\nThe most tested singleton javascript class **ever**\n\n[![Build\nStatus](https://secure.travis-ci.org/wlaurance/singleton.png)](http://travis-ci.org/wlaurance/singleton)\n\n\n###Example\n```\nsingleton = require '../lib/singleton'\n\nclass TestClass extends singleton\n  constructor:(@instantiated_time = (new Date()).toString())->\n    @testString = 'hello'\n\nmodule.exports = TestClass.get()\n```\n\n\n```\n(function() {\n  var TestClass, singleton,\n    __hasProp = {}.hasOwnProperty,\n    __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };\n\n  singleton = require('../lib/singleton');\n\n  TestClass = (function(_super) {\n\n    __extends(TestClass, _super);\n\n    function TestClass(instantiated_time) {\n      this.instantiated_time = instantiated_time != null ? instantiated_time : (new Date()).toString();\n      this.testString = 'hello';\n    }\n\n    return TestClass;\n\n  })(singleton);\n\n  module.exports = TestClass.get();\n\n}).call(this);\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/wlaurance/singleton/issues"},"_id":"singleton@1.0.0","dist":{"shasum":"e5f1ab11b5d0b77a171ef9ffd5d93483d1356cde","tarball":"https://registry.npmjs.org/singleton/-/singleton-1.0.0.tgz","integrity":"sha512-3VmDrfrealF6VSMFLvnbgDwKXmPwggjRDH6Yi7Dyetl5FJ6hQpjvmBJ/mGxNJnubSp0M8aKq513vEakacImcOw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBe31PkcQWTDVcJqor4B/+b54zl2oWkIAXdjb4Idj6nGAiEA4gSxKy5VHJIdEm3XCYvmX1FbfiKTDqhgCqTROWjImgo="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"wlaurance","email":"w.laurance@gmail.com"},"maintainers":[{"name":"wlaurance","email":"w.laurance@gmail.com"}]}