{"name":"tomas","version":"2.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":{"lint":"eslint lib"},"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":">=4"},"gitHead":"12e0f04d96472f95276968c248c7607d66c7b53e","homepage":"https://github.com/coderaiser/node-tomas#readme","_id":"tomas@2.0.2","_npmVersion":"5.4.2","_nodeVersion":"8.6.0","_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"dist":{"integrity":"sha512-IqPlPO4ldadauio6iBEHhgOGWzrddtj4PxvVQT9xnjk8w1AQWzCMeWRYcl1oO7DDOecm3pGxjCRQEQfJwiIAgA==","shasum":"4409d3d39e26b87b22ecb23b7280a84ff6b46759","tarball":"http://registry-npm.ywwl.com/tomas/download/tomas-2.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDocK0kQYhZeXpzA/oH/t6vASH8x29EBTlcJCNCe3l6rgIgKHAgEOs0KinpnqPSWQVIX+oqNr93LuUAONtbbvNZ9lQ="}],"size":2866,"noattachment":false,"key":"/tomas/-/tomas-2.0.2.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tomas-2.0.2.tgz_1507547745845_0.9796582467388362"},"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":1507547746882,"_cnpm_publish_time":1507547746882,"dist-tags":{"latest":"2.0.3"}}