Latest updates from IceHrmPro
This commit is contained in:
1
web/node_modules/string-convert/.npmignore
generated
vendored
Normal file
1
web/node_modules/string-convert/.npmignore
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
node_modules
|
||||
21
web/node_modules/string-convert/LICENSE
generated
vendored
Normal file
21
web/node_modules/string-convert/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 Kiran Abburi
|
||||
|
||||
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.
|
||||
37
web/node_modules/string-convert/README.md
generated
vendored
Normal file
37
web/node_modules/string-convert/README.md
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
string-convert
|
||||
==============
|
||||
|
||||
Set of string conversion functions
|
||||
|
||||
Installation
|
||||
------------
|
||||
npm install string-convert --save
|
||||
|
||||
Methods
|
||||
-------
|
||||
|
||||
### hyphen2camel
|
||||
|
||||
Converts hyphenated string to camelcase string
|
||||
|
||||
Example:
|
||||
|
||||
```javascript
|
||||
var hyphen2camel = require('string-convert/hyphen2camel');
|
||||
hyphen2camel('min-width'); // minWidth
|
||||
hyphen2camel('-moz-transition'); // MozTransition
|
||||
```
|
||||
|
||||
### camel2hyphen
|
||||
|
||||
Converts camel case string to hyphenated string
|
||||
|
||||
Example:
|
||||
|
||||
```javascript
|
||||
var camel2hyphen = require('string-convert/camel2hyphen');
|
||||
camel2hyphen('minWidth'); // min-width
|
||||
camel2hyphen('MozTransition'); //-moz-transition
|
||||
```
|
||||
|
||||
|
||||
9
web/node_modules/string-convert/camel2hyphen.js
generated
vendored
Normal file
9
web/node_modules/string-convert/camel2hyphen.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
var camel2hyphen = function (str) {
|
||||
return str
|
||||
.replace(/[A-Z]/g, function (match) {
|
||||
return '-' + match.toLowerCase();
|
||||
})
|
||||
.toLowerCase();
|
||||
};
|
||||
|
||||
module.exports = camel2hyphen;
|
||||
9
web/node_modules/string-convert/hyphen2camel.js
generated
vendored
Normal file
9
web/node_modules/string-convert/hyphen2camel.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
var hyphen2camel = function (str) {
|
||||
return str
|
||||
.toLowerCase()
|
||||
.replace(/-[a-z]/g, function (match) {
|
||||
return match.slice(1).toUpperCase() ;
|
||||
});
|
||||
};
|
||||
|
||||
module.exports = hyphen2camel;
|
||||
6
web/node_modules/string-convert/index.js
generated
vendored
Normal file
6
web/node_modules/string-convert/index.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
var stringConvert = {
|
||||
hyphen2camel: require('./hyphen2camel'),
|
||||
camel2hyphen : require('./camel2hyphen')
|
||||
};
|
||||
|
||||
module.exports = stringConvert;
|
||||
48
web/node_modules/string-convert/package.json
generated
vendored
Normal file
48
web/node_modules/string-convert/package.json
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"_from": "string-convert@^0.2.0",
|
||||
"_id": "string-convert@0.2.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-aYLMMEn7tM2F+LJFaLnZvznu/5c=",
|
||||
"_location": "/string-convert",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "string-convert@^0.2.0",
|
||||
"name": "string-convert",
|
||||
"escapedName": "string-convert",
|
||||
"rawSpec": "^0.2.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^0.2.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/json2mq"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/string-convert/-/string-convert-0.2.1.tgz",
|
||||
"_shasum": "6982cc3049fbb4cd85f8b24568b9d9bf39eeff97",
|
||||
"_spec": "string-convert@^0.2.0",
|
||||
"_where": "/Users/thilina/TestProjects/icehrm-pro/web/node_modules/json2mq",
|
||||
"author": "",
|
||||
"bugs": {
|
||||
"url": "https://github.com/akiran/string-convert/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "String convertions",
|
||||
"devDependencies": {
|
||||
"mocha": "^2.0.1",
|
||||
"should": "^4.3.0"
|
||||
},
|
||||
"homepage": "https://github.com/akiran/string-convert#readme",
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "string-convert",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/akiran/string-convert.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha test"
|
||||
},
|
||||
"version": "0.2.1"
|
||||
}
|
||||
17
web/node_modules/string-convert/test/test.camel2hyphen.js
generated
vendored
Normal file
17
web/node_modules/string-convert/test/test.camel2hyphen.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
var should = require('should');
|
||||
var camel2hyphen = require('../camel2hyphen');
|
||||
|
||||
describe('camel2hyphen', function () {
|
||||
it('should convert minWith to min-width', function () {
|
||||
camel2hyphen('minWidth').should.equal('min-width');
|
||||
});
|
||||
|
||||
it('should convert deviceMinWith to device-min-width', function () {
|
||||
camel2hyphen('deviceMinWidth').should.equal('device-min-width');
|
||||
});
|
||||
|
||||
it('should convert MozTransition to -moz-transition', function () {
|
||||
camel2hyphen('MozTransition').should.equal('-moz-transition');
|
||||
});
|
||||
|
||||
});
|
||||
17
web/node_modules/string-convert/test/test.hyphen2camel.js
generated
vendored
Normal file
17
web/node_modules/string-convert/test/test.hyphen2camel.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
var should = require('should');
|
||||
var hyphen2camel = require('../hyphen2camel');
|
||||
|
||||
describe('hyphen2camel', function () {
|
||||
it('should convert min-width to minWidth', function () {
|
||||
hyphen2camel('min-width').should.equal('minWidth');
|
||||
});
|
||||
|
||||
it('should convert device-min-width to deviceMinWidth', function () {
|
||||
hyphen2camel('device-min-width').should.equal('deviceMinWidth');
|
||||
});
|
||||
|
||||
it('should convert -moz-transition to MozTransition', function () {
|
||||
hyphen2camel('-moz-transition').should.equal('MozTransition');
|
||||
});
|
||||
|
||||
});
|
||||
11
web/node_modules/string-convert/test/test.index.js
generated
vendored
Normal file
11
web/node_modules/string-convert/test/test.index.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
var convert = require('../');
|
||||
|
||||
describe('string-convert', function () {
|
||||
it('convert.hyphen2camel should convert min-width to minWidth', function () {
|
||||
convert.hyphen2camel('min-width').should.equal('minWidth');
|
||||
});
|
||||
|
||||
it('convert.camel2hyphen should convert minWidth to min-width', function () {
|
||||
convert.camel2hyphen('minWidth').should.equal('min-width');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user