Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cake-case

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cake-case - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

dist/module/cake-case.js

11

CHANGELOG.md

@@ -10,7 +10,14 @@ # Changelog

## [1.0.0]
## [1.1.0] - 2018-06-07
### Added
- Add module file. (85f198b946a01bfa33391f9c2cf34187c2fe94e4)
## [1.0.0] - 2018-04-09
First release. 🤗🤗
[Unreleased]: https://github.com/archco/cake-case/compare/v1.0.0...HEAD
[Unreleased]: https://github.com/archco/cake-case/compare/v1.1.0...HEAD
[1.1.0]: https://github.com/archco/cake-case/compare/v1.0.0...v1.1.0
[1.0.0]: https://github.com/archco/cake-case/compare/10fd8ce...v1.0.0

48

dist/cake-case.js

@@ -49,7 +49,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }

@@ -60,5 +56,24 @@ /******/ };

/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules

@@ -90,15 +105,8 @@ /******/ __webpack_require__.n = function(module) {

\**************************/
/*! exports provided: normal, lower, upper, capital, camel, pascal, kebab, snake */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "normal", function() { return normal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lower", function() { return lower; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "upper", function() { return upper; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "capital", function() { return capital; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "camel", function() { return camel; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pascal", function() { return pascal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kebab", function() { return kebab; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "snake", function() { return snake; });
Object.defineProperty(exports, "__esModule", { value: true });
function normal(str, fill) {

@@ -114,2 +122,3 @@ if (fill === void 0) { fill = ' '; }

}
exports.normal = normal;
function lower(str, fill) {

@@ -119,2 +128,3 @@ if (fill === void 0) { fill = ' '; }

}
exports.lower = lower;
function upper(str, fill) {

@@ -124,2 +134,3 @@ if (fill === void 0) { fill = ' '; }

}
exports.upper = upper;
function capital(str, fill) {

@@ -131,2 +142,3 @@ if (fill === void 0) { fill = ' '; }

}
exports.capital = capital;
function camel(str) {

@@ -136,11 +148,15 @@ str = capital(str, '');

}
exports.camel = camel;
function pascal(str) {
return capital(str, '');
}
exports.pascal = pascal;
function kebab(str) {
return lower(str, '-');
}
exports.kebab = kebab;
function snake(str) {
return lower(str, '_');
}
exports.snake = snake;

@@ -147,0 +163,0 @@

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

!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.CakeCase=n():e.CakeCase=n()}(this,function(){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s="./src/cake-case.ts")}({"./src/cake-case.ts":
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CakeCase=t():e.CakeCase=t()}(this,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="./src/cake-case.ts")}({"./src/cake-case.ts":
/*!**************************!*\
!*** ./src/cake-case.ts ***!
\**************************/
/*! exports provided: normal, lower, upper, capital, camel, pascal, kebab, snake */function(e,n,t){"use strict";function r(e,n){return void 0===n&&(n=" "),e.replace(/([A-Z][a-z]|[0-9][a-zA-Z])/g," $1").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([0-9])([a-zA-Z])/g,"$1 $2").replace(/([a-zA-Z])([0-9])/g,"$1 $2").replace(/([\W|_]+)/g," ").trim().replace(/\s+/g,n)}function o(e,n){return void 0===n&&(n=" "),r(e,n).toLowerCase()}function u(e,n){return void 0===n&&(n=" "),r(e,n).toUpperCase()}function c(e,n){return void 0===n&&(n=" "),o(e," ").split(" ").map(function(e){return e[0].toUpperCase()+e.substr(1)}).join(" ").replace(/\s+/g,n)}function i(e){return(e=c(e,""))[0].toLowerCase()+e.substr(1)}function a(e){return c(e,"")}function f(e){return o(e,"-")}function s(e){return o(e,"_")}t.r(n),t.d(n,"normal",function(){return r}),t.d(n,"lower",function(){return o}),t.d(n,"upper",function(){return u}),t.d(n,"capital",function(){return c}),t.d(n,"camel",function(){return i}),t.d(n,"pascal",function(){return a}),t.d(n,"kebab",function(){return f}),t.d(n,"snake",function(){return s})}})});
/*! no static exports found */function(e,t,r){"use strict";function n(e,t){return void 0===t&&(t=" "),e.replace(/([A-Z][a-z]|[0-9][a-zA-Z])/g," $1").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([0-9])([a-zA-Z])/g,"$1 $2").replace(/([a-zA-Z])([0-9])/g,"$1 $2").replace(/([\W|_]+)/g," ").trim().replace(/\s+/g,t)}function o(e,t){return void 0===t&&(t=" "),n(e,t).toLowerCase()}function u(e,t){return void 0===t&&(t=" "),o(e," ").split(" ").map(function(e){return e[0].toUpperCase()+e.substr(1)}).join(" ").replace(/\s+/g,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.normal=n,t.lower=o,t.upper=function(e,t){return void 0===t&&(t=" "),n(e,t).toUpperCase()},t.capital=u,t.camel=function(e){return(e=u(e,""))[0].toLowerCase()+e.substr(1)},t.pascal=function(e){return u(e,"")},t.kebab=function(e){return o(e,"-")},t.snake=function(e){return o(e,"_")}}})});
{
"name": "cake-case",
"version": "1.0.0",
"version": "1.1.0",
"description": "The simple utility methods that converts string case.",
"main": "dist/cake-case.js",
"module": "dist/module/cake-case.js",
"types": "index.d.ts",
"scripts": {
"test": "jest",
"prebuild": "tsc",
"build": "webpack --hide-modules",
"watch": "npm run build -- --watch"
"watch": "webpack --hide-modules --watch"
},
"keywords": ["case", "convert"],
"keywords": [
"case",
"convert"
],
"author": "archcoster@gmail.com",

@@ -24,10 +29,10 @@ "license": "MIT",

"devDependencies": {
"@types/jest": "^22.2.2",
"jest": "^22.4.3",
"@types/jest": "^23.0.0",
"jest": "^23.1.0",
"source-map-loader": "^0.2.3",
"ts-jest": "^22.4.2",
"ts-loader": "^4.2.0",
"typescript": "^2.8.1",
"webpack": "^4.5.0",
"webpack-cli": "^2.0.14",
"ts-jest": "^22.4.6",
"ts-loader": "^4.3.1",
"typescript": "^2.9.1",
"webpack": "^4.11.1",
"webpack-cli": "^3.0.3",
"webpack-merge": "^4.1.2",

@@ -34,0 +39,0 @@ "webpack-notifier": "^1.6.0"

# Cake Case
[![Build Status](https://travis-ci.org/archco/cake-case.svg?branch=master)](https://travis-ci.org/archco/cake-case)
[![npm version](https://badge.fury.io/js/cake-case.svg)](https://www.npmjs.com/package/cake-case)
[![Downloads](https://img.shields.io/npm/dm/cake-case.svg)](https://www.npmjs.com/package/cake-case)
The simple utility methods that converts string case. It's optimized for use in code, such as variable or key of object.

@@ -4,0 +8,0 @@

{
"compilerOptions": {
"outDir": "./dist",
"module": "es2015",
"outDir": "./dist/module/",
"module": "commonjs",
"moduleResolution": "node",

@@ -6,0 +6,0 @@ "target": "es5",

{
"extends": "tslint:recommended",
"rules": {
"arrow-return-shorthand": true,
"arrow-parens": [true, "ban-single-arg-parens"],
"curly": [true, "ignore-same-line"],
"interface-name": [true, "never-prefix"],
"member-access": [true, "no-public"],
"member-ordering": [
true,
{
"order": [
"static-field",
"instance-field",
"static-method",
"instance-method"
]
}
],
"no-console": [
true,
"debug",
"info",
"time",
"timeEnd",
"trace"
],
"no-namespace": [true, "allow-declarations"],
"object-literal-sort-keys": [true, "ignore-case", "match-declaration-order", "shorthand-first"],
"object-literal-sort-keys": false,
"ordered-imports": false,
"quotemark": [true, "single", "avoid-escape", "avoid-template"]
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc