1.1.2 • Published 8 years ago

fit-server-utils v1.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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

1.1.2

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago