UNPKG

shell-mirror

Version:

Access your Mac shell from any device securely. Perfect for mobile coding with Claude Code CLI, Gemini CLI, and any shell tool.

19 lines (16 loc) 401 B
var enabled = require('enabled'); /** * Creates a new Adapter. * * @param {Function} fn Function that returns the value. * @returns {Function} The adapter logic. * @public */ module.exports = function create(fn) { return function adapter(namespace) { try { return enabled(namespace, fn()); } catch (e) { /* Any failure means that we found nothing */ } return false; }; }