UNPKG

gis-tools-ts

Version:

A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.

15 lines 587 B
export * from './geometry.js'; export * from './object.js'; export * from './projection.js'; /** * Clean a string to remove whitespace, single and double quotes, and replace multiple spaces with a single space * @param str - string to clean * @returns - cleaned string */ export function cleanString(str) { return str .trim() // Remove whitespace at the start and end .replace(/^['"]|['"]$/g, '') // Remove single or double quotes from start and end .replace(/\s+/g, ' '); // Replace multiple spaces with a single space } //# sourceMappingURL=index.js.map