@media-master/string-utils
v1.0.0
Published
Several string utils
Readme
string-utils
Several string utils
import { bestMatch } from '@FMI-MediaMaster/string-utils'
const target = "Blapshemous";
const options = [
{
"name": "Blasphemous",
"id": 1,
},
{
"name": "Blasphemous 2",
"id": 2,
},
];
const best = bestMatch(target, options, { field: "name" });[!IMPORTANT] If you are using npm packages from GitHub, you also need to add the .npmrc file to your project so that all requests to install packages will go through GitHub Packages. When you route all package requests through GitHub Packages, you can use both scoped and unscoped packages from npmjs.org. For more information, see the GitHub documentation.
