How to Parse and Validate a Full Name in Node.JS

npm install cloudmersive-validate-api-client --save
var CloudmersiveValidateApiClient = require('cloudmersive-validate-api-client');var defaultClient = CloudmersiveValidateApiClient.ApiClient.instance;// Configure API key authorization: Apikeyvar Apikey = defaultClient.authentications['Apikey'];Apikey.apiKey = 'YOUR API KEY';// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)//Apikey.apiKeyPrefix = 'Token';var apiInstance = new CloudmersiveValidateApiClient.NameApi();var input = new CloudmersiveValidateApiClient.FullNameValidationRequest(); // FullNameValidationRequest | Validation request informationvar callback = function(error, data, response) {if (error) {console.error(error);} else {console.log('API called successfully. Returned data: ' + data);}};apiInstance.nameValidateFullName(input, callback);
{
"Successful": true,
"ValidationResult_FirstName": "ValidFirstName",
"ValidationResult_LastName": "ValidUnknownLastName",
"Title": "Sir",
"FirstName": "Jonathan",
"MiddleName": "Albus",
"LastName": "van Hoeg",
"NickName": null,
"Suffix": "Jr",
"DisplayName": "Jonathan Albus van Hoeg"
}

--

--

--

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Google Summer of Code

My First Docker

How I created the Search algorithm myself

Top Destinations with the Highest Number of Software Developers

Fixing CORS error when integrating Angular 7 and Play Framework 2.7

ERP as State Transition System

Python Learning (Part 2)

Scan a Website for Malicious Content and Threats in Java

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Cloudmersive

Cloudmersive

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

More from Medium

How to Convert an Audio File to .WAV using JavaScript

Parsing site with Node JS

Closed Environment Temperature Control System.

Docker