7.4.3 • Published 4 years ago

jsonotron-core-field-types v7.4.3

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

Jsonotron Core Field Types

A library of enum types and schema types for the Jsonotron system.

npm.io npm JavaScript Style Guide

This library is intended for use with the Jsonotron system.

Available types:

Enum Type NameDescription
booleanThe values true and false.
callingCodeInternational country dialing codes.
countryCodeInternational country codes.
currencyCodeInternational currency codes.
dayOfWeekThe days of the week.
languageCodeInternational language codes.
monthOfYearThe months of the year.
timeZoneInternational time zones.
yesNoThe values yes and no.
Schema Type NameDescription
addressAn international address.
dateA date in the form YYYY-MM-DD.
dateTimeLocalA date time in the form YYYY-MM-DDTHH:mm:ss+xx:xx. There must be a timezone component.
dateTimeUtcA date time in the form YYYY-MM-DDTHH:mm:ssZ. There is no timezone component required.
emailAddressAn email address.
floatAs per name.
geoJsonPointA point on Earth.
geoJsonPolygonA region on Earth.
hugeStringA string up to 4000 characters.
integerAs per name.
ipv4An IP address in IP v4 format.
ipv6An IP address is iP v6 format.
jsonPointerA pointer into a json document.
longStringA string up to 250 characters.
mediumStringA string up to 50 characters.
moneyAn amount of money.
negativeFloatAs per name.
negativeFloatOrZeroAs per name.
negativeIntegerAs per name.
negativeIntegerOrZeroAs per name.
objectAny object. It's better not to use this.
paymentCardNoA credit or debit card number.
positiveFloatAs per name.
positiveFloatOrZeroAs per name.
positiveIntegerAs per name.
positiveIntegerOrZeroAs per name.
shortStringA string up to 20 characters.
stringA string.
telephoneNoAn international telephone number.
timeA time in the format HH:mm:ss.
timestampA unix timestamp.
uuidA unique identifier.
webAddressA url that is prefixed with either https or https.
what3wordsThe what 3 words addressing system.

Installation

npm install jsonotron-core-field-types --save

Development

Code base adheres to the rules chosen by https://standardjs.com/. Code is formatted with 2 spaces.

Tests are written using Jest with 100% coverage.

npm test

Continuous Deployment

Any pushes or pull-requests on non-master branches will trigger the test runner. Any pushes to master will cause the library to be re-published.

7.4.3

4 years ago

7.4.2

4 years ago

7.4.1

4 years ago

7.4.0

4 years ago

7.3.0

4 years ago

7.2.1

4 years ago

7.2.0

4 years ago

7.1.0

4 years ago

7.0.0

4 years ago

6.0.1

4 years ago

6.0.0

4 years ago