🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

tomas

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tomas

save data to storage and read from it to speed up computing

Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Tomas

Save data to storage and read from it to speed up computing.

Install

npm i tomas --save

How to use?

var fs      = require('fs'),
    tomas   = require('tomas'),
    path    = 'coderaiser/node-tomas/package.json';

tomas.check(path, function(is) {
    if (is)
        tomas.read(name, function(error, data) {
            if (error)
                console.error(message);
            else
                console.log('tomas read:\n', data);
        });
    else
        fs.readFile(name, 'utf8', function(error, data) {
            if (error)
                console.error(error.message);
            else
                tomas.write(name, data, function(error) {
                    if (error)
                        console.error(data);
                    else
                        console.log('tomas written');
                });
        });
});

License

MIT

Keywords

storage

FAQs

Package last updated on 15 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts