mirror of
https://github.com/Raghu-Ch/nodeRestAPI.git
synced 2026-02-10 12:43:02 -05:00
initial commit
This commit is contained in:
8
node_modules/string-length/index.js
generated
vendored
Normal file
8
node_modules/string-length/index.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
'use strict';
|
||||
var stripAnsi = require('strip-ansi');
|
||||
|
||||
module.exports = function (str) {
|
||||
var reAstral = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
|
||||
|
||||
return stripAnsi(str).replace(reAstral, ' ').length;
|
||||
};
|
||||
21
node_modules/string-length/license
generated
vendored
Normal file
21
node_modules/string-length/license
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.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.
|
||||
103
node_modules/string-length/package.json
generated
vendored
Normal file
103
node_modules/string-length/package.json
generated
vendored
Normal file
@@ -0,0 +1,103 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "string-length@^1.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "string-length",
|
||||
"name": "string-length",
|
||||
"rawSpec": "^1.0.0",
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"C:\\Users\\chvra\\Documents\\angular-play\\nodeRest\\node_modules\\update-notifier"
|
||||
]
|
||||
],
|
||||
"_from": "string-length@>=1.0.0 <2.0.0",
|
||||
"_id": "string-length@1.0.1",
|
||||
"_inCache": true,
|
||||
"_location": "/string-length",
|
||||
"_nodeVersion": "0.12.5",
|
||||
"_npmUser": {
|
||||
"name": "sindresorhus",
|
||||
"email": "sindresorhus@gmail.com"
|
||||
},
|
||||
"_npmVersion": "2.11.2",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "string-length@^1.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "string-length",
|
||||
"name": "string-length",
|
||||
"rawSpec": "^1.0.0",
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/update-notifier"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/string-length/-/string-length-1.0.1.tgz",
|
||||
"_shasum": "56970fb1c38558e9e70b728bf3de269ac45adfac",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "string-length@^1.0.0",
|
||||
"_where": "C:\\Users\\chvra\\Documents\\angular-play\\nodeRest\\node_modules\\update-notifier",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/string-length/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"strip-ansi": "^3.0.0"
|
||||
},
|
||||
"description": "Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes",
|
||||
"devDependencies": {
|
||||
"mocha": "*"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "56970fb1c38558e9e70b728bf3de269ac45adfac",
|
||||
"tarball": "https://registry.npmjs.org/string-length/-/string-length-1.0.1.tgz"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"gitHead": "18c47a338a5f7b8df45566579ff588ba7a82ac6e",
|
||||
"homepage": "https://github.com/sindresorhus/string-length",
|
||||
"keywords": [
|
||||
"unicode",
|
||||
"string",
|
||||
"str",
|
||||
"length",
|
||||
"astral",
|
||||
"symbol",
|
||||
"surrogates",
|
||||
"codepoints",
|
||||
"ansi",
|
||||
"escape",
|
||||
"codes"
|
||||
],
|
||||
"license": "MIT",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "sindresorhus",
|
||||
"email": "sindresorhus@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "string-length",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/string-length.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"version": "1.0.1"
|
||||
}
|
||||
31
node_modules/string-length/readme.md
generated
vendored
Normal file
31
node_modules/string-length/readme.md
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
# string-length [](https://travis-ci.org/sindresorhus/string-length)
|
||||
|
||||
> Get the real length of a string - by correctly counting astral symbols and ignoring [ansi escape codes](https://github.com/sindresorhus/strip-ansi)
|
||||
|
||||
`String#length` errornously counts [astral symbols](http://www.tlg.uci.edu/~opoudjis/unicode/unicode_astral.html) as two characters.
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save string-length
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
'🐴'.length;
|
||||
//=> 2
|
||||
|
||||
stringLength('🐴');
|
||||
//=> 1
|
||||
|
||||
stringLength('\u001b[1municorn\u001b[22m');
|
||||
//=> 7
|
||||
```
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](http://sindresorhus.com)
|
||||
Reference in New Issue
Block a user