| 1 |
{ |
| 2 |
"_id": "pupa", |
| 3 |
"_rev": "4-a23bf44b493410d57f494d669f36a90f", |
| 4 |
"name": "pupa", |
| 5 |
"description": "Simple micro templating", |
| 6 |
"dist-tags": { |
| 7 |
"latest": "2.0.1" |
| 8 |
}, |
| 9 |
"versions": { |
| 10 |
"1.0.0": { |
| 11 |
"name": "pupa", |
| 12 |
"version": "1.0.0", |
| 13 |
"description": "Simple micro templating", |
| 14 |
"license": "MIT", |
| 15 |
"repository": { |
| 16 |
"type": "git", |
| 17 |
"url": "git+https://github.com/sindresorhus/pupa.git" |
| 18 |
}, |
| 19 |
"author": { |
| 20 |
"name": "Sindre Sorhus", |
| 21 |
"email": "[email protected]", |
| 22 |
"url": "sindresorhus.com" |
| 23 |
}, |
| 24 |
"engines": { |
| 25 |
"node": ">=4" |
| 26 |
}, |
| 27 |
"scripts": { |
| 28 |
"test": "xo && ava" |
| 29 |
}, |
| 30 |
"files": [ |
| 31 |
"index.js" |
| 32 |
], |
| 33 |
"keywords": [ |
| 34 |
"string", |
| 35 |
"formatting", |
| 36 |
"template", |
| 37 |
"object", |
| 38 |
"format", |
| 39 |
"interpolate", |
| 40 |
"interpolation", |
| 41 |
"templating", |
| 42 |
"str", |
| 43 |
"obj", |
| 44 |
"tpl", |
| 45 |
"expand", |
| 46 |
"simple", |
| 47 |
"replace", |
| 48 |
"placeholders", |
| 49 |
"values", |
| 50 |
"fmt", |
| 51 |
"transform", |
| 52 |
"micro" |
| 53 |
], |
| 54 |
"devDependencies": { |
| 55 |
"ava": "*", |
| 56 |
"xo": "*" |
| 57 |
}, |
| 58 |
"xo": { |
| 59 |
"esnext": true |
| 60 |
}, |
| 61 |
"gitHead": "05a5d7e3cbe99cb303b6d0fda6984c45e59ec45d", |
| 62 |
"bugs": { |
| 63 |
"url": "https://github.com/sindresorhus/pupa/issues" |
| 64 |
}, |
| 65 |
"homepage": "https://github.com/sindresorhus/pupa#readme", |
| 66 |
"_id": "[email protected]", |
| 67 |
"_shasum": "9a9568a5af7e657b8462a6e9d5328743560ceff6", |
| 68 |
"_from": ".", |
| 69 |
"_npmVersion": "2.15.11", |
| 70 |
"_nodeVersion": "4.6.2", |
| 71 |
"_npmUser": { |
| 72 |
"name": "sindresorhus", |
| 73 |
"email": "[email protected]" |
| 74 |
}, |
| 75 |
"dist": { |
| 76 |
"shasum": "9a9568a5af7e657b8462a6e9d5328743560ceff6", |
| 77 |
"tarball": "https://registry.npmjs.org/pupa/-/pupa-1.0.0.tgz" |
| 78 |
}, |
| 79 |
"maintainers": [ |
| 80 |
{ |
| 81 |
"name": "sindresorhus", |
| 82 |
"email": "[email protected]" |
| 83 |
} |
| 84 |
], |
| 85 |
"_npmOperationalInternal": { |
| 86 |
"host": "packages-18-east.internal.npmjs.com", |
| 87 |
"tmp": "tmp/pupa-1.0.0.tgz_1484024976343_0.21447648899629712" |
| 88 |
}, |
| 89 |
"directories": {} |
| 90 |
}, |
| 91 |
"2.0.0": { |
| 92 |
"name": "pupa", |
| 93 |
"version": "2.0.0", |
| 94 |
"description": "Simple micro templating", |
| 95 |
"license": "MIT", |
| 96 |
"repository": { |
| 97 |
"type": "git", |
| 98 |
"url": "git+https://github.com/sindresorhus/pupa.git" |
| 99 |
}, |
| 100 |
"author": { |
| 101 |
"name": "Sindre Sorhus", |
| 102 |
"email": "[email protected]", |
| 103 |
"url": "sindresorhus.com" |
| 104 |
}, |
| 105 |
"engines": { |
| 106 |
"node": ">=8" |
| 107 |
}, |
| 108 |
"scripts": { |
| 109 |
"test": "xo && ava && tsd" |
| 110 |
}, |
| 111 |
"keywords": [ |
| 112 |
"string", |
| 113 |
"formatting", |
| 114 |
"template", |
| 115 |
"object", |
| 116 |
"format", |
| 117 |
"interpolate", |
| 118 |
"interpolation", |
| 119 |
"templating", |
| 120 |
"expand", |
| 121 |
"simple", |
| 122 |
"replace", |
| 123 |
"placeholders", |
| 124 |
"values", |
| 125 |
"transform", |
| 126 |
"micro" |
| 127 |
], |
| 128 |
"dependencies": { |
| 129 |
"escape-goat": "^2.0.0" |
| 130 |
}, |
| 131 |
"devDependencies": { |
| 132 |
"ava": "^1.4.1", |
| 133 |
"tsd": "^0.7.2", |
| 134 |
"xo": "^0.24.0" |
| 135 |
}, |
| 136 |
"gitHead": "5fe0eeab4d3b6395ba97c2cc58481c34620a5ecb", |
| 137 |
"bugs": { |
| 138 |
"url": "https://github.com/sindresorhus/pupa/issues" |
| 139 |
}, |
| 140 |
"homepage": "https://github.com/sindresorhus/pupa#readme", |
| 141 |
"_id": "[email protected]", |
| 142 |
"_nodeVersion": "10.15.3", |
| 143 |
"_npmVersion": "6.9.0", |
| 144 |
"_npmUser": { |
| 145 |
"name": "sindresorhus", |
| 146 |
"email": "[email protected]" |
| 147 |
}, |
| 148 |
"dist": { |
| 149 |
"integrity": "sha512-xxy6mj9KTirR7fpsdXrIaC4oUb/uvFfchrC4K3RFxYLQ/G05RlhJIKFF2ayCQnNaFI+fOxGWzEVUhYMXHNljeQ==", |
| 150 |
"shasum": "2b385e4c79d7eb7c703a6e24cbeca2c90d8cf697", |
| 151 |
"tarball": "https://registry.npmjs.org/pupa/-/pupa-2.0.0.tgz", |
| 152 |
"fileCount": 5, |
| 153 |
"unpackedSize": 4744, |
| 154 |
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcyFHaCRA9TVsSAnZWagAAOgsP/R3HwKyMLuM8eFiwz9Kk\nyiaUZcsEhZ/yE4vaXsiZKuCQdfK5SpOiyaTODVpVGPuCPf9C4QytJyoqUO7q\n2cTMfJ4U79br+lJHVtISlQf3FTrYspH44zBFaqfjpTb5L9YD7DJMy/1Mnr/M\n3J7xuc3wSBwvFd0Zqfav4VUhHigk/hBqT85MufNrJnoxhpQ8uWzX4I6PpWSo\nRYqJ0mzFBeNy5lvesqfhneOmxTJwmrCPcft3K4EjvjSiFhe9ogcyxKChXtXq\n25DDH+W84/qjhrDvOyhoFGJO+6GtB19/b7w8Rg4tH4hCyDJLHbZnTyZpI/LY\nL21vvdcUFwGEQ0/vlybVRx1UJ2r48cyJwXgT51GF8RWeQTngbEuTDV0TRGAt\ntZU9WsyCF5PLKsIZluQ8a6fAw32gpOz7aXoxUlF0tundIWb2a9olLk1atx7v\nMwzn16v+fkTxDJdIgGt2LkBbLypebxIHK5v5kaFuC4+5mP+bkUYxXsocr4OF\nReN0zlwvk9KWJTSrDagT3PLmu7O2uu9BntaahIN80H07+9w3hhcqxE7BTYkb\n/o6Kt3oFqWSchA+pjtj40L6KadNr96x9WV7TNcDRu0hc9rjGjVnZPJeDi3RP\ngZ43xZN+hdQHTL8QhDOp68oTdaeWviVsW4SncF/LmP7D+PQYf6e17vF8N4ch\nXGkD\r\n=3v02\r\n-----END PGP SIGNATURE-----\r\n" |
| 155 |
}, |
| 156 |
"maintainers": [ |
| 157 |
{ |
| 158 |
"name": "sindresorhus", |
| 159 |
"email": "[email protected]" |
| 160 |
} |
| 161 |
], |
| 162 |
"directories": {}, |
| 163 |
"_npmOperationalInternal": { |
| 164 |
"host": "s3://npm-registry-packages", |
| 165 |
"tmp": "tmp/pupa_2.0.0_1556632025797_0.8563917558100542" |
| 166 |
}, |
| 167 |
"_hasShrinkwrap": false |
| 168 |
}, |
| 169 |
"2.0.1": { |
| 170 |
"name": "pupa", |
| 171 |
"version": "2.0.1", |
| 172 |
"description": "Simple micro templating", |
| 173 |
"license": "MIT", |
| 174 |
"repository": { |
| 175 |
"type": "git", |
| 176 |
"url": "git+https://github.com/sindresorhus/pupa.git" |
| 177 |
}, |
| 178 |
"author": { |
| 179 |
"name": "Sindre Sorhus", |
| 180 |
"email": "[email protected]", |
| 181 |
"url": "sindresorhus.com" |
| 182 |
}, |
| 183 |
"engines": { |
| 184 |
"node": ">=8" |
| 185 |
}, |
| 186 |
"scripts": { |
| 187 |
"test": "xo && ava && tsd" |
| 188 |
}, |
| 189 |
"keywords": [ |
| 190 |
"string", |
| 191 |
"formatting", |
| 192 |
"template", |
| 193 |
"object", |
| 194 |
"format", |
| 195 |
"interpolate", |
| 196 |
"interpolation", |
| 197 |
"templating", |
| 198 |
"expand", |
| 199 |
"simple", |
| 200 |
"replace", |
| 201 |
"placeholders", |
| 202 |
"values", |
| 203 |
"transform", |
| 204 |
"micro" |
| 205 |
], |
| 206 |
"dependencies": { |
| 207 |
"escape-goat": "^2.0.0" |
| 208 |
}, |
| 209 |
"devDependencies": { |
| 210 |
"ava": "^1.4.1", |
| 211 |
"tsd": "^0.7.2", |
| 212 |
"xo": "^0.24.0" |
| 213 |
}, |
| 214 |
"gitHead": "e4c915c8851e432ff707c3f270e2aaf22116a6c5", |
| 215 |
"bugs": { |
| 216 |
"url": "https://github.com/sindresorhus/pupa/issues" |
| 217 |
}, |
| 218 |
"homepage": "https://github.com/sindresorhus/pupa#readme", |
| 219 |
"_id": "[email protected]", |
| 220 |
"_nodeVersion": "10.16.0", |
| 221 |
"_npmVersion": "6.9.0", |
| 222 |
"_npmUser": { |
| 223 |
"name": "sindresorhus", |
| 224 |
"email": "[email protected]" |
| 225 |
}, |
| 226 |
"dist": { |
| 227 |
"integrity": "sha512-hEJH0s8PXLY/cdXh66tNEQGndDrIKNqNC5xmrysZy3i5C3oEoLna7YAOad+7u125+zH1HNXUmGEkrhb3c2VriA==", |
| 228 |
"shasum": "dbdc9ff48ffbea4a26a069b6f9f7abb051008726", |
| 229 |
"tarball": "https://registry.npmjs.org/pupa/-/pupa-2.0.1.tgz", |
| 230 |
"fileCount": 5, |
| 231 |
"unpackedSize": 4761, |
| 232 |
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdPHN9CRA9TVsSAnZWagAA+mYP/0LV3FFrpkiYzSQddPYQ\nGRfr2gDUpT0x4kSFozAiLBXPQYRxpey7jQs6O3CyY7Nr7GRxVAZB7rG9Ogb0\nnBdsWVYnPM3NRQA/M+j/lM2b5Y4OmzOx28rBpYypg04DHDGVqvq8tr4ZOTNT\nRgr2B4DjbN0xYv2uRdFkN1jNGvulKqX2DO0y/XmVBaIvHAKJsyMSfPAObTAr\nxxcbQ39AcCn7jmiGHjoIWP8j4G8ZV9Os3axSh7HE4TLSZgOVtibPNWdf2Jxg\nHVpPtIi8PLU3uwFTBzog+3Kj9HKD2LX/fEE5dI85Rk5jOYqJajw/yfTFT6oA\nbTZnwhi5eKGQfwc+iMJ9RyJWmIrji+mDOGv1Kz7GeJ77CrkyRZgKZZQPxiUS\nZW1gI3CCYo7hHVjn4a/m3pyzhwPQ6/r2SZsrOi3BnzSsfd5JdNL5scpt2Km9\n/yNPGIk5VHUNwhzNYhjT0w2fBzFOrArkJFDCVFXTsjoPery5jiJ/vP3KqUUF\nmiseisLf0JdNIP5pdQ4C9lYjKqStTokFipQDhuG1sGsCP7aADCd0uMnr6QE7\nkZ5KCsGmvj83/ovO+QXsBT/CUJtggcFY9oh7eExfdd/TbhzCmvNqJLIGdKTM\nabtSoiXp2ARNrvgE5TP+MHu+H98hCuAC4RZ1o961FL4RNWHFECB1b62nAtty\n0wRb\r\n=whiZ\r\n-----END PGP SIGNATURE-----\r\n" |
| 233 |
}, |
| 234 |
"maintainers": [ |
| 235 |
{ |
| 236 |
"name": "sindresorhus", |
| 237 |
"email": "[email protected]" |
| 238 |
} |
| 239 |
], |
| 240 |
"directories": {}, |
| 241 |
"_npmOperationalInternal": { |
| 242 |
"host": "s3://npm-registry-packages", |
| 243 |
"tmp": "tmp/pupa_2.0.1_1564242812501_0.9540517658148819" |
| 244 |
}, |
| 245 |
"_hasShrinkwrap": false |
| 246 |
} |
| 247 |
}, |
| 248 |
"readme": "# pupa [](https://travis-ci.org/sindresorhus/pupa)\n\n> Simple micro templating\n\nUseful when all you need is to fill in some placeholders.\n\n\n## Install\n\n```\n$ npm install pupa\n```\n\n\n## Usage\n\n```js\nconst pupa = require('pupa');\n\npupa('The mobile number of {name} is {phone.mobile}', {\n\tname: 'Sindre',\n\tphone: {\n\t\tmobile: '609 24 363'\n\t}\n});\n//=> 'The mobile number of Sindre is 609 24 363'\n\npupa('I like {0} and {1}', ['🦄', '🐮']);\n//=> 'I like 🦄 and 🐮'\n\n// Double braces encodes the HTML entities to avoid code injection\npupa('I like {{0}} and {{1}}', ['<br>🦄</br>', '<i>🐮</i>']);\n//=> 'I like <br>🦄</br> and <i>🐮</i>'\n```\n\n\n## API\n\n### pupa(template, data)\n\n#### template\n\nType: `string`\n\nText with placeholders for `data` properties.\n\n#### data\n\nType: `object | unknown[]`\n\nData to interpolate into `template`.\n\n\n## FAQ\n\n### What about template literals?\n\nTemplate literals expand on creation. This module expands the template on execution, which can be useful if either or both template and data are lazily created or user-supplied.\n\n\n## Related\n\n- [pupa-cli](https://github.com/sindresorhus/pupa-cli) - CLI for this module\n", |
| 249 |
"maintainers": [ |
| 250 |
{ |
| 251 |
"name": "sindresorhus", |
| 252 |
"email": "[email protected]" |
| 253 |
} |
| 254 |
], |
| 255 |
"time": { |
| 256 |
"modified": "2019-07-27T15:53:35.284Z", |
| 257 |
"created": "2017-01-10T05:09:38.131Z", |
| 258 |
"1.0.0": "2017-01-10T05:09:38.131Z", |
| 259 |
"2.0.0": "2019-04-30T13:47:05.949Z", |
| 260 |
"2.0.1": "2019-07-27T15:53:32.679Z" |
| 261 |
}, |
| 262 |
"homepage": "https://github.com/sindresorhus/pupa#readme", |
| 263 |
"keywords": [ |
| 264 |
"string", |
| 265 |
"formatting", |
| 266 |
"template", |
| 267 |
"object", |
| 268 |
"format", |
| 269 |
"interpolate", |
| 270 |
"interpolation", |
| 271 |
"templating", |
| 272 |
"expand", |
| 273 |
"simple", |
| 274 |
"replace", |
| 275 |
"placeholders", |
| 276 |
"values", |
| 277 |
"transform", |
| 278 |
"micro" |
| 279 |
], |
| 280 |
"repository": { |
| 281 |
"type": "git", |
| 282 |
"url": "git+https://github.com/sindresorhus/pupa.git" |
| 283 |
}, |
| 284 |
"author": { |
| 285 |
"name": "Sindre Sorhus", |
| 286 |
"email": "[email protected]", |
| 287 |
"url": "sindresorhus.com" |
| 288 |
}, |
| 289 |
"bugs": { |
| 290 |
"url": "https://github.com/sindresorhus/pupa/issues" |
| 291 |
}, |
| 292 |
"license": "MIT", |
| 293 |
"readmeFilename": "readme.md", |
| 294 |
"users": { |
| 295 |
"rocket0191": true, |
| 296 |
"rubiadias": true |
| 297 |
} |
| 298 |
} |