{"_id":"mongoose-format-fields","_rev":"26-45791d6acc8163d9bf2ae8d766572cad","name":"mongoose-format-fields","description":"A plugin for Mongoose that formats the output of a model depending on the tags associated","dist-tags":{"latest":"0.4.4"},"versions":{"0.1.0":{"name":"mongoose-format-fields","description":"A plugin for Mongoose that formats the output of a model depending on the grants allowed","version":"0.1.0","author":{"name":"Flavio Del Bianco","email":"info@flaviodelbianco.com"},"keywords":["mongodb","mongoose","plugin","format","fields","grants"],"repository":{"type":"git","url":"git://github.com/flaviodelbianco/mongoose-format-fields"},"dependencies":{"extend":"~1.3.0"},"license":"MIT","engine":{"node":">= 0.6"},"bugs":{"url":"https://github.com/flaviodelbianco/mongoose-format-fields/issues"},"_id":"mongoose-format-fields@0.1.0","dist":{"shasum":"32cee7624b2a885d6bcc89ae8b29629553085ce5","tarball":"https://registry.npmjs.org/mongoose-format-fields/-/mongoose-format-fields-0.1.0.tgz","integrity":"sha512-Qg/yeEQLw3J/EbWqeTgDa78EY+nQ1N+FnI/jXcP31Ac6l4rMtQY+hC8eJgVHksdm58AzDIOH8bBXLz0Md5eJeg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICGHN2CqihI7Uabd+mtQKJE6f/iB6IsSo7m2+D3x1zZWAiALquI4xRT9R916hel+eYjWXuwezTdWAcTbv/lTSys1Tg=="}]},"_from":"./mongoose-format-fields","_npmVersion":"1.3.10","_npmUser":{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"},"maintainers":[{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"}],"directories":{}},"0.1.1":{"name":"mongoose-format-fields","description":"A plugin for Mongoose that formats the output of a model depending on the grants allowed","version":"0.1.1","author":{"name":"Flavio Del Bianco","email":"info@flaviodelbianco.com"},"keywords":["mongodb","mongoose","plugin","format","fields","grants"],"repository":{"type":"git","url":"git://github.com/flaviodelbianco/mongoose-format-fields.git"},"dependencies":{"extend":"~1.3.0"},"license":"MIT","engine":{"node":">= 0.6"},"gitHead":"ad98242068661d55b99a8e4d489aca98a9dc2fb3","bugs":{"url":"https://github.com/flaviodelbianco/mongoose-format-fields/issues"},"homepage":"https://github.com/flaviodelbianco/mongoose-format-fields","_id":"mongoose-format-fields@0.1.1","scripts":{},"_shasum":"70a3a51c7cddbc810ecfe7b4d37b8f8bf82bdef0","_from":"mongoose-format-fields","_npmVersion":"1.4.27","_npmUser":{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"},"maintainers":[{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"}],"dist":{"shasum":"70a3a51c7cddbc810ecfe7b4d37b8f8bf82bdef0","tarball":"https://registry.npmjs.org/mongoose-format-fields/-/mongoose-format-fields-0.1.1.tgz","integrity":"sha512-ZNa9wrS2hbNwuYa2IcWkWVWMu3Y/9nYU7bN8si8LPl9EdEVrq5qnKwedo6eOTz2Z4yGFFOJORee0qtRdO4fhtQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIANY8qI0eNnhpVf5GAeUYzvOPxYMoMhCqPh6PPLlySyvAiEAmSRBv52yVG+0B4LX6uCPOiBt6i+5XCw+H6uGCpRJNRo="}]},"directories":{}},"0.1.2":{"name":"mongoose-format-fields","description":"A plugin for Mongoose that formats the output of a model depending on the grants allowed","version":"0.1.2","author":{"name":"Flavio Del Bianco","email":"info@flaviodelbianco.com"},"keywords":["mongodb","mongoose","plugin","format","fields","grants"],"repository":{"type":"git","url":"git://github.com/flaviodelbianco/mongoose-format-fields.git"},"dependencies":{"extend":"~1.3.0"},"license":"MIT","engine":{"node":">= 0.6"},"gitHead":"600f1274b26956eb4b3ab0d497b490bb0d0135de","bugs":{"url":"https://github.com/flaviodelbianco/mongoose-format-fields/issues"},"homepage":"https://github.com/flaviodelbianco/mongoose-format-fields","_id":"mongoose-format-fields@0.1.2","scripts":{},"_shasum":"3ab17fa4f36da7d4fc2ca9ad5321bb44d719fd56","_from":"mongoose-format-fields","_npmVersion":"1.4.27","_npmUser":{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"},"maintainers":[{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"}],"dist":{"shasum":"3ab17fa4f36da7d4fc2ca9ad5321bb44d719fd56","tarball":"https://registry.npmjs.org/mongoose-format-fields/-/mongoose-format-fields-0.1.2.tgz","integrity":"sha512-wtDDAPRAHJtLnKSttaL45oj2dDw6aN2DbA1uikLeearR0Am/Ry7xt7LguwhPCIPK23w9pPD2WiLw5j5WF5y6VA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB3989tVs2v8O+hSNe659u11HpOcmywSulSKHbSDsEwSAiEA3UguPK256eyx0e/MIe9qm9xbGGb9cj+KIZzM56YEArg="}]},"directories":{}},"0.1.3":{"name":"mongoose-format-fields","description":"A plugin for Mongoose that formats the output of a model depending on the grants allowed","version":"0.1.3","author":{"name":"Flavio Del Bianco","email":"info@flaviodelbianco.com"},"keywords":["mongodb","mongoose","plugin","format","fields","grants"],"repository":{"type":"git","url":"git://github.com/flaviodelbianco/mongoose-format-fields.git"},"dependencies":{"extend":"~1.3.0"},"license":"MIT","engine":{"node":">= 0.6"},"bugs":{"url":"https://github.com/flaviodelbianco/mongoose-format-fields/issues"},"homepage":"https://github.com/flaviodelbianco/mongoose-format-fields","_id":"mongoose-format-fields@0.1.3","dist":{"shasum":"a6803f47073af5d2ff52f9fff8b389745808df76","tarball":"https://registry.npmjs.org/mongoose-format-fields/-/mongoose-format-fields-0.1.3.tgz","integrity":"sha512-Zaz8+x4Ujo53d7upwrVJ84YhTLrpLFe69l/7g8o/+pqD2smplxXZbftihZZf2mq95ZiDjYd6uLVHWWt0EHU+rQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHDAWJPui81KES/8w+Vpf023/woVblxN//9NcFiBAmE4AiEA9sA8m3V9YK2UwXKGQr9egjSQZNpP6gcj+AH13kwEgiw="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"},"maintainers":[{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"}],"directories":{}},"0.2.0":{"name":"mongoose-format-fields","description":"A plugin for Mongoose that formats the output of a model depending on the grants allowed","version":"0.2.0","author":{"name":"Flavio Del Bianco","email":"info@flaviodelbianco.com"},"keywords":["mongodb","mongoose","plugin","format","fields","grants"],"repository":{"type":"git","url":"git://github.com/flaviodelbianco/mongoose-format-fields.git"},"dependencies":{"dot-object":"^1.5.4","extend":"~1.3.0"},"license":"MIT","engine":{"node":">= 0.6"},"gitHead":"987f531a28c1195f3bc65bf24b1ab129a503542a","bugs":{"url":"https://github.com/flaviodelbianco/mongoose-format-fields/issues"},"homepage":"https://github.com/flaviodelbianco/mongoose-format-fields#readme","_id":"mongoose-format-fields@0.2.0","scripts":{},"_shasum":"06bf7348c5fb92db53a22fdd221632ea11da2221","_from":".","_npmVersion":"4.0.2","_nodeVersion":"5.7.1","_npmUser":{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"},"dist":{"shasum":"06bf7348c5fb92db53a22fdd221632ea11da2221","tarball":"https://registry.npmjs.org/mongoose-format-fields/-/mongoose-format-fields-0.2.0.tgz","integrity":"sha512-AmRsIQuVh4MKUwW07cIdEe26FLSBU85AloSj7Qkkl3hZovJzilviYS8xAVurIEgiSmBelWL3crYS26XsofXxGA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHdS0hQ5gmpcx360cUjH/tZ3VUhGsml6SD4vGH9n6p7PAiEAlgqLMhhVXITOrHsT/1DpNieIm91/d8AT3X6ofIblX48="}]},"maintainers":[{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mongoose-format-fields-0.2.0.tgz_1490423450001_0.04843320255167782"},"directories":{}},"0.3.1":{"name":"mongoose-format-fields","description":"A plugin for Mongoose that formats the output of a model depending on the tags associated","version":"0.3.1","author":{"name":"Flavio Del Bianco","email":"info@flaviodelbianco.com"},"keywords":["mongodb","mongoose","plugin","format","fields","tags"],"repository":{"type":"git","url":"git://github.com/flaviodelbianco/mongoose-format-fields.git"},"dependencies":{"extend":"~1.3.0"},"license":"MIT","engine":{"node":">= 0.6"},"devDependencies":{"mongoose":"^4.11.9"},"gitHead":"c7fee5a0838a25b1bd6dfcc710c597735eb07897","bugs":{"url":"https://github.com/flaviodelbianco/mongoose-format-fields/issues"},"homepage":"https://github.com/flaviodelbianco/mongoose-format-fields#readme","_id":"mongoose-format-fields@0.3.1","scripts":{},"_shasum":"70c5176ce4ac9d9670a92eb7523be94c8e100549","_from":".","_npmVersion":"4.0.2","_nodeVersion":"5.7.1","_npmUser":{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"},"dist":{"shasum":"70c5176ce4ac9d9670a92eb7523be94c8e100549","tarball":"https://registry.npmjs.org/mongoose-format-fields/-/mongoose-format-fields-0.3.1.tgz","integrity":"sha512-UlY9/NzmDoX/Kc9rFTV+EoF4QxaHxHzgilROjvgX9an8x5RGE4exCm0/LRwIJrZH3VYWiNrB9KiWLe23RfxNFg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiF12FilpLMMHCBJNZER5VIGnW8N29jrpTrlpXmDzeLQIgGbLgO72obYZgltEoQFBsUoHX25PRalDjaKUIfWm1Wao="}]},"maintainers":[{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongoose-format-fields-0.3.1.tgz_1504366599226_0.09456028137356043"},"directories":{}},"0.3.2":{"name":"mongoose-format-fields","description":"A plugin for Mongoose that formats the output of a model depending on the tags associated","version":"0.3.2","author":{"name":"Flavio Del Bianco","email":"info@flaviodelbianco.com"},"keywords":["mongodb","mongoose","plugin","format","fields","tags"],"repository":{"type":"git","url":"git://github.com/flaviodelbianco/mongoose-format-fields.git"},"dependencies":{"extend":"~1.3.0"},"license":"MIT","engine":{"node":">= 0.6"},"devDependencies":{"mongoose":"^4.11.9"},"gitHead":"bd4d3c8b93c8a5a16f2c2319a0c558a4b69734de","bugs":{"url":"https://github.com/flaviodelbianco/mongoose-format-fields/issues"},"homepage":"https://github.com/flaviodelbianco/mongoose-format-fields#readme","_id":"mongoose-format-fields@0.3.2","scripts":{},"_shasum":"a2a58028556e950fc93956bdfd0501eef04a3fe5","_from":".","_npmVersion":"4.0.2","_nodeVersion":"5.7.1","_npmUser":{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"},"dist":{"shasum":"a2a58028556e950fc93956bdfd0501eef04a3fe5","tarball":"https://registry.npmjs.org/mongoose-format-fields/-/mongoose-format-fields-0.3.2.tgz","integrity":"sha512-N/0ki2ANQbrfFOM9G/EbxQdDwL1B//YAqDL9O4LDgdu5KvlDgudggr4JEqwLpR2bQmk1LUS6jB/sWzBXjeI11g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICwX4KLkks8Bsc577p+kQGT0EGercpv5SeGrmWhO8KpQAiBjIuxdBD35erT10RGt6JyLYZxz4pyQ3LKwga0CtXLfxA=="}]},"maintainers":[{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongoose-format-fields-0.3.2.tgz_1504426797285_0.09793949825689197"},"directories":{}},"0.3.3":{"name":"mongoose-format-fields","description":"A plugin for Mongoose that formats the output of a model depending on the tags associated","version":"0.3.3","author":{"name":"Flavio Del Bianco","email":"info@flaviodelbianco.com"},"keywords":["mongodb","mongoose","plugin","format","fields","tags"],"repository":{"type":"git","url":"git://github.com/flaviodelbianco/mongoose-format-fields.git"},"dependencies":{"extend":"~1.3.0"},"license":"MIT","engine":{"node":">= 0.6"},"devDependencies":{"mongoose":"^4.11.9"},"gitHead":"40d6dbd56b64a8e04c8c882d08893c18706a46c3","bugs":{"url":"https://github.com/flaviodelbianco/mongoose-format-fields/issues"},"homepage":"https://github.com/flaviodelbianco/mongoose-format-fields#readme","_id":"mongoose-format-fields@0.3.3","scripts":{},"_shasum":"1dafe1677374b5ae490abf69befa924278c67ca3","_from":".","_npmVersion":"4.0.2","_nodeVersion":"5.7.1","_npmUser":{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"},"dist":{"shasum":"1dafe1677374b5ae490abf69befa924278c67ca3","tarball":"https://registry.npmjs.org/mongoose-format-fields/-/mongoose-format-fields-0.3.3.tgz","integrity":"sha512-VDLVjct94hrpnp8Hcd14Ehcwa59iW5SxdHbtmK5P3K5L0Q1pzkpZYYSyHp8cR/Bi5V5F5LTuDe+rfcc8zQpXgQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDR7WChWHvqvDbaoTAlD/3Qd1NPTiaC1QfZUqLz3C+NDwIhAJHYXQ3h6WSaEvKxXNKAXlO8HElbaF0wewT4QnA2ZLo9"}]},"maintainers":[{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongoose-format-fields-0.3.3.tgz_1504427073935_0.33707577222958207"},"directories":{}},"0.3.4":{"name":"mongoose-format-fields","description":"A plugin for Mongoose that formats the output of a model depending on the tags associated","version":"0.3.4","author":{"name":"Flavio Del Bianco","email":"info@flaviodelbianco.com"},"keywords":["mongodb","mongoose","plugin","format","fields","tags"],"repository":{"type":"git","url":"git://github.com/flaviodelbianco/mongoose-format-fields.git"},"dependencies":{"extend":"~1.3.0"},"license":"MIT","engine":{"node":">= 0.6"},"devDependencies":{"mongoose":"^4.11.9"},"gitHead":"3bdc343a4daca4886d988e4803d3fad3a6107efc","bugs":{"url":"https://github.com/flaviodelbianco/mongoose-format-fields/issues"},"homepage":"https://github.com/flaviodelbianco/mongoose-format-fields#readme","_id":"mongoose-format-fields@0.3.4","scripts":{},"_shasum":"04af5c1461b6f264cef1425be1cd4ed3f445546a","_from":".","_npmVersion":"4.0.2","_nodeVersion":"5.7.1","_npmUser":{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"},"dist":{"shasum":"04af5c1461b6f264cef1425be1cd4ed3f445546a","tarball":"https://registry.npmjs.org/mongoose-format-fields/-/mongoose-format-fields-0.3.4.tgz","integrity":"sha512-25JsBr8GlwemTPGS67gjTJe65Pb+MaJ7m5Gn2WJkD9vpxOKV4QV7Y4n7V1Pg1ovAynTCzQDNoJrjfEa1XuDcmw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG7eHos7MoZIw+Ahhhw+YaZTgl4kWq+3xQ03RxroCTmeAiEA+U4auwHaDhPTZ1VBhKMA2q8aCNddX35fHtHD7Gw1sm0="}]},"maintainers":[{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongoose-format-fields-0.3.4.tgz_1504429846231_0.46332793310284615"},"directories":{}},"0.4.0":{"name":"mongoose-format-fields","description":"A plugin for Mongoose that formats the output of a model depending on the tags associated","version":"0.4.0","author":{"name":"Flavio Del Bianco","email":"info@flaviodelbianco.com"},"keywords":["mongodb","mongoose","plugin","format","fields","tags"],"repository":{"type":"git","url":"git://github.com/flaviodelbianco/mongoose-format-fields.git"},"dependencies":{"extend":"~1.3.0"},"license":"MIT","engine":{"node":">= 0.6"},"devDependencies":{"mongoose":"^4.11.9"},"gitHead":"6022a8309870122d735748c441f033c3e9e303be","bugs":{"url":"https://github.com/flaviodelbianco/mongoose-format-fields/issues"},"homepage":"https://github.com/flaviodelbianco/mongoose-format-fields#readme","_id":"mongoose-format-fields@0.4.0","_npmVersion":"6.0.1","_nodeVersion":"6.11.4","_npmUser":{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"},"dist":{"integrity":"sha512-Gq3NH2whY8LOWLLUb9m2TcXA0WTot444jorCzFgDp6fDQpRUEK0oWH4Zbh9mz6tTBDRs6/zch3952LMP4aiuLg==","shasum":"92742c9931a525d9b6f9914759607d5da80afc31","tarball":"https://registry.npmjs.org/mongoose-format-fields/-/mongoose-format-fields-0.4.0.tgz","fileCount":4,"unpackedSize":10236,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbcaUHCRA9TVsSAnZWagAAw/MP/igvhGeYMcCuheaPjlvp\ngZtRsW8ZloMITwS/SHUHLBxz8R0sAf/Yi9/LLUNDqazJZw26Bh1CYhKf84s+\ntoQC3zpdox42/wGnXeQS5KoFmNLFj7kZY0UPv0r8C32QCkhutxbkw1RjikuK\n7qTnWHfraWBfCtOCRlYfJdzT94IiO9qWpPE3ChfqBsjunulVg+UaKVfQDDds\njXn9e1EOML9cKnAYevo/732Bz6lHQYwSKGWZtGQMHEcbZlk7pKOrptwc/9/5\nWZmqE40ejn7iJhjIg2TozkqcjRmOP6ZwrvLSTJdJjTLo9/ejYBj6RSIPbw3W\n6jnAF7AOYk6NH9ImIp3ykZDDxvYC1OKWGc6fGdU6o4I9ac6hjc9rqCrUkmEf\nRwsdGFA7b7LKsLCdS1XLEZqdH+STeXVUDuoCcIv4IT/uKBINX4lznMwZVz+6\nCOIOU2A5ePMLYFxBYlrvlTPyk4/PB4FQ+i7BGGyrsOyf31F9be/Aqya1TfoB\nXlZANU12/od8CtC44y2Q34fvvpYUwjSzZgL3ibq09X9I9c+YI72igPgm4/iH\n9XGTHh6CgXA/18aLhpokNR7D2MswKguNKA30e6ysvlD/dzn3GEkcVUMAkphW\nGyh85Cka9SpbSblgwM1vym39kulDBr+dhv9ea9zbwsK0cxC6JSE29ufBPWix\n0GZq\r\n=z4XC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICJhgPhYUTo/jxqt/YXxS8p2PY7d5mXaZfkY9NymouITAiEA0qbOxecv095BiPzaiNJk7kTfnBUdIH/jLgijbHNnObU="}]},"maintainers":[{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongoose-format-fields_0.4.0_1534174470585_0.2917462182121302"},"_hasShrinkwrap":false},"0.4.1":{"name":"mongoose-format-fields","description":"A plugin for Mongoose that formats the output of a model depending on the tags associated","version":"0.4.1","author":{"name":"Flavio Del Bianco","email":"info@flaviodelbianco.com"},"keywords":["mongodb","mongoose","plugin","format","fields","tags"],"repository":{"type":"git","url":"git://github.com/flaviodelbianco/mongoose-format-fields.git"},"dependencies":{},"license":"MIT","engine":{"node":">= 0.6"},"devDependencies":{"mongoose":"^4.11.9"},"gitHead":"2804b77a61689b1860bb78e37558a3e4749a2333","bugs":{"url":"https://github.com/flaviodelbianco/mongoose-format-fields/issues"},"homepage":"https://github.com/flaviodelbianco/mongoose-format-fields#readme","_id":"mongoose-format-fields@0.4.1","_npmVersion":"6.0.1","_nodeVersion":"6.11.4","_npmUser":{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"},"dist":{"integrity":"sha512-lzl70yS0zk5OR93eHoq9whhJ4srV49ubessVNp0P6aGm1N6Ozb63L8RIKH6MhsT5IU9pLHKM7iVlZ2F26HP+Gg==","shasum":"eca29a3fe58f832b6923dccd2368175bc779d6d2","tarball":"https://registry.npmjs.org/mongoose-format-fields/-/mongoose-format-fields-0.4.1.tgz","fileCount":3,"unpackedSize":10653,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbcbmjCRA9TVsSAnZWagAAF14QAJtikt/tn+MQ79iF9YjJ\nfe2S2JhkyjbSb+AxRNXjv4BCdtZEM9DxJwFXAA/COW7xPQuJ8fpu5NMwFcvM\nXnxSt/qqX+8uCQj+ugRTesLK2Ot4IzJif3QKB+93r3ju+/jiHRsazObKy+dF\nR/v/qSkCwq8UT/5Gu7iq6gcCt5qYYw/qN0ee0sfTh4FzWZmKusxiwwg82hDo\nrClKpoMLXBNmdXktlwXuJ7G6wnjqIqrb0xs5mzd6M9xLxxkNenA9IZCUABcp\nfbbVCxHcJD6SCLvR6C02fd7+ML5a761KYCSbZiykNeMd6kguyUslC4mXquHh\n8lRnKnDmsFPTx+mxQPLWntiadbu34cY3tu7n+BLuBx0xiPlToaSk1DTYykEW\nZoRwEA4oxX1beHejtZx6foita2wC7PoV0uwJuPgLD1BjRtzJqmvg9nGLk9WH\nWPtIHD7fyRY0rdQxF8Vdkzt1CcC2wO8Tk1gXKNrDHV86ZUPRdiKeQi8k3Epp\nWsb/XzvaJY1eIDwW7+3mF/+NpY8doMoTXqzOkUt2jGov8Y2nYLWcOjJbqLBO\nbxczxEjsCTUArJUV1vy9pJMTOWAEUbTmBeGJEa2KXJQhSTsFYMAQokegWH50\nPWKoUrPiHfBi4G1bwsmeUODmRoSabuu3N4DmGFxDihqV2l/7z+CeGSy4zT+S\ngzhm\r\n=BEHP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICfic59XPygCwBuxUr8CRy1UDN9TscYrPBmECr1Ml/qaAiEAldRxo1YwuhSTEtSHekQ2pfVjIUzFIJRPUHaLIzo5knk="}]},"maintainers":[{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongoose-format-fields_0.4.1_1534179746592_0.7464736147967312"},"_hasShrinkwrap":false},"0.4.2":{"name":"mongoose-format-fields","description":"A plugin for Mongoose that formats the output of a model depending on the tags associated","version":"0.4.2","author":{"name":"Flavio Del Bianco","email":"info@flaviodelbianco.com"},"keywords":["mongodb","mongoose","plugin","format","fields","tags"],"repository":{"type":"git","url":"git://github.com/flaviodelbianco/mongoose-format-fields.git"},"dependencies":{},"license":"MIT","engine":{"node":">= 0.6"},"devDependencies":{"mongoose":"^4.11.9"},"gitHead":"8f34fbe9e597f730faccb686fe64aa87a41be0e2","bugs":{"url":"https://github.com/flaviodelbianco/mongoose-format-fields/issues"},"homepage":"https://github.com/flaviodelbianco/mongoose-format-fields#readme","_id":"mongoose-format-fields@0.4.2","_npmVersion":"6.0.1","_nodeVersion":"6.11.4","_npmUser":{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"},"dist":{"integrity":"sha512-eCBs4HM4VMXDPshPoq5IEO1tKdPJcVnTMd2QTLKYQQ/01t093mMoKWWzSJk+mUPznxPsx8iSJ0pTJDEbtrrwIg==","shasum":"7674571f7603895315e36f14e844d173c03611f3","tarball":"https://registry.npmjs.org/mongoose-format-fields/-/mongoose-format-fields-0.4.2.tgz","fileCount":3,"unpackedSize":11601,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbcodUCRA9TVsSAnZWagAAa70P/AkCqlw2zDYA4dgLNdTe\nfVWQMsh3jh5JxyrfIzKqwDk9T6AKFoHtaYVB2mkArmt6ZalDUZLrvHMd99Ob\n/fxYpYw/Pl08cVw6fvJOTTeXCulhom3RKCm2AVLmdMyLU+Cg2xXBzzkvUv7s\n6XSovrF9WJFlGn4qc8YijiN357MP5x7RdL14bKW+huux8TYNMANhZbcLITtQ\nLyqzQDu2i3xTU06+HfSMxtlO/ahiueOD4p2ITeaMHSOL5KysQg3Gk7huy58J\n7roT4H/iPRl6/Q/Lqxo0/ET/zV2nzGaGdaLMjoR7AFKcaFkEPuklEiMnR+vZ\nGxWSVT7vchTScV9d36pfnbRI39O+LH90uDRqFqMgFVnbkHDhs/ah+4L3+pUv\nVwHJnHbaFksoFHIZKlTeFm2dyzsUMx9JN5LCMQyqGn3ORJTWVlCyjZVjYbUE\nRXkZfcIOEr25oZ2nBByr4Plxv8zCebVyIcXxH5bUknF84CZqYefvYQXL+EBa\nn72W73qcWsWxkmYF82p0io9csrBLIWaW8m3Pc4jFgMW65W3aHwDO7YwHsscM\nWuObsmeQtu1Cu//BkjCmNiLzceY+5o/hMKpXZGrj5ZXWb7Sa9ks6R+8dwwH7\nDh1fVuJkmc/ybiVP5Qlg4j37KaVIBgPKHQDh5b3DN6mU3nayF+hPnBqBQm8X\nK1uY\r\n=zVcL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgru2G9ddPV3jS8gZOAMlGwgJRHjY+U8Zo13M4CWdbWwIgFXKtcVA2CBW/vDp1DPZ7N2N9lHX+rgA2UgjDU//Y5q4="}]},"maintainers":[{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongoose-format-fields_0.4.2_1534232404224_0.8115249292111049"},"_hasShrinkwrap":false},"0.4.3":{"name":"mongoose-format-fields","description":"A plugin for Mongoose that formats the output of a model depending on the tags associated","version":"0.4.3","author":{"name":"Flavio Del Bianco","email":"info@flaviodelbianco.com"},"keywords":["mongodb","mongoose","plugin","format","fields","tags"],"repository":{"type":"git","url":"git://github.com/flaviodelbianco/mongoose-format-fields.git"},"dependencies":{},"license":"MIT","engine":{"node":">= 0.6"},"devDependencies":{"mongoose":"^4.11.9"},"gitHead":"8bbb81cf26d288df386847e5bfeac92a4fc23fc1","bugs":{"url":"https://github.com/flaviodelbianco/mongoose-format-fields/issues"},"homepage":"https://github.com/flaviodelbianco/mongoose-format-fields#readme","_id":"mongoose-format-fields@0.4.3","_npmVersion":"6.0.1","_nodeVersion":"6.11.4","_npmUser":{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"},"dist":{"integrity":"sha512-4GVMV3nki6OBOi/oC1GzUboMC1wbkQtVn4qw1VkGXzMc44NapwT+o0YXi5GiEo7VWGxTu8NQwwJRXUhaBaoG/Q==","shasum":"35e4671bef48e9ef47ac831a33cb14071fa15024","tarball":"https://registry.npmjs.org/mongoose-format-fields/-/mongoose-format-fields-0.4.3.tgz","fileCount":3,"unpackedSize":11750,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbkp6jCRA9TVsSAnZWagAAUBQP/1dn6mmzKKWv0E37iTOW\nigyCjOaxtFux5IMuggTPbNXPayl4GDfa0P6Ys0n8nRiq6G4312/yj39z+Uu3\nA69aJ34YSF4dLvl0CipVaL/6J0PmuCL6oaKTs2tjwnsY6BtEvWJOXFU3qVtr\n/kud9eLfaJRKZwi5ncCuD7utw4oYMKwKDoF/o5zS6MFIq5WXElIIfaVOIMOX\nWytAuXfiSnSV+4wM8p410MLBaGo5YbWfWDvfQ1Rx5jB/QwPby0myGntVnSDh\n0Tjk6ewvyCU4NBiJNH61XddX1xgy+7TO4ZbkG+NIFK5QsVVLqdsIgIjSAngO\nNTI5DcmQM7hkR0jNbwS522gvtYnyJX5WkVZRQWBFyBlsEJOuwGbxQYv6MA6y\n45othbxHb1WiZL5XzfzHNzxEX64JsdSRQuyBEzG5BlXoDMmPZN1LLbHq1Q67\n4xldkMNgfji1l78h9UD+6nF/hreAk0l+TwplIg0MrthRqTTE820dO3fsQdao\nDepX37oCK914xmoLQ7U6KA+7/kARigUe23wGbqWMS0qIPaeftGPQkKNEC2yN\nQeIxO0VCEElmuG4IxVQpuThxXKr15++zSJJ5h0DP4QVfLNNTuzaoBL3shrZD\n2vnwpmJ1LTuO7zoDvrW1VqF5/ip6PCvt64R7iiYQU41S9s7vhrt/NkBYlOTb\nii7l\r\n=wxiY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXVtd84S4k/9I4kzxLpuDm3WIdF/RtLv/6rjIJptRooQIgdSTCvm+cH2R6ykdUGH3UAUttTPLiS8zmp86mnnV80Wg="}]},"maintainers":[{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongoose-format-fields_0.4.3_1536335522757_0.9212900394745629"},"_hasShrinkwrap":false},"0.4.4":{"name":"mongoose-format-fields","description":"A plugin for Mongoose that formats the output of a model depending on the tags associated","version":"0.4.4","author":{"name":"Flavio Del Bianco","email":"info@flaviodelbianco.com"},"keywords":["mongodb","mongoose","plugin","format","fields","tags"],"repository":{"type":"git","url":"git://github.com/BizAway/mongoose-format-fields.git"},"dependencies":{},"license":"MIT","engine":{"node":">= 0.6"},"devDependencies":{"mongoose":"^4.11.9"},"gitHead":"1edd9edfa3591254d5f1aa46bf6c91563ea3d1a3","bugs":{"url":"https://github.com/BizAway/mongoose-format-fields/issues"},"homepage":"https://github.com/BizAway/mongoose-format-fields#readme","_id":"mongoose-format-fields@0.4.4","_nodeVersion":"12.21.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-pbMvdb2+MwYVpSy1YEWNzjcPBcrg4eUFDZmo3j5XIlgCsEayUDZCW1HYwI/XXRhTvzWz/FVdgKIZ+NZ30nVHgw==","shasum":"bc2c7f343fe684e1c876cc2cdb8bab96ea806b2a","tarball":"https://registry.npmjs.org/mongoose-format-fields/-/mongoose-format-fields-0.4.4.tgz","fileCount":4,"unpackedSize":12477,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzvDzCRA9TVsSAnZWagAAbhgP/jyad4ue4IEwdjbDEgy5\nt29zT+exjQ3P4vnpTKGe96uQ0BuvNEnq0bXjYShZUMQ6C+BX0iucop1UNGkm\nX4jcnflKuiUzBTAhVlKMj6alLJPnWlsA9CS5nt9KI9d26cN1V2HGuSc1VeB2\nW/8H44uDFFeQlXdnNIYPNrlLv5lRVC5fJcm2+FQS9nyLQPS+ZHtYx1qDsBgl\nPxYtVkVZhOYBhR4AKzTKtYOgvPWWT/Ou61oEbamcl2Eb2riidv9mqX4Yd/Pd\nn/gw1QLbkIVkyD2C9ov7JZ0pgd/59YjiugdqxTVoITGSXyL+Yu7CQzlpbxu5\ngfYweodDVtFzjmF19DZwSOQw0Uncu410TTr/GIryqbolffU2F8WKZ7Rm8p2t\nklLVQgWkcmWpc+08etjbuU40XI/jDLq7djdR0T+wc1oW6uZUi6IvRE258Var\nwZahsh3wwEL6WV1cmbfjlVCqAUODMWiODqv0fTYy+lrL3yase7mZ7K70TRbf\n9C3x8tfloTO0Dkm1HuomqL2rQRBKtY0ey2CodQrwe2OGNaZHG9Bny9u2tWwC\nXN2xOrCa6w4Ga4/x54LsQuDVwRHO9mF/NvxyOIkY7tffxiy/nDY3SID/Nw/m\ns8nx5wFgQ6w4IMNz+6nW+qc6PokcGGwZl0HFnmnDO19Yvoc2rDG1Xl7hdsau\nLV99\r\n=F7qt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCP+wx0psE3zDLCW8YMqaTBmtTYI9kyuV2sKVuYJ8a6gAIgZtv7Sk/8z/aWvK118qJz/A4Jnjf3BTSVe/OvwyvHmt8="}]},"_npmUser":{"name":"ussliberty","email":"info@alessiodalbianco.me"},"directories":{},"maintainers":[{"name":"flaviodelbianco","email":"info@flaviodelbianco.com"},{"name":"ussliberty","email":"info@alessiodalbianco.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongoose-format-fields_0.4.4_1640952051591_0.9047080896174815"},"_hasShrinkwrap":false}},"readme":"mongoose-format-fields\n======================\n\nA plugin for [Mongoose](https://github.com/LearnBoost/mongoose) that formats the output of a model depending on the tags associated.\n\n## Installation\n\n`npm install mongoose-format-fields`\n\n## Usage\nYou must first implement the plugin on your model and then you can start to add the `tags` attribute to your field options. You can also set tags rules at schema level, check other examples below.\nYou can use your own words and criteria. It accepts a single string or an array of string.\n\n```javascript\nvar format_fields = require('mongoose-format-fields');\nvar UserSchema = new Schema({\n    username: {type: String, tags: 'public' }, // tags as a single string\n    email: {type: String, tags: ['owner', 'admin'] }, // tags as array\n    password: {type: String } // no tags, will never be showed\n});\nUserSchema.plugin(format_fields);\n```\n\nYour model now has the additional built-in method `format()` that returns a new object with only the fields that match the input tags.\n\n```javascript\nvar User = mongoose.model('User');\nUser.findOne({ username: 'example' }, function (err, user) {\n    var output_public = user.format();\n    console.log(output_public); // will output only fields with the public tag\n\n    var output_owner = user.format(['owner']);\n    console.log(output_owner); // will output only fields with the public and owner tag\n\n    var output_admin = user.format(['admin']);\n    console.log(output_admin); // will output only fields with the public and admin tag\n\n    var output_admin_owner = user.format(['admin', 'owner']);\n    console.log(output_admin_owner); // will output only fields with the public, admin and owner tag\n});\n```\n## Examples\n\nThe parameter `tags` can be set at field level or at schema level.\nUse the dot notation to refer to subdocuments and the `$` to refer to arrays like in the example below.\n\n```javascript\nvar format_fields = require('mongoose-format-fields');\n\nvar UserSchema = new Schema({\n    username: {type: String, tags: ['public'] }, // tags on field level\n    is_active: {type: Boolean},\n    settings: {\n        my_setting: {type: Boolean}\n    },\n    emails: [mongoose.Schema({\n        email: {type: String}\n    }],\n    password: {type: String } // never show on the outputs\n});\nUserSchema.plugin(format_fields);\n\n// Add tags at schema level\nUserSchema.addTagsSchema({\n    '_id': ['owner'], // add tags also to the buit-in _id field\n    'is_active': ['owner'],\n    'settings.my_setting': ['owner'], // add tags to subdocuments\n    'emails.$.email': ['public'] // add tags to a subdocument field\n});\n```\n","maintainers":[{"email":"service.npm@bizaway.com","name":"bizawayuser"},{"email":"info@alessiodalbianco.me","name":"ussliberty"},{"email":"flavio@bizaway.com","name":"flaviodelbianco"}],"time":{"modified":"2022-12-13T08:32:57.529Z","created":"2014-09-16T08:22:46.138Z","0.1.0":"2014-09-16T08:22:48.295Z","0.1.1":"2014-11-18T00:41:12.247Z","0.1.2":"2014-11-18T00:49:55.061Z","0.1.3":"2014-12-10T15:04:28.619Z","0.2.0":"2017-03-25T06:30:51.941Z","0.3.1":"2017-09-02T15:36:40.153Z","0.3.2":"2017-09-03T08:19:58.192Z","0.3.3":"2017-09-03T08:24:34.855Z","0.3.4":"2017-09-03T09:10:47.104Z","0.4.0":"2018-08-13T15:34:30.634Z","0.4.1":"2018-08-13T17:02:26.706Z","0.4.2":"2018-08-14T07:40:04.311Z","0.4.3":"2018-09-07T15:52:02.919Z","0.4.4":"2021-12-31T12:00:51.737Z"},"readmeFilename":"README.md","keywords":["mongodb","mongoose","plugin","format","fields","tags"],"repository":{"type":"git","url":"git://github.com/BizAway/mongoose-format-fields.git"},"author":{"name":"Flavio Del Bianco","email":"info@flaviodelbianco.com"},"bugs":{"url":"https://github.com/BizAway/mongoose-format-fields/issues"},"license":"MIT","users":{"flaviodelbianco":true},"homepage":"https://github.com/BizAway/mongoose-format-fields#readme"}