1.0.3 • Published 6 years ago

@mooncake-dev/check-symbols v1.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

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:

NameRequiredTypeDescription
receivedSymbolsYesStringA string of space separated symbols, e.g. "a b c".
requiredSymbolYesStringThe 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.

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago