🚀 Socket Launch Week 🚀 Day 4: Introducing Historical Analytics.Learn More →

@zodash/format

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zodash/format - npm Package Compare versions

Comparing version

to
1.0.1-alpha.1

@@ -1,1 +0,1 @@

export declare const format: (pattern: string, map: Record<string, any>) => string;
export declare function format(pattern: string, map: Record<string, any>): string;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.format = (pattern, map) => {
function format(pattern, map) {
return pattern.replace(/{([^}]+)}/g, (_, key) => {
return typeof map[key] !== 'undefined' ? map[key] : '';
});
};
}
exports.format = format;
//# sourceMappingURL=format.js.map
{
"name": "@zodash/format",
"version": "1.0.1-alpha.0",
"version": "1.0.1-alpha.1",
"description": "format string with object values",

@@ -62,3 +62,4 @@ "keywords": [

"tsc": "tsc",
"test": "jest -w 1"
"test": "jest -w 1",
"coverage": "codecov"
},

@@ -68,3 +69,3 @@ "bugs": {

},
"gitHead": "cd45e2c12f19c4018f9e811072850651ca232959"
"gitHead": "19a958ce35ef33ee86028087f4614433e080bae0"
}

Sorry, the diff of this file is not supported yet