ccr-aes-path

2.0.2 • Public • Published

CCR-AES-PATH

NPM Version NPM Downloads NPM License Install Size

Install

npm install ccr-aes-path --save

Usage

var cache = require('ccr-file')('test_cache');
// aes: aes key or aesid obj
var aeskey = require('ccr-ase-path')(cache, aes, aesidOptions);
 
cache.file('userid').then(function(file) {
    // mkdirp paths auto
    console.log(file);
    // print /tmp/node-ccr/test_cache/2018/0523/15929_0148/userid_1
 
    var sid = aeskey(file, 'userid');
    // print S1Agc3os25Nynh4uI2tl5ZNOlBN7yUU1PvF1RTUJ5WsGHzDoPE9RdgAZbKvvr7EP
    console.log(aeskey(sid, 'userid'));
    // print /tmp/node-ccr/test_cache/2018/0523/15929_0148/userid_1
});

Readme

Keywords

Package Sidebar

Install

npm i ccr-aes-path

Weekly Downloads

5

Version

2.0.2

License

MIT

Unpacked Size

4.57 kB

Total Files

4

Last publish

Collaborators

  • bacra