mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-02 20:00:05 +02:00
use minify
This commit is contained in:
21
node_modules/lower-case/LICENSE
generated
vendored
Normal file
21
node_modules/lower-case/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The 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.
|
45
node_modules/lower-case/README.md
generated
vendored
Normal file
45
node_modules/lower-case/README.md
generated
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
# Lower Case
|
||||
|
||||
[![NPM version][npm-image]][npm-url]
|
||||
[![NPM downloads][downloads-image]][downloads-url]
|
||||
[![Build status][travis-image]][travis-url]
|
||||
[![Test coverage][coveralls-image]][coveralls-url]
|
||||
|
||||
Lower case a string.
|
||||
|
||||
Supports Unicode (non-ASCII characters) and non-string entities, such as objects with a `toString` property, numbers and booleans. Empty values (`null` and `undefined`) will result in an empty string.
|
||||
|
||||
## Installation
|
||||
|
||||
```
|
||||
npm install lower-case --save
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var lowerCase = require('lower-case')
|
||||
|
||||
lowerCase(null) //=> ""
|
||||
lowerCase('STRING') //=> "string"
|
||||
lowerCase('STRING', 'tr') //=> "strıng"
|
||||
|
||||
lowerCase({ toString: function () { return 'TEST' } }) //=> "test"
|
||||
```
|
||||
|
||||
## Typings
|
||||
|
||||
Includes a [TypeScript definition](lower-case.d.ts).
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
|
||||
[npm-image]: https://img.shields.io/npm/v/lower-case.svg?style=flat
|
||||
[npm-url]: https://npmjs.org/package/lower-case
|
||||
[downloads-image]: https://img.shields.io/npm/dm/lower-case.svg?style=flat
|
||||
[downloads-url]: https://npmjs.org/package/lower-case
|
||||
[travis-image]: https://img.shields.io/travis/blakeembrey/lower-case.svg?style=flat
|
||||
[travis-url]: https://travis-ci.org/blakeembrey/lower-case
|
||||
[coveralls-image]: https://img.shields.io/coveralls/blakeembrey/lower-case.svg?style=flat
|
||||
[coveralls-url]: https://coveralls.io/r/blakeembrey/lower-case?branch=master
|
3
node_modules/lower-case/lower-case.d.ts
generated
vendored
Normal file
3
node_modules/lower-case/lower-case.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
declare function lowerCase (value: string, locale?: string): string;
|
||||
|
||||
export = lowerCase;
|
54
node_modules/lower-case/lower-case.js
generated
vendored
Normal file
54
node_modules/lower-case/lower-case.js
generated
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
/**
|
||||
* Special language-specific overrides.
|
||||
*
|
||||
* Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt
|
||||
*
|
||||
* @type {Object}
|
||||
*/
|
||||
var LANGUAGES = {
|
||||
tr: {
|
||||
regexp: /\u0130|\u0049|\u0049\u0307/g,
|
||||
map: {
|
||||
'\u0130': '\u0069',
|
||||
'\u0049': '\u0131',
|
||||
'\u0049\u0307': '\u0069'
|
||||
}
|
||||
},
|
||||
az: {
|
||||
regexp: /[\u0130]/g,
|
||||
map: {
|
||||
'\u0130': '\u0069',
|
||||
'\u0049': '\u0131',
|
||||
'\u0049\u0307': '\u0069'
|
||||
}
|
||||
},
|
||||
lt: {
|
||||
regexp: /[\u0049\u004A\u012E\u00CC\u00CD\u0128]/g,
|
||||
map: {
|
||||
'\u0049': '\u0069\u0307',
|
||||
'\u004A': '\u006A\u0307',
|
||||
'\u012E': '\u012F\u0307',
|
||||
'\u00CC': '\u0069\u0307\u0300',
|
||||
'\u00CD': '\u0069\u0307\u0301',
|
||||
'\u0128': '\u0069\u0307\u0303'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Lowercase a string.
|
||||
*
|
||||
* @param {String} str
|
||||
* @return {String}
|
||||
*/
|
||||
module.exports = function (str, locale) {
|
||||
var lang = LANGUAGES[locale]
|
||||
|
||||
str = str == null ? '' : String(str)
|
||||
|
||||
if (lang) {
|
||||
str = str.replace(lang.regexp, function (m) { return lang.map[m] })
|
||||
}
|
||||
|
||||
return str.toLowerCase()
|
||||
}
|
77
node_modules/lower-case/package.json
generated
vendored
Normal file
77
node_modules/lower-case/package.json
generated
vendored
Normal file
@@ -0,0 +1,77 @@
|
||||
{
|
||||
"_from": "lower-case@^1.1.1",
|
||||
"_id": "lower-case@1.1.4",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-miyr0bno4K6ZOkv31YdcOcQujqw=",
|
||||
"_location": "/lower-case",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "lower-case@^1.1.1",
|
||||
"name": "lower-case",
|
||||
"escapedName": "lower-case",
|
||||
"rawSpec": "^1.1.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.1.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/no-case"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/lower-case/-/lower-case-1.1.4.tgz",
|
||||
"_shasum": "9a2cabd1b9e8e0ae993a4bf7d5875c39c42e8eac",
|
||||
"_spec": "lower-case@^1.1.1",
|
||||
"_where": "F:\\projects\\p\\minifyfromhtml\\node_modules\\no-case",
|
||||
"author": {
|
||||
"name": "Blake Embrey",
|
||||
"email": "hello@blakeembrey.com",
|
||||
"url": "http://blakeembrey.me"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/blakeembrey/lower-case/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {},
|
||||
"deprecated": false,
|
||||
"description": "Lowercase a string",
|
||||
"devDependencies": {
|
||||
"istanbul": "^0.3.5",
|
||||
"mocha": "^2.1.0",
|
||||
"pre-commit": "^1.0.2",
|
||||
"standard": "^2.4.5"
|
||||
},
|
||||
"files": [
|
||||
"lower-case.js",
|
||||
"lower-case.d.ts",
|
||||
"LICENSE"
|
||||
],
|
||||
"homepage": "https://github.com/blakeembrey/lower-case",
|
||||
"keywords": [
|
||||
"cases",
|
||||
"lower",
|
||||
"lowercase",
|
||||
"case"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "lower-case.js",
|
||||
"name": "lower-case",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/blakeembrey/lower-case.git"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "standard",
|
||||
"test": "npm run lint && npm run test-cov",
|
||||
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- -R spec --bail",
|
||||
"test-std": "mocha -- -R spec --bail"
|
||||
},
|
||||
"standard": {
|
||||
"ignore": [
|
||||
"coverage/**",
|
||||
"node_modules/**",
|
||||
"bower_components/**"
|
||||
]
|
||||
},
|
||||
"typings": "lower-case.d.ts",
|
||||
"version": "1.1.4"
|
||||
}
|
Reference in New Issue
Block a user