{"_id":"moldy-file-adapter","_rev":"33-b7d9274ebf64a9722702093024b1dbc4","name":"moldy-file-adapter","description":"A file adapter for `Moldy`","dist-tags":{"latest":"1.1.1"},"versions":{"0.0.2":{"name":"moldy-file-adapter","version":"0.0.2","description":"- [moldy-file-adapter](#moldy-file-adapter)      - [create](#moldy-file-adapter-create)      - [get](#moldy-file-adapter-get)      - [collection](#moldy-file-adapter-collection)      - [save](#moldy-file-adapter-save)      - [destroy](#moldy-file-adapter-","main":"src/index.js","scripts":{"test":"mocha test/readme.js","posttest":"mocha test/readme.js -R markdown > README.md"},"repository":{"type":"git","url":"https://github.com/davidtsuji/moldy-file-adapter"},"author":{"name":"David Tsuji"},"license":"MIT","bugs":{"url":"https://github.com/davidtsuji/moldy-file-adapter/issues"},"homepage":"https://github.com/davidtsuji/moldy-file-adapter","devDependencies":{"mocha":"^1.18.2","should":"^3.1.4","gulp":"^3.5.6","gulp-shell":"^0.2.4","underscore":"^1.6.0","moldy":"0.0.22"},"dependencies":{"sc-is":"0.0.3","sc-haskey":"0.0.2","sc-cast":"0.0.4","file-db":"0.0.2","underscore":"^1.6.0","fs-extra":"^0.8.1"},"_id":"moldy-file-adapter@0.0.2","dist":{"shasum":"17682a2b646dd221799280d521bd8a4a50ca5f80","tarball":"https://registry.npmjs.org/moldy-file-adapter/-/moldy-file-adapter-0.0.2.tgz","integrity":"sha512-sy6bJC50FzG7FcKy4h3DhPFsA9rR58Gd0n9gOFqTyOxNijKu7ijhE52oFTPZ2/aWhWttFQngAyoG1nfOxS5oQA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDYGL/qIfKxXP/uCDdVELIEAz1MXjUh1PiotmFQeGnpGAiEAt9iJpLWDXA0ewfjzlEeOOF35Kl4dIZZO0D3fURPyLzc="}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"davidtsuji","email":"david@flodge.com"},"maintainers":[{"name":"davidtsuji","email":"david@flodge.com"}]},"0.0.3":{"name":"moldy-file-adapter","version":"0.0.3","description":"- [moldy-file-adapter](#moldy-file-adapter)      - [create](#moldy-file-adapter-create)      - [get](#moldy-file-adapter-get)      - [collection](#moldy-file-adapter-collection)      - [save](#moldy-file-adapter-save)      - [destroy](#moldy-file-adapter-","main":"src/index.js","scripts":{"test":"mocha test/readme.js","posttest":"mocha test/readme.js -R markdown > README.md"},"repository":{"type":"git","url":"https://github.com/davidtsuji/moldy-file-adapter"},"author":{"name":"David Tsuji"},"license":"MIT","bugs":{"url":"https://github.com/davidtsuji/moldy-file-adapter/issues"},"homepage":"https://github.com/davidtsuji/moldy-file-adapter","devDependencies":{"mocha":"^1.18.2","should":"^3.1.4","gulp":"^3.5.6","gulp-shell":"^0.2.4","underscore":"^1.6.0","moldy":"0.0.22"},"dependencies":{"sc-is":"0.0.3","sc-haskey":"0.0.2","sc-cast":"0.0.4","file-db":"0.0.2","underscore":"^1.6.0","fs-extra":"^0.8.1"},"_id":"moldy-file-adapter@0.0.3","dist":{"shasum":"b3ab7f340aac5fd5ec2f594cdf8feec51c83450c","tarball":"https://registry.npmjs.org/moldy-file-adapter/-/moldy-file-adapter-0.0.3.tgz","integrity":"sha512-HMgZaayrr3V3S2UAIc1ijb+CmtkHqNN2POcYPVIyaHjU9I2E7lszyBmdye6+w4DLygxDdVpwsMdQHNaGzcTEsQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGk11MQj7I0PE6tAm8VOg0Adh2WKwYy2sXzU3JgI1CxoAiEAsYQKJ9QCdeAyoXzakT2j0i2tpna+drTytsxgWK0qLbg="}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"davidtsuji","email":"david@flodge.com"},"maintainers":[{"name":"davidtsuji","email":"david@flodge.com"}]},"0.0.4":{"name":"moldy-file-adapter","version":"0.0.4","description":"- [moldy-file-adapter](#moldy-file-adapter)      - [create](#moldy-file-adapter-create)      - [get](#moldy-file-adapter-get)      - [collection](#moldy-file-adapter-collection)      - [save](#moldy-file-adapter-save)      - [destroy](#moldy-file-adapter-","main":"src/index.js","scripts":{"test":"mocha test/readme.js","posttest":"mocha test/readme.js -R markdown > README.md"},"repository":{"type":"git","url":"https://github.com/davidtsuji/moldy-file-adapter"},"author":{"name":"David Tsuji"},"license":"MIT","bugs":{"url":"https://github.com/davidtsuji/moldy-file-adapter/issues"},"homepage":"https://github.com/davidtsuji/moldy-file-adapter","devDependencies":{"mocha":"^1.18.2","should":"^3.1.4","gulp":"^3.5.6","gulp-shell":"^0.2.4","underscore":"^1.6.0","moldy":"0.0.22","gulp-jshint":"^1.5.3","jshint-stylish":"^0.1.5"},"dependencies":{"sc-is":"0.0.3","sc-haskey":"0.0.2","sc-cast":"0.0.4","file-db":"0.0.2","underscore":"^1.6.0","fs-extra":"^0.8.1"},"_id":"moldy-file-adapter@0.0.4","dist":{"shasum":"4179790a7277c2ff678cb50521bf1e35dadcc4c3","tarball":"https://registry.npmjs.org/moldy-file-adapter/-/moldy-file-adapter-0.0.4.tgz","integrity":"sha512-hDmJcJOghMa2m6mnd/kQ/9gwfIKe7vvTMHQsjOcxbolNkpKf4TjROHoy02h1+3JXlvbT/eRDl+M3/BEudfJxrA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8SbGZkf09w6ipVwzZ6zzFpg+2L9HBL86YS9c7gbRprAIhAMkIZTr3nBzegLsA+HnIlA6qSlNFT9Dyf63zrzfHgzBe"}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"davidtsuji","email":"david@flodge.com"},"maintainers":[{"name":"davidtsuji","email":"david@flodge.com"}]},"0.0.5":{"name":"moldy-file-adapter","version":"0.0.5","description":"A file adapter for `Moldy`","main":"src/index.js","scripts":{"test":"mocha test/readme.js","posttest":"mocha test/readme.js -R markdown > README.md"},"repository":{"type":"git","url":"https://github.com/davidtsuji/moldy-file-adapter"},"author":{"name":"David Tsuji"},"license":"MIT","bugs":{"url":"https://github.com/davidtsuji/moldy-file-adapter/issues"},"homepage":"https://github.com/davidtsuji/moldy-file-adapter","devDependencies":{"mocha":"^1.18.2","should":"^3.1.4","gulp":"^3.5.6","gulp-shell":"^0.2.4","underscore":"^1.6.0","moldy":"0.0.22","gulp-jshint":"^1.5.3","jshint-stylish":"^0.1.5"},"dependencies":{"sc-is":"0.0.3","sc-haskey":"0.0.2","sc-cast":"0.0.4","file-db":"0.0.2","underscore":"^1.6.0","fs-extra":"^0.8.1"},"_id":"moldy-file-adapter@0.0.5","dist":{"shasum":"564c9dfdc16275b28788702043232b5715268b39","tarball":"https://registry.npmjs.org/moldy-file-adapter/-/moldy-file-adapter-0.0.5.tgz","integrity":"sha512-N/75/Md3LL8eEAtBEuvypFlMt7Zv5MMOJz1jfxGWu7/j/sA7q9iKSbcOlVKbh9G49YGq8Bnwi4shRr1vm5+cWg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGjHl3k0xGVcWzG09wrCyMJb7sEsYD+JKvK/WWkjHKEEAiEAzW6EurdJxHzM64QN36rdCYBHkSZjqQaZTdn/WfPpfL8="}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"davidtsuji","email":"david@flodge.com"},"maintainers":[{"name":"davidtsuji","email":"david@flodge.com"}]},"0.0.6":{"name":"moldy-file-adapter","version":"0.0.6","description":"A file adapter for `Moldy`","main":"src/index.js","scripts":{"test":"mocha test/readme.js","posttest":"mocha test/readme.js -R markdown > README.md"},"repository":{"type":"git","url":"https://github.com/moldy/moldy-file-adapter"},"author":{"name":"David Tsuji"},"license":"MIT","bugs":{"url":"https://github.com/moldy/moldy-file-adapter/issues"},"homepage":"https://github.com/moldy/moldy-file-adapter","devDependencies":{"mocha":"^1.18.2","should":"^3.1.4","gulp":"^3.5.6","gulp-shell":"^0.2.4","underscore":"^1.6.0","moldy":"0.0.22","gulp-jshint":"^1.5.3","jshint-stylish":"^0.1.5"},"dependencies":{"sc-is":"0.0.3","sc-haskey":"0.0.2","sc-cast":"0.0.4","file-db":"0.0.2","underscore":"^1.6.0","fs-extra":"^0.8.1"},"_id":"moldy-file-adapter@0.0.6","dist":{"shasum":"34f2e9717580be2f6f90c47cf994e2095287c00c","tarball":"https://registry.npmjs.org/moldy-file-adapter/-/moldy-file-adapter-0.0.6.tgz","integrity":"sha512-h2vZRoiMzJGvv6aoeZVjgxs/AuT1qtBcKz2W++QGXEfyu5lEMgoW09yS6CGf4gIqTetaaG3ZGa1WTVxX/BB7Pg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAkx7KRmT9bG+75SxIkYccUsA+QzrEEIhmFPJ1u2HIVPAiA+KPqWCqOj5GN6COwUrQwjvhFeAUOeVLa29TA7gjj8yw=="}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"davidtsuji","email":"david@flodge.com"},"maintainers":[{"name":"davidtsuji","email":"david@flodge.com"}]},"0.0.7":{"name":"moldy-file-adapter","version":"0.0.7","description":"A file adapter for `Moldy`","main":"src/index.js","scripts":{"test":"mocha test/readme.js","posttest":"mocha test/readme.js -R markdown > README.md"},"repository":{"type":"git","url":"https://github.com/moldy/moldy-file-adapter"},"author":{"name":"David Tsuji"},"license":"MIT","bugs":{"url":"https://github.com/moldy/moldy-file-adapter/issues"},"homepage":"https://github.com/moldy/moldy-file-adapter","devDependencies":{"mocha":"^1.18.2","should":"^3.1.4","gulp":"^3.5.6","gulp-shell":"^0.2.4","underscore":"^1.6.0","moldy":"0.0.22","gulp-jshint":"^1.5.3","jshint-stylish":"^0.1.5"},"dependencies":{"sc-is":"0.0.3","sc-haskey":"0.0.2","sc-cast":"0.0.4","file-db":"0.0.2","underscore":"^1.6.0","fs-extra":"^0.8.1"},"_id":"moldy-file-adapter@0.0.7","dist":{"shasum":"6d2464fda622c019ddb5050cf01eb579ccf50601","tarball":"https://registry.npmjs.org/moldy-file-adapter/-/moldy-file-adapter-0.0.7.tgz","integrity":"sha512-Pv0SsMAMHV8Z5mHCfNoEvoQaPPggwyUDLRPL8oGCKbkzZjI4uAL1faajVw4CkFnvQmA+SX5x4h3/aug0aptQeA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6qjqOFjLVwNs6f+gpc/E5aqd/UKV5bLznLrEdGP6bvQIhAPVSUw/ePzcYv1FouMSGwtcOgQXkdGdTp/eOb9b63vF7"}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"davidtsuji","email":"david@flodge.com"},"maintainers":[{"name":"davidtsuji","email":"david@flodge.com"}]},"0.0.8":{"name":"moldy-file-adapter","version":"0.0.8","description":"A file adapter for `Moldy`","main":"src/index.js","scripts":{"test":"mocha test/readme.js","posttest":"mocha test/readme.js -R markdown > README.md"},"repository":{"type":"git","url":"https://github.com/moldy/moldy-file-adapter"},"author":{"name":"David Tsuji"},"license":"MIT","bugs":{"url":"https://github.com/moldy/moldy-file-adapter/issues"},"homepage":"https://github.com/moldy/moldy-file-adapter","devDependencies":{"mocha":"^1.18.2","should":"^3.1.4","gulp":"^3.5.6","gulp-shell":"^0.2.4","underscore":"^1.6.0","moldy":"0.0.22","gulp-jshint":"^1.5.3","jshint-stylish":"^0.1.5"},"dependencies":{"sc-is":"0.0.3","sc-haskey":"0.0.2","sc-cast":"0.0.4","file-db":"0.0.2","underscore":"^1.6.0","fs-extra":"^0.8.1"},"_id":"moldy-file-adapter@0.0.8","dist":{"shasum":"fc95ece62a1f31040e95ae2b8c58c18db816f5a6","tarball":"https://registry.npmjs.org/moldy-file-adapter/-/moldy-file-adapter-0.0.8.tgz","integrity":"sha512-TtJshH1B0opgXx84oQxDKZjnx87ytuGZcDJKnyQAW9HCew57Pfwalnhmp+OhbsGIhAH96avVjkMVChQOuagRgQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC5sds9p7LKZ3LMjpobuFzLYZPqMei7pUfkR9cxAjo5VAiBR1bh5U7sB9emIDHZWYs5pkW6qC9JwLrkS5P9DhtIWWw=="}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"davidtsuji","email":"david@flodge.com"},"maintainers":[{"name":"davidtsuji","email":"david@flodge.com"}]},"0.0.9":{"name":"moldy-file-adapter","version":"0.0.9","description":"A file adapter for `Moldy`","main":"src/index.js","scripts":{"test":"mocha test/readme.js","posttest":"mocha test/readme.js -R markdown > README.md"},"repository":{"type":"git","url":"https://github.com/moldy/moldy-file-adapter"},"author":{"name":"David Tsuji"},"license":"MIT","bugs":{"url":"https://github.com/moldy/moldy-file-adapter/issues"},"homepage":"https://github.com/moldy/moldy-file-adapter","devDependencies":{"gulp":"^3.5.6","gulp-jshint":"^1.5.3","gulp-shell":"^0.2.4","jshint-stylish":"^0.1.5","mocha":"^1.18.2","moldy":"0.0.25","should":"^3.1.4","underscore":"^1.6.0"},"dependencies":{"sc-is":"0.0.3","sc-haskey":"0.0.2","sc-cast":"0.0.4","file-db":"0.0.2","underscore":"^1.6.0","fs-extra":"^0.8.1"},"_id":"moldy-file-adapter@0.0.9","dist":{"shasum":"cb0d4656ac8c081f26f2adeadcac049f0308f7a2","tarball":"https://registry.npmjs.org/moldy-file-adapter/-/moldy-file-adapter-0.0.9.tgz","integrity":"sha512-omWIR1iHfnOmFoCUPjLAwzL4U8FvC8mS1wpx+i327SZ80EZja21rAI9YTHUoi48I1XIILQL8/Dinbj4YFVs/gw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGBMcEwAM1oVDzgEp1wbctccXSFQfMxblzq6c8Xr3CtLAiAZqzvYBNncIqQ253QTs3VY7cddQU1GOdb3aw3nY6Uduw=="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"davidtsuji","email":"david@flodge.com"},"maintainers":[{"name":"davidtsuji","email":"david@flodge.com"}]},"0.0.10":{"name":"moldy-file-adapter","version":"0.0.10","description":"A file adapter for `Moldy`","main":"src/index.js","scripts":{"test":"mocha test/readme.js","posttest":"mocha test/readme.js -R markdown > README.md"},"repository":{"type":"git","url":"https://github.com/moldy/moldy-file-adapter"},"author":{"name":"David Tsuji"},"license":"MIT","bugs":{"url":"https://github.com/moldy/moldy-file-adapter/issues"},"homepage":"https://github.com/moldy/moldy-file-adapter","devDependencies":{"async":"^0.7.0","gulp":"^3.5.6","gulp-jshint":"^1.5.3","gulp-shell":"^0.2.4","jshint-stylish":"^0.1.5","mocha":"^1.18.2","moldy":"0.0.25","should":"^3.1.4","underscore":"^1.6.0"},"dependencies":{"sc-is":"0.0.3","sc-haskey":"0.0.2","sc-cast":"0.0.4","file-db":"0.0.2","underscore":"^1.6.0","fs-extra":"^0.8.1"},"_id":"moldy-file-adapter@0.0.10","dist":{"shasum":"7137fe2bf282e7337f613e98cb1d73be9ecf2e95","tarball":"https://registry.npmjs.org/moldy-file-adapter/-/moldy-file-adapter-0.0.10.tgz","integrity":"sha512-ZLixIB85l2y8e/CStiZYfa7WkX1YUGVYH+80vTtExIvgzPj6+1F9j7hNbTmbLV3w7PTVozUdpfOyEJNr2F35Aw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHQ2RQPNWCJPoeXRwtZUxByXcLiaYUOzdEYefa9DeF8BAiEA+6rA5wV98hxZEZSCBvZ3Qf3eP26ASpb8J+cqRVtNdTM="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"davidtsuji","email":"david@flodge.com"},"maintainers":[{"name":"davidtsuji","email":"david@flodge.com"}]},"0.0.11":{"name":"moldy-file-adapter","version":"0.0.11","description":"A file adapter for `Moldy`","main":"src/index.js","scripts":{"test":"mocha test/readme.js","posttest":"mocha test/readme.js -R markdown > README.md"},"repository":{"type":"git","url":"https://github.com/moldy/moldy-file-adapter"},"author":{"name":"David Tsuji"},"license":"MIT","bugs":{"url":"https://github.com/moldy/moldy-file-adapter/issues"},"homepage":"https://github.com/moldy/moldy-file-adapter","devDependencies":{"gulp":"^3.5.6","gulp-jshint":"^1.5.3","gulp-shell":"^0.2.4","jshint-stylish":"^0.1.5","mocha":"^1.18.2","moldy":"0.0.25","should":"^3.1.4","underscore":"^1.6.0"},"dependencies":{"async":"^0.7.0","sc-is":"0.0.3","sc-haskey":"0.0.2","sc-cast":"0.0.4","file-db":"0.0.2","underscore":"^1.6.0","fs-extra":"^0.8.1"},"_id":"moldy-file-adapter@0.0.11","dist":{"shasum":"26a627e41a9e2e6ff67e0ccafd3a34029ee61061","tarball":"https://registry.npmjs.org/moldy-file-adapter/-/moldy-file-adapter-0.0.11.tgz","integrity":"sha512-7zY4ONic/M3IKpP1+ndcVcMAeuqNujH+BXg1BTSqha2WjhZahgAJtnCliVPVCtliVLDj4QrXCHCnse+gHcAlEA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCeYHiIkXQiD5zCBhSqk/4QYV0CvkAc7O4HgA+ullNUwwIgIQn85NFazL04k3KjmT1VfmwyOx1PxFakfsZJ7rYwBVc="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"davidtsuji","email":"david@flodge.com"},"maintainers":[{"name":"davidtsuji","email":"david@flodge.com"}]},"0.0.12":{"name":"moldy-file-adapter","version":"0.0.12","description":"A file adapter for `Moldy`","main":"src/index.js","scripts":{"test":"mocha test/readme.js","posttest":"mocha test/readme.js -R markdown > README.md"},"repository":{"type":"git","url":"https://github.com/moldy/moldy-file-adapter"},"author":{"name":"David Tsuji"},"license":"MIT","bugs":{"url":"https://github.com/moldy/moldy-file-adapter/issues"},"homepage":"https://github.com/moldy/moldy-file-adapter","devDependencies":{"gulp":"^3.5.6","gulp-jshint":"^1.5.3","gulp-shell":"^0.2.4","jshint-stylish":"^0.1.5","mocha":"^1.18.2","moldy":"0.0.25","should":"^3.1.4","underscore":"^1.6.0"},"dependencies":{"async":"^0.7.0","sc-is":"0.0.3","sc-haskey":"0.0.2","sc-cast":"0.0.4","file-db":"0.0.2","underscore":"^1.6.0","fs-extra":"^0.8.1"},"_id":"moldy-file-adapter@0.0.12","dist":{"shasum":"5466fe8a153b785810ab322c83b5159a71771a11","tarball":"https://registry.npmjs.org/moldy-file-adapter/-/moldy-file-adapter-0.0.12.tgz","integrity":"sha512-+HOwpdCEOZwlExsaP2jDcnZ0FAI8J5z/ndPRc+QCzKkpE4kVagcQCm3cnaklzFyMnBu0lQ8MbXBWYXsHV5Bb7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCB1cng5ve8jKPPZ2w98aUNMFsvdx+Q1IFGZEuQKr6xvgIgPMM/tjcojrTGVwDpqv+fr4zlC/QZkW11pTp4viRAssM="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"davidtsuji","email":"david@flodge.com"},"maintainers":[{"name":"davidtsuji","email":"david@flodge.com"}]},"1.0.0":{"name":"moldy-file-adapter","version":"1.0.0","description":"A file adapter for `Moldy`","main":"src/index.js","scripts":{"test":"mocha test/readme.js","posttest":"mocha test/readme.js -R markdown > README.md"},"repository":{"type":"git","url":"https://github.com/moldy/moldy-file-adapter"},"author":{"name":"David Tsuji"},"license":"MIT","bugs":{"url":"https://github.com/moldy/moldy-file-adapter/issues"},"homepage":"https://github.com/moldy/moldy-file-adapter","devDependencies":{"gulp":"^3.6.1","gulp-jshint":"^1.5.3","gulp-shell":"^0.2.4","jshint-stylish":"^0.1.5","mocha":"^1.18.2","moldy":"^1.0.0","should":"^3.1.4","underscore":"^1.6.0"},"dependencies":{"async":"^0.7.0","sc-is":"0.0.3","sc-haskey":"0.0.2","sc-cast":"0.0.4","file-db":"0.0.2","underscore":"^1.6.0","fs-extra":"^0.8.1"},"_id":"moldy-file-adapter@1.0.0","dist":{"shasum":"fb1fe968cb5ee54231eb6eb1bebf4cb203b90163","tarball":"https://registry.npmjs.org/moldy-file-adapter/-/moldy-file-adapter-1.0.0.tgz","integrity":"sha512-Gr5pXpzZGTgK9kSzrOccfGlgIT5ZJB/jA02E3nCXAiBdV8LF2okJyMw9uuIpheWdG57r+otBSj49K9Z91ZjbjA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD2f7j764ULsCXAsrPrtBqUGY5zb+XuvpZar8Ckb+mo9AIgdGZqI/lcKI+dLJu034E5nVYHJHEkG7uY59S/ytxuuWs="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"davidtsuji","email":"david@flodge.com"},"maintainers":[{"name":"davidtsuji","email":"david@flodge.com"}]},"1.0.1":{"name":"moldy-file-adapter","version":"1.0.1","description":"A file adapter for `Moldy`","main":"src/index.js","scripts":{"test":"mocha test/readme.js","posttest":"mocha test/readme.js -R markdown > README.md"},"repository":{"type":"git","url":"https://github.com/moldy/moldy-file-adapter"},"author":{"name":"David Tsuji"},"license":"MIT","bugs":{"url":"https://github.com/moldy/moldy-file-adapter/issues"},"homepage":"https://github.com/moldy/moldy-file-adapter","devDependencies":{"gulp":"^3.6.1","gulp-jshint":"^1.5.3","gulp-shell":"^0.2.4","jshint-stylish":"^0.1.5","mocha":"^1.18.2","moldy":"^1.0.0","should":"^3.1.4","underscore":"^1.6.0"},"dependencies":{"async":"^0.7.0","sc-is":"0.0.3","sc-haskey":"0.0.2","sc-cast":"0.0.4","file-db":"0.0.2","underscore":"^1.6.0","fs-extra":"^0.8.1"},"_id":"moldy-file-adapter@1.0.1","dist":{"shasum":"fb712ee8ce7cc25fd23f1bc19c548ae4af77c767","tarball":"https://registry.npmjs.org/moldy-file-adapter/-/moldy-file-adapter-1.0.1.tgz","integrity":"sha512-Mbr7/nByIRipGQLEsocRKiYtgn+mP0CONYJVFTO0EeSKRbfFczAwElDwi00vAH8v2x53g2L7XzKlgbI4SmnM9Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJHoc7QTg3Ag1fAud73uow6p7lrHsOr4Be5IIzjbNU2QIhAKNDUPHAovFo6u30w7heRejfq8RH199Nv6swIhV45I+X"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"davidtsuji","email":"david@flodge.com"},"maintainers":[{"name":"davidtsuji","email":"david@flodge.com"}]},"1.1.0":{"name":"moldy-file-adapter","version":"1.1.0","description":"A file adapter for `Moldy`","main":"src/index.js","scripts":{"test":"mocha test/readme.js","posttest":"mocha test/readme.js -R markdown > README.md"},"repository":{"type":"git","url":"https://github.com/moldy/moldy-file-adapter"},"author":{"name":"David Tsuji"},"license":"MIT","bugs":{"url":"https://github.com/moldy/moldy-file-adapter/issues"},"homepage":"https://github.com/moldy/moldy-file-adapter","devDependencies":{"gulp":"^3.6.1","gulp-jshint":"^1.5.3","gulp-shell":"^0.2.4","jshint-stylish":"^0.1.5","mocha":"^1.18.2","moldy":"^1.1.0","should":"^3.1.4","underscore":"^1.6.0"},"dependencies":{"async":"^0.7.0","sc-is":"0.0.3","sc-haskey":"0.0.2","sc-cast":"0.0.4","file-db":"0.0.2","underscore":"^1.6.0","fs-extra":"^0.8.1"},"_id":"moldy-file-adapter@1.1.0","dist":{"shasum":"b81deff26beec5088bc9d9ac1f0d51d2a8c1c863","tarball":"https://registry.npmjs.org/moldy-file-adapter/-/moldy-file-adapter-1.1.0.tgz","integrity":"sha512-KhXWkU9wuZHjKhnlv0u0JKmcUpdpx4ciAYW8g6ndjBS1PsucnHXaBdT8iXwwFh6X32P0VfiTu1yY736MOefMag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3HgxHhj0zW4GDLZvXzP6B1DMalgf79/U4O7zSPm+RdQIhAKhzVXumL1UzgNCUYjO1+i6x4/XBNZJJohWGjineaMWX"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"davidtsuji","email":"david@flodge.com"},"maintainers":[{"name":"davidtsuji","email":"david@flodge.com"}]},"1.1.1":{"name":"moldy-file-adapter","version":"1.1.1","description":"A file adapter for `Moldy`","main":"src/index.js","scripts":{"test":"mocha test/readme.js","posttest":"mocha test/readme.js -R markdown > README.md"},"repository":{"type":"git","url":"https://github.com/moldy/moldy-file-adapter"},"author":{"name":"David Tsuji"},"license":"MIT","bugs":{"url":"https://github.com/moldy/moldy-file-adapter/issues"},"homepage":"https://github.com/moldy/moldy-file-adapter","devDependencies":{"gulp":"^3.6.1","gulp-jshint":"^1.5.3","gulp-shell":"^0.2.4","jshint-stylish":"^0.1.5","mocha":"^1.18.2","moldy":"^1.1.4","should":"^3.1.4","underscore":"^1.6.0"},"dependencies":{"async":"^0.7.0","sc-is":"0.0.3","sc-haskey":"0.0.2","sc-cast":"0.0.4","file-db":"0.0.2","underscore":"^1.6.0","fs-extra":"^0.8.1","moldy-base-adapter":"0.0.4"},"_id":"moldy-file-adapter@1.1.1","dist":{"shasum":"f5395bcca9fde4382b965d99b69917fb065bf445","tarball":"https://registry.npmjs.org/moldy-file-adapter/-/moldy-file-adapter-1.1.1.tgz","integrity":"sha512-dWZsqySd7cN3lGQfzK0DyEpTLv3q4/g+ZQAqgNcapmzcHao4rnExQX/jfjrDyVI97bpGkCpq5fjx1xpW/yUYhQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH/55yjllTMUIltCihaa0VxjdjpZZDm+vsB0eNnB+5g+AiEAxBbHZ7Er/xWmEiAQYMbMEu2nO/rOuGPAtGrXEcDbdB4="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"davidtsuji","email":"david@flodge.com"},"maintainers":[{"name":"davidtsuji","email":"david@flodge.com"}]}},"readme":"# TOC\n   - [moldy-file-adapter](#moldy-file-adapter)\n     - [create](#moldy-file-adapter-create)\n     - [get](#moldy-file-adapter-get)\n     - [find](#moldy-file-adapter-find)\n     - [save](#moldy-file-adapter-save)\n     - [destroy](#moldy-file-adapter-destroy)\n<a name=\"\"></a>\n \n<a name=\"moldy-file-adapter\"></a>\n# moldy-file-adapter\nTell `Moldy` to use the `file` adapter.\n\n```js\n// Moldy.use( require('moldy-file-adapter') );\n```\n\n<a name=\"moldy-file-adapter-create\"></a>\n## create\nshould `create` by a property.\n\n```js\nvar personMoldy = Moldy.extend('person', {\n\tproperties: {\n\t\tname: '',\n\t\tage: ''\n\t}\n}).create();\npersonMoldy.name = 'David';\npersonMoldy.$save(function (_error) {\n\tpersonMoldy.name.should.eql('David');\n\t_done(_error);\n});\n```\n\n<a name=\"moldy-file-adapter-get\"></a>\n## get\ndefine a JSON schema.\n\n```js\nschema = {\n\tproperties: {\n\t\tname: 'string',\n\t\tfriends: [{\n\t\t\tkeyless: true,\n\t\t\tproperties: {\n\t\t\t\tname: {\n\t\t\t\t\ttype: 'string',\n\t\t\t\t\tdefault: ''\n\t\t\t\t},\n\t\t\t\tage: {\n\t\t\t\t\ttype: 'number',\n\t\t\t\t\tdefault: 0\n\t\t\t\t}\n\t\t\t}\n\t\t}]\n\t}\n};\n```\n\nshould create a new person so we can `get` it next.\n\n```js\nvar personMoldy = Moldy.extend('person', schema).create();\npersonMoldy.name = 'Mr David';\npersonMoldy.friends.push({\n\tname: 'leonie'\n});\npersonMoldy.friends[0].age = ' 33';\npersonMoldy.friends.push({\n\tname: 'max'\n});\npersonMoldy.$save(function (_error) {\n\tnewPersonId = personMoldy.id;\n\t_done(_error);\n});\n```\n\nshould `get` by a `id` from the previous example.\n\n```js\nvar personMoldy = Moldy.extend('person', schema);\npersonMoldy.$findOne({\n\tid: newPersonId\n}, function (_error, _david) {\n\tif (_error) {\n\t\treturn _done(_error);\n\t}\n\tvar david = _david;\n\tdavid.name.should.eql('Mr David');\n\tdavid.friends.should.be.an.Array.and.have.a.lengthOf(2);\n\tdavid.friends[0].name.should.equal('leonie');\n\tdavid.friends[0].age.should.equal(33);\n\tdavid.friends[1].name.should.equal('max');\n\tdavid.friends[1].age.should.equal(0);\n\tdavid.$destroy(_done);\n});\n```\n\n<a name=\"moldy-file-adapter-find\"></a>\n## find\nshould get an array of models.\n\n```js\nvar personMoldy = Moldy.extend('person', {\n\tproperties: {\n\t\tname: 'string',\n\t\tage: 'number'\n\t}\n});\npersonMoldy.$find(function (_error, _people) {\n\tif (_error) {\n\t\treturn _done(_error);\n\t}\n\t_people.should.be.an.Array;\n\t_people.length.should.greaterThan(0);\n\t_people.forEach(function (_person) {\n\t\t_person.should.be.a.Moldy;\n\t\t_person.should.have.a.property('id');\n\t\t_person.should.have.a.property('name');\n\t\t_person.should.have.a.property('age');\n\t\tObject.keys(_person.$json()).should.have.a.lengthOf(3);\n\t});\n\t_done();\n});\n```\n\n<a name=\"moldy-file-adapter-save\"></a>\n## save\ncreate a schema.\n\n```js\nschema = {\n\tproperties: {\n\t\tname: 'string',\n\t\tage: {\n\t\t\ttype: 'number',\n\t\t\tdefault: 0\n\t\t},\n\t\tfriends: [{\n\t\t\tkeyless: true,\n\t\t\tproperties: {\n\t\t\t\tname: {\n\t\t\t\t\ttype: 'string',\n\t\t\t\t\tdefault: ''\n\t\t\t\t},\n\t\t\t\tage: {\n\t\t\t\t\ttype: 'number',\n\t\t\t\t\tdefault: ''\n\t\t\t\t}\n\t\t\t}\n\t\t}]\n\t}\n};\n```\n\nshould `save` a model.\n\n```js\nvar personMoldy = Moldy.extend('person', schema);\npersonMoldy.$findOne(function (_error, _person) {\n\tif (_error) {\n\t\treturn _done(_error);\n\t}\n\tvar person = _person;\n\tkey = person.id;\n\tperson.name = 'Mr David';\n\tperson.friends.push({\n\t\tname: 'leonie'\n\t});\n\tperson.friends.push({\n\t\tname: 'max'\n\t});\n\tperson.friends.push({\n\t\tname: 'david'\n\t});\n\tperson.$save(function (_error) {\n\t\tif (_error) {\n\t\t\treturn _done(_error);\n\t\t}\n\t\tvar newPersonMoldy = Moldy.extend('person', schema);\n\t\tnewPersonMoldy.$findOne({\n\t\t\tid: key\n\t\t}, function (_error, newPerson) {\n\t\t\tnewPerson.id.should.equal(key);\n\t\t\tnewPerson.friends.splice(1, 1);\n\t\t\tnewPerson.$save(function (_error) {\n\t\t\t\tif (_error) {\n\t\t\t\t\treturn _done(_error);\n\t\t\t\t}\n\t\t\t\tvar newNewPersonMoldy = Moldy.extend('person', schema);\n\t\t\t\tnewNewPersonMoldy.$findOne({\n\t\t\t\t\tid: key\n\t\t\t\t}, function (_error, _newNewPersonMoldy) {\n\t\t\t\t\t_newNewPersonMoldy.friends.should.have.a.lengthOf(2);\n\t\t\t\t\t_newNewPersonMoldy.friends[1].name.should.equal('david');\n\t\t\t\t\t_done();\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t});\n});\n```\n\n<a name=\"moldy-file-adapter-destroy\"></a>\n## destroy\ndefine a JSON schema.\n\n```js\nschema = {\n\tproperties: {\n\t\tname: 'string'\n\t}\n};\n```\n\nshould `destroy` all the models.\n\n```js\nvar personMoldy = Moldy.extend('person', schema);\npersonMoldy.$find(function (_error, _guys) {\n\t_guys.length.should.be.greaterThan(0);\n\tvar deleteGuy = function (_guy) {\n\t\tpersonMoldy.$find(function (_error, _guys) {\n\t\t\tif (_guys.length === 0) {\n\t\t\t\treturn _done();\n\t\t\t}\n\t\t\tvar guy = Moldy.extend('person', schema);\n\t\t\tguy.$findOne({\n\t\t\t\tid: _guys[0].id\n\t\t\t}, function (_error, _guy) {\n\t\t\t\tif (_error) {\n\t\t\t\t\treturn _done(_error);\n\t\t\t\t}\n\t\t\t\t_guy.$destroy(function (_error) {\n\t\t\t\t\tif (_error) {\n\t\t\t\t\t\treturn _done(_error);\n\t\t\t\t\t}\n\t\t\t\t\tdeleteGuy();\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t};\n\tdeleteGuy();\n});\n```\n\n","maintainers":[{"name":"davidtsuji","email":"david@flodge.com"},{"name":"dervalp","email":"dervalp@gmail.com"}],"time":{"modified":"2022-06-20T04:53:58.199Z","created":"2014-04-06T23:00:36.244Z","0.0.2":"2014-04-06T23:00:36.244Z","0.0.3":"2014-04-06T23:03:32.101Z","0.0.4":"2014-04-06T23:19:22.511Z","0.0.5":"2014-04-06T23:27:33.744Z","0.0.6":"2014-04-06T23:37:05.679Z","0.0.7":"2014-04-06T23:53:36.888Z","0.0.8":"2014-04-09T22:36:00.274Z","0.0.9":"2014-04-12T23:18:24.699Z","0.0.10":"2014-04-13T06:18:28.880Z","0.0.11":"2014-04-13T08:41:41.733Z","0.0.12":"2014-04-13T22:46:29.175Z","1.0.0":"2014-04-26T06:30:27.970Z","1.0.1":"2014-04-26T06:33:33.523Z","1.1.0":"2014-04-27T22:29:11.154Z","1.1.1":"2014-05-03T22:56:39.869Z"},"homepage":"https://github.com/moldy/moldy-file-adapter","repository":{"type":"git","url":"https://github.com/moldy/moldy-file-adapter"},"author":{"name":"David Tsuji"},"bugs":{"url":"https://github.com/moldy/moldy-file-adapter/issues"},"license":"MIT","readmeFilename":"README.md"}