8889841cPK4[0g README.mdnuW+A# Dot Case [![NPM version][npm-image]][npm-url] [![NPM downloads][downloads-image]][downloads-url] [![Bundle size][bundlephobia-image]][bundlephobia-url] > Transform into a lower case string with a period between words. ## Installation ``` npm install dot-case --save ``` ## Usage ```js import { dotCase } from "dot-case"; dotCase("string"); //=> "string" dotCase("dot.case"); //=> "dot.case" dotCase("PascalCase"); //=> "pascal.case" dotCase("version 1.2.10"); //=> "version.1.2.10" ``` The function also accepts [`options`](https://github.com/blakeembrey/change-case#options). ## License MIT [npm-image]: https://img.shields.io/npm/v/dot-case.svg?style=flat [npm-url]: https://npmjs.org/package/dot-case [downloads-image]: https://img.shields.io/npm/dm/dot-case.svg?style=flat [downloads-url]: https://npmjs.org/package/dot-case [bundlephobia-image]: https://img.shields.io/bundlephobia/minzip/dot-case.svg [bundlephobia-url]: https://bundlephobia.com/result?p=dot-case PK4[Ht  dist/index.jsnuW+A"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.dotCase = void 0; var tslib_1 = require("tslib"); var no_case_1 = require("no-case"); function dotCase(input, options) { if (options === void 0) { options = {}; } return no_case_1.noCase(input, tslib_1.__assign({ delimiter: "." }, options)); } exports.dotCase = dotCase; //# sourceMappingURL=index.js.mapPK4[6CCdist/index.spec.jsnuW+A"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _1 = require("."); var TEST_CASES = [ ["", ""], ["test", "test"], ["test string", "test.string"], ["Test String", "test.string"], ["dot.case", "dot.case"], ["path/case", "path.case"], ["TestV2", "test.v2"], ["version 1.2.10", "version.1.2.10"], ["version 1.21.0", "version.1.21.0"], ]; describe("dot case", function () { var _loop_1 = function (input, result) { it(input + " -> " + result, function () { expect(_1.dotCase(input)).toEqual(result); }); }; for (var _i = 0, TEST_CASES_1 = TEST_CASES; _i < TEST_CASES_1.length; _i++) { var _a = TEST_CASES_1[_i], input = _a[0], result = _a[1]; _loop_1(input, result); } }); //# sourceMappingURL=index.spec.js.mapPK4[Edist/index.js.mapnuW+A{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,mCAA0C;AAI1C,SAAgB,OAAO,CAAC,KAAa,EAAE,OAAqB;IAArB,wBAAA,EAAA,YAAqB;IAC1D,OAAO,gBAAM,CAAC,KAAK,qBACjB,SAAS,EAAE,GAAG,IACX,OAAO,EACV,CAAC;AACL,CAAC;AALD,0BAKC","sourcesContent":["import { noCase, Options } from \"no-case\";\n\nexport { Options };\n\nexport function dotCase(input: string, options: Options = {}) {\n return noCase(input, {\n delimiter: \".\",\n ...options,\n });\n}\n"]}PK4[QD@ dist/index.spec.d.tsnuW+Aexport {}; PK4[9QKOOdist/index.spec.js.mapnuW+A{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../src/index.spec.ts"],"names":[],"mappings":";;AAAA,sBAA4B;AAE5B,IAAM,UAAU,GAAuB;IACrC,CAAC,EAAE,EAAE,EAAE,CAAC;IACR,CAAC,MAAM,EAAE,MAAM,CAAC;IAChB,CAAC,aAAa,EAAE,aAAa,CAAC;IAC9B,CAAC,aAAa,EAAE,aAAa,CAAC;IAC9B,CAAC,UAAU,EAAE,UAAU,CAAC;IACxB,CAAC,WAAW,EAAE,WAAW,CAAC;IAC1B,CAAC,QAAQ,EAAE,SAAS,CAAC;IACrB,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IACpC,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;CACrC,CAAC;AAEF,QAAQ,CAAC,UAAU,EAAE;4BACP,KAAK,EAAE,MAAM;QACvB,EAAE,CAAI,KAAK,YAAO,MAAQ,EAAE;YAC1B,MAAM,CAAC,UAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;;IAHL,KAA8B,UAAU,EAAV,yBAAU,EAAV,wBAAU,EAAV,IAAU;QAA7B,IAAA,qBAAe,EAAd,KAAK,QAAA,EAAE,MAAM,QAAA;gBAAb,KAAK,EAAE,MAAM;KAIxB;AACH,CAAC,CAAC,CAAC","sourcesContent":["import { dotCase } from \".\";\n\nconst TEST_CASES: [string, string][] = [\n [\"\", \"\"],\n [\"test\", \"test\"],\n [\"test string\", \"test.string\"],\n [\"Test String\", \"test.string\"],\n [\"dot.case\", \"dot.case\"],\n [\"path/case\", \"path.case\"],\n [\"TestV2\", \"test.v2\"],\n [\"version 1.2.10\", \"version.1.2.10\"],\n [\"version 1.21.0\", \"version.1.21.0\"],\n];\n\ndescribe(\"dot case\", () => {\n for (const [input, result] of TEST_CASES) {\n it(`${input} -> ${result}`, () => {\n expect(dotCase(input)).toEqual(result);\n });\n }\n});\n"]}PK4[yR9dist/index.d.tsnuW+Aimport { Options } from "no-case"; export { Options }; export declare function dotCase(input: string, options?: Options): string; PK4[`OOLICENSEnuW+AThe MIT License (MIT) Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. PK4[dist.es2015/index.jsnuW+Aimport { __assign } from "tslib"; import { noCase } from "no-case"; export function dotCase(input, options) { if (options === void 0) { options = {}; } return noCase(input, __assign({ delimiter: "." }, options)); } //# sourceMappingURL=index.js.mapPK4[dist.es2015/index.spec.jsnuW+Aimport { dotCase } from "."; var TEST_CASES = [ ["", ""], ["test", "test"], ["test string", "test.string"], ["Test String", "test.string"], ["dot.case", "dot.case"], ["path/case", "path.case"], ["TestV2", "test.v2"], ["version 1.2.10", "version.1.2.10"], ["version 1.21.0", "version.1.21.0"], ]; describe("dot case", function () { var _loop_1 = function (input, result) { it(input + " -> " + result, function () { expect(dotCase(input)).toEqual(result); }); }; for (var _i = 0, TEST_CASES_1 = TEST_CASES; _i < TEST_CASES_1.length; _i++) { var _a = TEST_CASES_1[_i], input = _a[0], result = _a[1]; _loop_1(input, result); } }); //# sourceMappingURL=index.spec.js.mapPK4[&dist.es2015/index.js.mapnuW+A{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAW,MAAM,SAAS,CAAC;AAI1C,MAAM,UAAU,OAAO,CAAC,KAAa,EAAE,OAAqB;IAArB,wBAAA,EAAA,YAAqB;IAC1D,OAAO,MAAM,CAAC,KAAK,aACjB,SAAS,EAAE,GAAG,IACX,OAAO,EACV,CAAC;AACL,CAAC","sourcesContent":["import { noCase, Options } from \"no-case\";\n\nexport { Options };\n\nexport function dotCase(input: string, options: Options = {}) {\n return noCase(input, {\n delimiter: \".\",\n ...options,\n });\n}\n"]}PK4[QD@ dist.es2015/index.spec.d.tsnuW+Aexport {}; PK4[|iidist.es2015/index.spec.js.mapnuW+A{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../src/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC;AAE5B,IAAM,UAAU,GAAuB;IACrC,CAAC,EAAE,EAAE,EAAE,CAAC;IACR,CAAC,MAAM,EAAE,MAAM,CAAC;IAChB,CAAC,aAAa,EAAE,aAAa,CAAC;IAC9B,CAAC,aAAa,EAAE,aAAa,CAAC;IAC9B,CAAC,UAAU,EAAE,UAAU,CAAC;IACxB,CAAC,WAAW,EAAE,WAAW,CAAC;IAC1B,CAAC,QAAQ,EAAE,SAAS,CAAC;IACrB,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IACpC,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;CACrC,CAAC;AAEF,QAAQ,CAAC,UAAU,EAAE;4BACP,KAAK,EAAE,MAAM;QACvB,EAAE,CAAI,KAAK,YAAO,MAAQ,EAAE;YAC1B,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;;IAHL,KAA8B,UAAU,EAAV,yBAAU,EAAV,wBAAU,EAAV,IAAU;QAA7B,IAAA,qBAAe,EAAd,KAAK,QAAA,EAAE,MAAM,QAAA;gBAAb,KAAK,EAAE,MAAM;KAIxB;AACH,CAAC,CAAC,CAAC","sourcesContent":["import { dotCase } from \".\";\n\nconst TEST_CASES: [string, string][] = [\n [\"\", \"\"],\n [\"test\", \"test\"],\n [\"test string\", \"test.string\"],\n [\"Test String\", \"test.string\"],\n [\"dot.case\", \"dot.case\"],\n [\"path/case\", \"path.case\"],\n [\"TestV2\", \"test.v2\"],\n [\"version 1.2.10\", \"version.1.2.10\"],\n [\"version 1.21.0\", \"version.1.21.0\"],\n];\n\ndescribe(\"dot case\", () => {\n for (const [input, result] of TEST_CASES) {\n it(`${input} -> ${result}`, () => {\n expect(dotCase(input)).toEqual(result);\n });\n }\n});\n"]}PK4[yR9dist.es2015/index.d.tsnuW+Aimport { Options } from "no-case"; export { Options }; export declare function dotCase(input: string, options?: Options): string; PK4[kY44 package.jsonnuW+A{ "name": "dot-case", "version": "3.0.4", "description": "Transform into a lower case string with a period between words", "main": "dist/index.js", "typings": "dist/index.d.ts", "module": "dist.es2015/index.js", "sideEffects": false, "jsnext:main": "dist.es2015/index.js", "files": [ "dist/", "dist.es2015/", "LICENSE" ], "scripts": { "lint": "tslint \"src/**/*\" --project tsconfig.json", "build": "rimraf dist/ dist.es2015/ && tsc && tsc -P tsconfig.es2015.json", "specs": "jest --coverage", "test": "npm run build && npm run lint && npm run specs", "size": "size-limit", "prepare": "npm run build" }, "repository": { "type": "git", "url": "git://github.com/blakeembrey/change-case.git" }, "keywords": [ "dot", "case", "period", "full", "stop", "convert", "transform" ], "author": { "name": "Blake Embrey", "email": "hello@blakeembrey.com", "url": "http://blakeembrey.me" }, "license": "MIT", "bugs": { "url": "https://github.com/blakeembrey/change-case/issues" }, "homepage": "https://github.com/blakeembrey/change-case/tree/master/packages/dot-case#readme", "size-limit": [ { "path": "dist/index.js", "limit": "450 B" } ], "jest": { "roots": [ "/src/" ], "transform": { "\\.tsx?$": "ts-jest" }, "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$", "moduleFileExtensions": [ "ts", "tsx", "js", "jsx", "json", "node" ] }, "publishConfig": { "access": "public" }, "dependencies": { "no-case": "^3.0.4", "tslib": "^2.0.3" }, "devDependencies": { "@size-limit/preset-small-lib": "^2.2.1", "@types/jest": "^24.0.23", "@types/node": "^12.12.14", "jest": "^24.9.0", "rimraf": "^3.0.0", "ts-jest": "^24.2.0", "tslint": "^5.20.1", "tslint-config-prettier": "^1.18.0", "tslint-config-standard": "^9.0.0", "typescript": "^4.1.2" }, "gitHead": "76a21a7f6f2a226521ef6abd345ff309cbd01fb0" } PK4[0g README.mdnuW+APK4[Ht  dist/index.jsnuW+APK4[6CCdist/index.spec.jsnuW+APK4[E_ dist/index.js.mapnuW+APK4[QD@  dist/index.spec.d.tsnuW+APK4[9QKOO dist/index.spec.js.mapnuW+APK4[yR9zdist/index.d.tsnuW+APK4[`OO;LICENSEnuW+APK4[dist.es2015/index.jsnuW+APK4[dist.es2015/index.spec.jsnuW+APK4[&Gdist.es2015/index.js.mapnuW+APK4[QD@ dist.es2015/index.spec.d.tsnuW+APK4[|iidist.es2015/index.spec.js.mapnuW+APK4[yR9#dist.es2015/index.d.tsnuW+APK4[kY44 i$package.jsonnuW+APK,