fit-server-utils
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

Build Status

FIT-Server Utils

This package contains useful functions when dealing with the Sevenval FIT-Server.

Usage

npm install --save-dev fit-server-utils

API

interface IFITMark {
  key: string;
  value: string;
}

validateMark(mark: IFITMark): string

Validates a given mark. Returns null if valid and an error message if invalid.

getMarks(input: string): IFITMark[]

Gets all marks from a string.

updateMark(input: string, mark: IFITMark): string

Update or add a mark to a given string.

removeMark(input: string, markKey: string): string

Remove a mark from a string.

License

MIT, see LICENSE file

Dependencies (0)

    Dev Dependencies (10)

    Package Sidebar

    Install

    npm i fit-server-utils

    Weekly Downloads

    1

    Version

    1.1.2

    License

    MIT

    Last publish

    Collaborators

    • marvinhagemeister