JSanitizer NuGet Library
Configurable sanitizer for XML and JSON string value through extension method.
NuGet: https://www.nuget.org/packages/JSanitizer/
Features:
1. Default sanitizer to replace password value
2. Sanitize with options
Requirements:
- .NET Core 3.1
- Visual Studio or VS Code
How to use:
- Go to Tools and select Manage Nuget Packages and Search for JSanitizer library.
- OR Install-Package JSanitizer -Version 3.0.1
Extension:
- {json string value}.SanitizeJsonValue(configPath)
- {xml string value}.SanitizeXmlValue(configPath)
- {xml string value}.SanitizeJsonValue(options)
- {json string value}.SanitizeXmlValue(options)
How to create your custom JSON configurations.
* Create folder with name **JSOptions** under your project then create json file with name **SanitizerOptions.json** under the said folder as your default configuration and follow the object format below.
{Project.Name}/JSOptions/SanitizerOptions.json

note: It will throw an exception if you use the default json or xml extension methods without providing default json configurations.
remarks: You can add more properties under Sensitivity for value masking.
Code implementations:
- Sanitize without options

2. Sanitize with options

Note: If you encounter error, please follow screenshot below:

Looking for a JOB? Signup @ jobbhy and be notified!
https://jobbhy.com
Want to post a JOB as employer? Contact and be one us!
https://www.jobbhy.com/#/contactus
Twitter: https://twitter.com/_EthanHunt07
LinkedIn: https://www.linkedin.com/feed/update/urn:li:activity:6556857396478734336
Facebook: https://www.facebook.com/groups/vuejsdevelopers/permalink/690896881322331/
Axios Refresh Token (A simple and straightforward request interceptor.)
https://www.npmjs.com/package/axios-jwtoken-refresher