Firebase Update
This commit is contained in:
18
express-server/node_modules/string-format-obj/index.js
generated
vendored
Normal file
18
express-server/node_modules/string-format-obj/index.js
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function (template, args) {
|
||||
if (!args) {
|
||||
return interpolate.bind(null, template);
|
||||
}
|
||||
|
||||
return interpolate(template, args);
|
||||
};
|
||||
|
||||
function interpolate(template, args) {
|
||||
if (typeof args === 'undefined') {
|
||||
args = {};
|
||||
}
|
||||
return template.replace(/{([^}]*)}/g, function (match, key) {
|
||||
return key in args ? args[key] : match;
|
||||
});
|
||||
}
|
20
express-server/node_modules/string-format-obj/license
generated
vendored
Normal file
20
express-server/node_modules/string-format-obj/license
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 Stephen Sawchuk
|
||||
|
||||
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.
|
62
express-server/node_modules/string-format-obj/package.json
generated
vendored
Normal file
62
express-server/node_modules/string-format-obj/package.json
generated
vendored
Normal file
@ -0,0 +1,62 @@
|
||||
{
|
||||
"_from": "string-format-obj@^1.1.0",
|
||||
"_id": "string-format-obj@1.1.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-Mm+sROy+pHJmx0P/0Bs1uxIX6UhGJGj6xDGQZ5zh9v/SZRmLGevp+p0VJxV7lirrkAmQ2mvva/gHKpnF/pTb+Q==",
|
||||
"_location": "/string-format-obj",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "string-format-obj@^1.1.0",
|
||||
"name": "string-format-obj",
|
||||
"escapedName": "string-format-obj",
|
||||
"rawSpec": "^1.1.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.1.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@google-cloud/common"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/string-format-obj/-/string-format-obj-1.1.1.tgz",
|
||||
"_shasum": "c7612ca4e2ad923812a81db192dc291850aa1f65",
|
||||
"_spec": "string-format-obj@^1.1.0",
|
||||
"_where": "D:\\Desktop\\Git\\Firebase\\SmartShopperFirebase\\node_modules\\@google-cloud\\common",
|
||||
"author": {
|
||||
"name": "Stephen Sawchuk",
|
||||
"email": "sawchuk@gmail.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/stephenplusplus/string-format-obj/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "Replace tokens from a string with values of an object",
|
||||
"devDependencies": {
|
||||
"mocha": "^2.2.5"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"license"
|
||||
],
|
||||
"homepage": "https://github.com/stephenplusplus/string-format-obj#readme",
|
||||
"keywords": [
|
||||
"values",
|
||||
"tokens",
|
||||
"string",
|
||||
"format",
|
||||
"printf",
|
||||
"fmt"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "string-format-obj",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/stephenplusplus/string-format-obj.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"version": "1.1.1"
|
||||
}
|
27
express-server/node_modules/string-format-obj/readme.md
generated
vendored
Normal file
27
express-server/node_modules/string-format-obj/readme.md
generated
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
# string-format-obj
|
||||
> Replace tokens from a string with values of an object.
|
||||
|
||||
```sh
|
||||
$ npm install --save string-format-obj
|
||||
```
|
||||
```js
|
||||
var format = require('string-format-obj');
|
||||
|
||||
format('{greeting} {thing}!', {
|
||||
greeting: 'Hello',
|
||||
thing: 'world'
|
||||
});
|
||||
// Hello world!
|
||||
```
|
||||
|
||||
If you want to cache the string
|
||||
|
||||
```js
|
||||
var formatFunc = format('{greeting} {thing}!');
|
||||
|
||||
formatFunc({
|
||||
greeting: 'Howdy',
|
||||
thing: 'doody'
|
||||
});
|
||||
// Howdy doody!
|
||||
```
|
Reference in New Issue
Block a user