@mooncake-dev/check-symbols

1.0.3 • Public • Published

Check Symbols

Checks if a string of space separated symbols includes a specific one or not.

Installation

npm i @mooncake-dev/check-symbols

API

The module exposes a single function to check symbols.

checkSymbols(receivedSymbols, requiredSymbol)

Parameters:

Name Required Type Description
receivedSymbols Yes String A string of space separated symbols, e.g. "a b c".
requiredSymbol Yes String The symbol to check for, e.g. "b".

Returns:

Boolean. If the required symbol was found or not.

Usage

const checkSymbols = require('@mooncake-dev/check-symbols');
checkSymbols('a b c', 'e'); // false

Publish

For now we publish manually using:

npm publish --access public

Make sure:

  • You increment the npm version after you make code changes with npm version.
  • You're logged in.

More information can be found here.

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

    npm i @mooncake-dev/check-symbols

    Weekly Downloads

    5

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    3.77 kB

    Total Files

    4

    Last publish

    Collaborators

    • danillouz
    • dinostheo