Profile

Profile provides an interface to the current user profile.

Example

import { Profile } from 'dripcap';

Profile.setConfig('theme', 'base16-ocean-light');

Class Methods

Profile.getConfig(key)

  • key String
  • Returns: Any

Profile.setConfig(key,value)

  • key String
  • value Any

Profile.watchConfig(key,handler)

  • key String
  • handler Function
    • value Any

Profile.unwatchConfig(key,handler)

  • key String
  • handler Function

Profile.getKeymap()

  • Returns: Object

Returns a user-defined key map placed located in ~/.dripcap/profiles/default/keymap.json.

Profile.getPackageConfig(name)

Returns a Config object belongs to the package.

results matching ""

    No results matching ""