mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-01 13:42:20 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
28
web/node_modules/hyphenate-style-name/LICENSE
generated
vendored
Normal file
28
web/node_modules/hyphenate-style-name/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
Copyright (c) 2015, Espen Hovlandsdal
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
* Neither the name of hyphenate-style-name nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
28
web/node_modules/hyphenate-style-name/README.md
generated
vendored
Normal file
28
web/node_modules/hyphenate-style-name/README.md
generated
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
# hyphenate-style-name
|
||||
|
||||
[](https://www.npmjs.com/package/hyphenate-style-name)[](https://www.npmjs.com/package/hyphenate-style-name)[](https://bundlephobia.com/result?p=hyphenate-style-name)[](https://travis-ci.org/rexxars/hyphenate-style-name)
|
||||
|
||||
Hyphenates a camelcased CSS property name. For example:
|
||||
|
||||
- `backgroundColor` => `background-color`
|
||||
- `MozTransition` => `-moz-transition`
|
||||
- `msTransition` => `-ms-transition`
|
||||
- `color` => `color`
|
||||
|
||||
# Installation
|
||||
|
||||
```bash
|
||||
$ npm install --save hyphenate-style-name
|
||||
```
|
||||
|
||||
# Usage
|
||||
|
||||
```js
|
||||
var hyphenateStyleName = require('hyphenate-style-name')
|
||||
|
||||
console.log(hyphenateStyleName('MozTransition')) // -moz-transition
|
||||
```
|
||||
|
||||
# License
|
||||
|
||||
BSD-3-Clause licensed. See LICENSE.
|
21
web/node_modules/hyphenate-style-name/index.cjs.js
generated
vendored
Normal file
21
web/node_modules/hyphenate-style-name/index.cjs.js
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
'use strict';
|
||||
|
||||
/* eslint-disable no-var, prefer-template */
|
||||
var uppercasePattern = /[A-Z]/g;
|
||||
var msPattern = /^ms-/;
|
||||
var cache = {};
|
||||
|
||||
function toHyphenLower(match) {
|
||||
return '-' + match.toLowerCase()
|
||||
}
|
||||
|
||||
function hyphenateStyleName(name) {
|
||||
if (cache.hasOwnProperty(name)) {
|
||||
return cache[name]
|
||||
}
|
||||
|
||||
var hName = name.replace(uppercasePattern, toHyphenLower);
|
||||
return (cache[name] = msPattern.test(hName) ? '-' + hName : hName)
|
||||
}
|
||||
|
||||
module.exports = hyphenateStyleName;
|
19
web/node_modules/hyphenate-style-name/index.js
generated
vendored
Normal file
19
web/node_modules/hyphenate-style-name/index.js
generated
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
/* eslint-disable no-var, prefer-template */
|
||||
var uppercasePattern = /[A-Z]/g
|
||||
var msPattern = /^ms-/
|
||||
var cache = {}
|
||||
|
||||
function toHyphenLower(match) {
|
||||
return '-' + match.toLowerCase()
|
||||
}
|
||||
|
||||
function hyphenateStyleName(name) {
|
||||
if (cache.hasOwnProperty(name)) {
|
||||
return cache[name]
|
||||
}
|
||||
|
||||
var hName = name.replace(uppercasePattern, toHyphenLower)
|
||||
return (cache[name] = msPattern.test(hName) ? '-' + hName : hName)
|
||||
}
|
||||
|
||||
export default hyphenateStyleName
|
42
web/node_modules/hyphenate-style-name/package.json
generated
vendored
Normal file
42
web/node_modules/hyphenate-style-name/package.json
generated
vendored
Normal file
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
"name": "hyphenate-style-name",
|
||||
"version": "1.0.4",
|
||||
"description": "Hyphenates a camelcased CSS property name",
|
||||
"main": "index.cjs.js",
|
||||
"module": "index.js",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "rollup --input index.js --file index.cjs.js --format cjs",
|
||||
"coverage": "nyc tape -- test/**/*.test.js",
|
||||
"lint": "eslint . --ignore-path .gitignore",
|
||||
"test": "tape test/**/*.test.js",
|
||||
"precoverage": "npm run build",
|
||||
"pretest": "npm run lint && npm run build",
|
||||
"prepublishOnly": "npm run build"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+ssh://git@github.com/rexxars/hyphenate-style-name.git"
|
||||
},
|
||||
"keywords": [
|
||||
"hyphenate",
|
||||
"style",
|
||||
"css",
|
||||
"camelcase"
|
||||
],
|
||||
"author": "Espen Hovlandsdal <espen@hovlandsdal.com>",
|
||||
"license": "BSD-3-Clause",
|
||||
"bugs": {
|
||||
"url": "https://github.com/rexxars/hyphenate-style-name/issues"
|
||||
},
|
||||
"homepage": "https://github.com/rexxars/hyphenate-style-name#readme",
|
||||
"devDependencies": {
|
||||
"eslint": "^7.4.0",
|
||||
"eslint-config-prettier": "^6.11.0",
|
||||
"eslint-config-sanity": "^1.149.16",
|
||||
"nyc": "^15.1.0",
|
||||
"prettier": "^2.0.5",
|
||||
"rollup": "^2.21.0",
|
||||
"tape": "^5.0.1"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue