atriusmaps-node-sdk
Version:
This project provides an API to Atrius Personal Wayfinder maps within a Node environment. See the README.md for more information
2 lines (1 loc) • 381 B
JavaScript
import{pipeline as o,normalize as n,regex as r,regex_whitespace as t}from"./lang.js";const a=[r("[àáâãäå]"),"a",r("[èéêë]"),"e",r("[ìíîï]"),"i",r("[òóôõöő]"),"o",r("[ùúûüű]"),"u",r("[ýŷÿ]"),"y",r("ñ"),"n",r("[çc]"),"k",r("ß"),"s",r(" & ")," and "];function e(r){return r=""+r,o.call(this,n(r).toLowerCase(),!r.normalize&&a,t,!1)}export{e as encode};