{"name":"tomas","version":"1.0.2","description":"save data to storage and read from it to speed up computing","main":"lib/tomas.js","dependencies":{"checkup":"~1.3.0","execon":"~1.2.0","ischanged":"~1.0.7","mkdirp":"~0.5.0"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/coderaiser/node-tomas.git"},"keywords":["storage","cache"],"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"http://coderaiser.github.io/"},"license":"MIT","bugs":{"url":"https://github.com/coderaiser/node-tomas/issues"},"engines":{"node":">=0.8"},"gitHead":"ad69a977f788c6a664ca37487677abb42b7db089","homepage":"https://github.com/coderaiser/node-tomas#readme","_id":"tomas@1.0.2","_shasum":"d1e47fcc17e616977b859ef1ffe497bb9dd3cf69","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"dist":{"shasum":"d1e47fcc17e616977b859ef1ffe497bb9dd3cf69","tarball":"http://registry-npm.ywwl.com/tomas/download/tomas-1.0.2.tgz","integrity":"sha512-fv/zuN1a2oM37KsSqQ/oXVxErbV426pNwIw6/LlQD3eOtSyKyfKNtfQK+vA4Hnl9YVx+nX/4i67/xHV1JM8G1A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA3oQFkDdmFhw93YKqzFGzl3CaS2Y2Jvya2vnTckmTO8AiEArP+Vof8Wydm7n5pWr8GrRgPVWAeYIZrhvWbbExCz5Wo="}],"size":2431,"noattachment":false,"key":"/tomas/-/tomas-1.0.2.tgz"},"directories":{},"readme":"# Tomas [![License][LicenseIMGURL]][LicenseURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![NPM version][NPMIMGURL]][NPMURL]\n\nSave data to storage and read from it to speed up computing.\n\n## Install\n\n```\nnpm i tomas --save\n```\n## How to use?\n\n```js\nconst fs = require('fs'),\nconst tomas = require('tomas'),\nconst path = './package.json',\nconst log = (error, data, str) => {\n     if (error)\n            console.error(error.message);\n        else\n            console.log(str, data);\n\n    return error;\n};\n\ntomas.check(path, (is) => {\n    if (is)\n        return tomas.read(name, (error, data) => {\n           log(error, data, 'tomas read:\\n');\n        });\n    \n    fs.readFile(name, 'utf8', (error, data) => {\n        if (!log(error))\n            tomas.write(name, data, (error) => {\n                log(error, data, 'tomas written:\\n');\n            });\n    });\n});\n```\n\n## License\n\nMIT\n\n[NPMIMGURL]:                https://img.shields.io/npm/v/tomas.svg?style=flat\n[BuildStatusIMGURL]:        https://img.shields.io/travis/coderaiser/node-tomas/master.svg?style=flat\n[DependencyStatusIMGURL]:   https://img.shields.io/david/coderaiser/node-tomas.svg?style=flat\n[LicenseIMGURL]:            https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat\n[NPM_INFO_IMG]:             https://nodei.co/npm/tomas.png?stars\n[NPMURL]:                   http://npmjs.org/package/tomas\n[LicenseURL]:               https://tldrlegal.com/license/mit-license \"MIT License\"\n[BuildStatusURL]:           http://travis-ci.org/coderaiser/node-tomas  \"Build Status\"\n[DependencyStatusURL]:      https://david-dm.org/coderaiser/node-tomas \"Dependency Status\"\n\n","publish_time":1433842819249,"_cnpm_publish_time":1433842819249,"dist-tags":{"latest":"2.0.3"}}