{"_id":"swap-case","_rev":"105226","name":"swap-case","description":"Transform a string by swapping every character from upper to lower case, or lower to upper case","dist-tags":{"latest":"2.0.2"},"maintainers":[{"name":"blakeembrey","email":"hello@blakeembrey.com"}],"time":{"modified":"2021-06-03T10:37:54.000Z","created":"2014-03-24T22:53:02.534Z","2.0.2":"2020-12-02T00:31:47.334Z","2.0.1":"2019-12-06T03:05:39.306Z","2.0.0":"2019-12-01T06:19:05.302Z","1.1.2":"2015-12-16T00:10:28.458Z","1.1.1":"2015-05-11T23:35:42.300Z","1.1.0":"2015-01-12T08:46:18.961Z","1.0.2":"2014-08-23T22:18:12.948Z","1.0.1":"2014-08-17T21:27:52.562Z","1.0.0":"2014-08-17T19:34:07.055Z","0.0.1":"2014-03-24T22:53:02.534Z"},"users":{},"author":{"name":"Blake Embrey","email":"hello@blakeembrey.com","url":"http://blakeembrey.me"},"repository":{"type":"git","url":"git://github.com/blakeembrey/change-case.git"},"versions":{"2.0.2":{"name":"swap-case","version":"2.0.2","description":"Transform a string by swapping every character from upper to lower case, or lower to upper case","main":"dist/index.js","typings":"dist/index.d.ts","module":"dist.es2015/index.js","sideEffects":false,"jsnext:main":"dist.es2015/index.js","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":["swap","case","invert","convert","transform","lower","upper"],"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/swap-case#readme","size-limit":[{"path":"dist/index.js","limit":"100 B"}],"jest":{"roots":["<rootDir>/src/"],"transform":{"\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"publishConfig":{"access":"public"},"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"},"dependencies":{"tslib":"^2.0.3"},"gitHead":"76a21a7f6f2a226521ef6abd345ff309cbd01fb0","_id":"swap-case@2.0.2","_nodeVersion":"12.20.0","_npmVersion":"lerna/3.22.1/node@v12.20.0+x64 (darwin)","dist":{"shasum":"671aedb3c9c137e2985ef51c51f9e98445bf70d9","size":3473,"noattachment":false,"key":"/swap-case/-/swap-case-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/swap-case/download/swap-case-2.0.2.tgz"},"_npmUser":{"name":"blakeembrey","email":"hello@blakeembrey.com"},"directories":{},"maintainers":[{"name":"blakeembrey","email":"hello@blakeembrey.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swap-case_2.0.2_1606869107190_0.430494935179248"},"_hasShrinkwrap":false,"publish_time":1606869107334,"_cnpm_publish_time":1606869107334},"2.0.1":{"name":"swap-case","version":"2.0.1","description":"Transform a string by swapping every character from upper to lower case, or lower to upper case","main":"dist/index.js","typings":"dist/index.d.ts","module":"dist.es2015/index.js","sideEffects":false,"jsnext:main":"dist.es2015/index.js","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":["swap","case","invert","convert","transform","lower","upper"],"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/swap-case#readme","size-limit":[{"path":"dist/index.js","limit":"100 B"}],"jest":{"roots":["<rootDir>/src/"],"transform":{"\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"publishConfig":{"access":"public"},"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":"^3.7.2"},"dependencies":{"tslib":"^1.10.0"},"gitHead":"07b68e1a696a1a34090d4f1fc136b1bd467aaa3f","_id":"swap-case@2.0.1","_nodeVersion":"13.1.0","_npmVersion":"lerna/3.19.0/node@v13.1.0+x64 (darwin)","dist":{"shasum":"890acb2483fd2ab84f5013aa83b43233bc2e8c49","size":3469,"noattachment":false,"key":"/swap-case/-/swap-case-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/swap-case/download/swap-case-2.0.1.tgz"},"maintainers":[{"name":"blakeembrey","email":"hello@blakeembrey.com"}],"_npmUser":{"name":"blakeembrey","email":"hello@blakeembrey.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swap-case_2.0.1_1575601539171_0.4034420172844997"},"_hasShrinkwrap":false,"publish_time":1575601539306,"_cnpm_publish_time":1575601539306},"2.0.0":{"name":"swap-case","version":"2.0.0","description":"Transform a string by swapping every character from upper to lower case, or lower to upper case","main":"dist/index.js","typings":"dist/index.d.ts","module":"dist.es2015/index.js","sideEffects":false,"jsnext:main":"dist.es2015/index.js","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 && npm run size","size":"size-limit","prepare":"npm run build"},"repository":{"type":"git","url":"git://github.com/blakeembrey/change-case.git"},"keywords":["swap","case","invert","convert","transform","lower","upper"],"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/swap-case#readme","size-limit":[{"path":"dist/index.js","limit":"100 B"}],"jest":{"roots":["<rootDir>/src/"],"transform":{"\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"publishConfig":{"access":"public"},"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":"^3.7.2"},"gitHead":"55911ca17c2e0c964b9b84143e14e29ffc9ff499","_id":"swap-case@2.0.0","_nodeVersion":"13.1.0","_npmVersion":"lerna/3.19.0/node@v13.1.0+x64 (darwin)","dist":{"shasum":"f57c40a4282f5cd0b9a92f09b0ebecd9bfabdbcf","size":3318,"noattachment":false,"key":"/swap-case/-/swap-case-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/swap-case/download/swap-case-2.0.0.tgz"},"maintainers":[{"name":"blakeembrey","email":"hello@blakeembrey.com"}],"_npmUser":{"name":"blakeembrey","email":"hello@blakeembrey.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swap-case_2.0.0_1575181145084_0.50449400430162"},"_hasShrinkwrap":false,"publish_time":1575181145302,"_cnpm_publish_time":1575181145302},"1.1.2":{"name":"swap-case","version":"1.1.2","description":"Swap the case of a string","main":"swap-case.js","typings":"swap-case.d.ts","files":["swap-case.js","swap-case.d.ts","LICENSE"],"scripts":{"lint":"standard","test-std":"mocha -- -R spec --bail","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- -R spec --bail","test":"npm run lint && npm run test-cov"},"repository":{"type":"git","url":"git://github.com/blakeembrey/swap-case.git"},"keywords":["swap","case","reverse","switch"],"author":{"name":"Blake Embrey","email":"hello@blakeembrey.com","url":"http://blakeembrey.me"},"license":"MIT","bugs":{"url":"https://github.com/blakeembrey/swap-case/issues"},"homepage":"https://github.com/blakeembrey/swap-case","devDependencies":{"istanbul":"^0.3.0","mocha":"^2.2.1","pre-commit":"^1.0.6","standard":"^3.3.0"},"dependencies":{"lower-case":"^1.1.1","upper-case":"^1.1.1"},"gitHead":"eaaa7e37d03c6d29bd2287caa5a1d1d25c3056af","_id":"swap-case@1.1.2","_shasum":"c39203a4587385fad3c850a0bd1bcafa081974e3","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.2.0","_npmUser":{"name":"blakeembrey","email":"hello@blakeembrey.com"},"dist":{"shasum":"c39203a4587385fad3c850a0bd1bcafa081974e3","size":2233,"noattachment":false,"key":"/swap-case/-/swap-case-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/swap-case/download/swap-case-1.1.2.tgz"},"maintainers":[{"name":"blakeembrey","email":"hello@blakeembrey.com"}],"directories":{},"publish_time":1450224628458,"_cnpm_publish_time":1450224628458,"_hasShrinkwrap":false},"1.1.1":{"name":"swap-case","version":"1.1.1","description":"Swap the case of a string","main":"swap-case.js","files":["swap-case.js","LICENSE"],"scripts":{"lint":"standard","test-std":"mocha -- -R spec --bail","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- -R spec --bail","test":"npm run lint && npm run test-cov"},"repository":{"type":"git","url":"git://github.com/blakeembrey/swap-case.git"},"keywords":["swap","case","reverse","switch"],"author":{"name":"Blake Embrey","email":"hello@blakeembrey.com","url":"http://blakeembrey.me"},"license":"MIT","bugs":{"url":"https://github.com/blakeembrey/swap-case/issues"},"homepage":"https://github.com/blakeembrey/swap-case","devDependencies":{"istanbul":"^0.3.0","mocha":"^2.2.1","pre-commit":"^1.0.6","standard":"^3.3.0"},"dependencies":{"lower-case":"^1.1.1","upper-case":"^1.1.1"},"gitHead":"0c88af8912968fcd65262c7ab690dc70b73d35f9","_id":"swap-case@1.1.1","_shasum":"8e1d0ec68e8df3c133bde08c0e25b77352163672","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.1","_npmUser":{"name":"blakeembrey","email":"hello@blakeembrey.com"},"maintainers":[{"name":"blakeembrey","email":"hello@blakeembrey.com"}],"dist":{"shasum":"8e1d0ec68e8df3c133bde08c0e25b77352163672","size":2131,"noattachment":false,"key":"/swap-case/-/swap-case-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/swap-case/download/swap-case-1.1.1.tgz"},"directories":{},"publish_time":1431387342300,"_cnpm_publish_time":1431387342300,"_hasShrinkwrap":false},"1.1.0":{"name":"swap-case","version":"1.1.0","description":"Swap the case of a string","main":"swap-case.js","files":["swap-case.js","LICENSE"],"scripts":{"test":"istanbul cover _mocha -- -R spec"},"repository":{"type":"git","url":"git://github.com/blakeembrey/swap-case.git"},"keywords":["swap","case","reverse","switch"],"author":{"name":"Blake Embrey","email":"hello@blakeembrey.com","url":"http://blakeembrey.me"},"license":"MIT","bugs":{"url":"https://github.com/blakeembrey/swap-case/issues"},"homepage":"https://github.com/blakeembrey/swap-case","devDependencies":{"istanbul":"^0.3.0","mocha":"^1.18.2","pre-commit":"0.0.9"},"dependencies":{"lower-case":"^1.1.1","upper-case":"^1.1.1"},"gitHead":"2906f8dd4c7cb3ab76ea846aa94c286b13966ea6","_id":"swap-case@1.1.0","_shasum":"6e6bc4531d56b6ab0f7ef07b2b7c9816039b3547","_from":".","_npmVersion":"2.1.17","_nodeVersion":"0.11.14","_npmUser":{"name":"blakeembrey","email":"hello@blakeembrey.com"},"maintainers":[{"name":"blakeembrey","email":"hello@blakeembrey.com"}],"dist":{"shasum":"6e6bc4531d56b6ab0f7ef07b2b7c9816039b3547","size":2044,"noattachment":false,"key":"/swap-case/-/swap-case-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/swap-case/download/swap-case-1.1.0.tgz"},"directories":{},"publish_time":1421052378961,"_cnpm_publish_time":1421052378961,"_hasShrinkwrap":false},"1.0.2":{"name":"swap-case","version":"1.0.2","description":"Swap the case of a string","main":"swap-case.js","scripts":{"test":"istanbul cover _mocha -- -R spec"},"repository":{"type":"git","url":"git://github.com/blakeembrey/swap-case.git"},"keywords":["swap","case","reverse","switch"],"author":{"name":"Blake Embrey","email":"hello@blakeembrey.com","url":"http://blakeembrey.me"},"license":"MIT","bugs":{"url":"https://github.com/blakeembrey/swap-case/issues"},"homepage":"https://github.com/blakeembrey/swap-case","devDependencies":{"istanbul":"^0.3.0","mocha":"^1.18.2"},"_id":"swap-case@1.0.2","_shasum":"bfa58432ecff4bc9c4f2d3f905974d05aae81de9","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"blakeembrey","email":"hello@blakeembrey.com"},"maintainers":[{"name":"blakeembrey","email":"hello@blakeembrey.com"}],"dist":{"shasum":"bfa58432ecff4bc9c4f2d3f905974d05aae81de9","size":2344,"noattachment":false,"key":"/swap-case/-/swap-case-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/swap-case/download/swap-case-1.0.2.tgz"},"directories":{},"publish_time":1408832292948,"_cnpm_publish_time":1408832292948,"_hasShrinkwrap":false},"1.0.1":{"name":"swap-case","version":"1.0.1","description":"Swap the case of a string","main":"swap-case.js","scripts":{"test":"istanbul cover _mocha -- -R spec"},"repository":{"type":"git","url":"git://github.com/blakeembrey/swap-case.git"},"keywords":["swap","case","reverse","switch"],"author":{"name":"Blake Embrey","email":"hello@blakeembrey.com","url":"http://blakeembrey.me"},"license":"MIT","bugs":{"url":"https://github.com/blakeembrey/swap-case/issues"},"homepage":"https://github.com/blakeembrey/swap-case","devDependencies":{"istanbul":"^0.3.0","mocha":"^1.18.2"},"gitHead":"5eb094fa0d79090c78499600b5c831b9d97c1ffa","_id":"swap-case@1.0.1","_shasum":"c76f608aa489253b729aa42ad1fdd9ea97205303","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"blakeembrey","email":"hello@blakeembrey.com"},"maintainers":[{"name":"blakeembrey","email":"hello@blakeembrey.com"}],"dist":{"shasum":"c76f608aa489253b729aa42ad1fdd9ea97205303","size":2143,"noattachment":false,"key":"/swap-case/-/swap-case-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/swap-case/download/swap-case-1.0.1.tgz"},"directories":{},"publish_time":1408310872562,"_cnpm_publish_time":1408310872562,"_hasShrinkwrap":false},"1.0.0":{"name":"swap-case","version":"1.0.0","description":"Swap the case of a string","main":"swap-case.js","scripts":{"test":"istanbul cover _mocha -- -R spec"},"repository":{"type":"git","url":"git://github.com/blakeembrey/swap-case.git"},"keywords":["swap","case","reverse","switch"],"author":{"name":"Blake Embrey","email":"hello@blakeembrey.com","url":"http://blakeembrey.me"},"license":"MIT","bugs":{"url":"https://github.com/blakeembrey/swap-case/issues"},"homepage":"https://github.com/blakeembrey/swap-case","devDependencies":{"istanbul":"^0.3.0","mocha":"^1.18.2"},"gitHead":"964db01dbc41862b397d9304d4f35ea4df2b9611","_id":"swap-case@1.0.0","_shasum":"12d61c339073afc704e0a9caa6cc3f8a64a2eecd","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"blakeembrey","email":"hello@blakeembrey.com"},"maintainers":[{"name":"blakeembrey","email":"hello@blakeembrey.com"}],"dist":{"shasum":"12d61c339073afc704e0a9caa6cc3f8a64a2eecd","size":1998,"noattachment":false,"key":"/swap-case/-/swap-case-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/swap-case/download/swap-case-1.0.0.tgz"},"directories":{},"publish_time":1408304047055,"_cnpm_publish_time":1408304047055,"_hasShrinkwrap":false},"0.0.1":{"name":"swap-case","version":"0.0.1","description":"Swap the case of a string","main":"swap-case.js","scripts":{"test":"istanbul cover _mocha -- -R spec"},"repository":{"type":"git","url":"git://github.com/blakeembrey/swap-case.git"},"keywords":["swap","case","reverse","switch"],"author":{"name":"Blake Embrey"},"license":"MIT","bugs":{"url":"https://github.com/blakeembrey/swap-case/issues"},"homepage":"https://github.com/blakeembrey/swap-case","devDependencies":{"istanbul":"^0.2.6","mocha":"^1.18.2"},"_id":"swap-case@0.0.1","dist":{"shasum":"7e5ab391256d6e53ecb5d190443b55ccb857c034","size":1615,"noattachment":false,"key":"/swap-case/-/swap-case-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/swap-case/download/swap-case-0.0.1.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"blakeembrey","email":"hello@blakeembrey.com"},"maintainers":[{"name":"blakeembrey","email":"hello@blakeembrey.com"}],"directories":{},"publish_time":1395701582534,"_cnpm_publish_time":1395701582534,"_hasShrinkwrap":false}},"readme":"# Swap Case\n\n> Transform a string by swapping every character from upper to lower case, or lower to upper case.\n\n## Installation\n\n```\nnpm install swap-case --save\n```\n\n## Usage\n\n```js\nimport { swapCase } from \"swap-case\";\n\nswapCase(\"string\"); //=> \"STRING\"\nswapCase(\"dot.case\"); //=> \"DOT.CASE\"\nswapCase(\"PascalCase\"); //=> \"pASCALcASE\"\n```\n\n## TypeScript and ESM\n\nThis package is a [pure ESM package](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c) and ships with TypeScript definitions. It cannot be `require`'d or used with CommonJS module resolution in TypeScript.\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/blakeembrey/change-case/tree/master/packages/swap-case#readme","bugs":{"url":"https://github.com/blakeembrey/change-case/issues"},"license":"MIT"}