How to use the mojiscript.anyPass function in mojiscript

To help you get started, we’ve selected a few mojiscript examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github joelnet / the-terminal-daemon / src / commands / noop / noop.command.js View on Github external
//@ts-check
const { anyPass } = require('mojiscript')
const { isCommand } = require('../../lib/command')

/**
 * @type { import('../../types/strategy').StrategyTest }
 */
const test = anyPass([isCommand(''), isCommand('noop')])

/**
 * @type { import('../../types/strategy').StrategyExec }
 */
const exec = () => []

module.exports = {
  sort: 10,
  test,
  exec
}

mojiscript

MojiScript is an Async First, opinionated, and functional language designed to have 100% compatibility with JavaScript engines.

MIT
Latest version published 4 years ago

Package Health Score

51 / 100
Full package analysis