# All files / lib/client key.js

100% Statements 7/7
75% Branches 3/4
100% Functions 2/2
100% Lines 7/7

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22

    1x

    1x
    19x

    1x

    1x

    1x

    1x'use strict';

    Object.defineProperty(exports, "__esModule", {
      value: true
    });

    exports.default = function (opts) {
      return {
        gen: _callbackify2.default.variadic((0, _postmsgRpc.caller)('ipfs.key.gen', opts)),
        list: (0, _callbackify2.default)((0, _postmsgRpc.caller)('ipfs.key.list', opts)),
        rename: _callbackify2.default.variadic((0, _postmsgRpc.caller)('ipfs.key.rename', opts)),
        rm: _callbackify2.default.variadic((0, _postmsgRpc.caller)('ipfs.key.rm', opts))
      };
    };

    var _postmsgRpc = require('postmsg-rpc');

    var _callbackify = require('callbackify');

    var _callbackify2 = _interopRequireDefault(_callbackify);

    function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }