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

Your Full Map To Github Recon And Leaks Exposure

REST API gaining popularity

Add polygon (MATIC) to MetaMask Wallet

Super Easy Nginx Site Creation for Local Laravel Development

How mob programming helped our team increase our focus and results

Android UI Automation, Jenkins and GenyMotion

Some thoughts for new software developers

If Access is Denied on Window 10 How to Fix it?

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

Git and Directory Junction (symbolic link) for development and deployment

Simple CRUD REST API with Blacksheep and Piccolo ORM

Web Stack Weekly — Issue #10

SonarQube — The Key To The Art Of Zen