test: setup a fake registry

This commit is contained in:
fisker 2019-12-19 01:19:05 +08:00
parent 7cde5daac8
commit 6614bd0685
10 changed files with 57610 additions and 2 deletions

File diff suppressed because it is too large Load Diff

4553
info/gulp-sourcemaps.json Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1,711 @@
{
"_id": "jpeg-buffer-orientation",
"_rev": "6-951f1bfbf15efe1c07aef84f8148892d",
"name": "jpeg-buffer-orientation",
"dist-tags": { "latest": "2.0.3" },
"versions": {
"0.0.0": {
"name": "jpeg-buffer-orientation",
"version": "0.0.0",
"description": "get orientation from a jpeg buffer",
"main": "lib/index.js",
"module": "lib/index.mjs",
"browser": "lib/index.min.js",
"unpkg": "lib/index.min.js",
"jsdelivr": "lib/index.min.js",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/fisker/jpeg-buffer-orientation.git"
},
"author": { "name": "fisker", "email": "lionkay@gmail.com" },
"license": "MIT",
"scripts": {
"build": "npm-run-all build:*",
"build:js": "rollup --config",
"dist": "npm-run-all dist:*",
"dist:npm": "np --yolo --no-yarn",
"clean": "rimraf lib",
"test-coverage": "jest --coverage",
"lint": "npm-run-all lint:*",
"lint:js": "eslint src/**/*.js --fix",
"release": "run-s clean lint build test dist",
"test": "jest"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog-emoji"
}
},
"publishConfig": { "registry": "https://registry.npmjs.org/" },
"devDependencies": {
"@babel/core": "^7.3.4",
"@babel/preset-env": "^7.3.4",
"@commitlint/cli": "^7.5.2",
"@commitlint/config-conventional": "^7.5.0",
"@xwtec/eslint-config": "^3.7.0",
"babel-jest": "^24.5.0",
"cz-conventional-changelog-emoji": "^0.1.0",
"eslint": "^5.15.2",
"husky": "^1.3.1",
"jest": "^24.5.0",
"lint-staged": "^8.1.5",
"markdownlint-cli": "^0.14.0",
"np": "^4.0.2",
"npm-run-all": "^4.1.5",
"prettier": "^1.16.4",
"rimraf": "^2.6.3",
"rollup": "^1.6.0",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-commonjs": "^9.2.1",
"rollup-plugin-filesize": "^6.0.1",
"rollup-plugin-node-resolve": "^4.0.1",
"rollup-plugin-terser": "^4.0.4"
},
"bugs": {
"url": "https://github.com/fisker/jpeg-buffer-orientation/issues"
},
"homepage": "https://github.com/fisker/jpeg-buffer-orientation#readme",
"_id": "jpeg-buffer-orientation@0.0.0",
"_npmVersion": "6.4.1",
"_nodeVersion": "10.15.1",
"_npmUser": { "name": "fisker", "email": "lionkay@gmail.com" },
"dist": {
"integrity": "sha512-l+K6X8I+7L4PyH3exEjI8eaoJaMVlBSOB0gQCS+9Vb8ZPHO2vek2eDC0GwrVMpMCAtywBRlVvo1IF8Jf8IPrDA==",
"shasum": "3361a6c860be95c95fea4488e96f7cd3c47340a9",
"tarball": "https://registry.npmjs.org/jpeg-buffer-orientation/-/jpeg-buffer-orientation-0.0.0.tgz",
"fileCount": 1,
"unpackedSize": 1726,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJckdAzCRA9TVsSAnZWagAAyhwQAIREmZ0xP7mEd+2r4NN1\n4AlLcuA5Ac6TvDCS5En/RaX2iE9Djcr7lZlOpDt/G1yQcU8x0Q+C9WSxuWCl\nKtpKBdjuMXy7Z9QsnaCfcdv5ogLAr9TAFELTR4Oljzf/CQVyJDX687LVKfNc\nn/HaS83E0Z/lv3RxpzP8XEpNLk265Ogqb8rXQxcjYMfcBNonWs3pSGuhbef7\nRjhB3qq3R9Q1FWalB8NHlF+licXU/g8CJIJrZ/uMK+YsrBS62F1RBoqTxo/2\npNoiBNIp0VSDDpERJittwWi4rlE2s2WQIZGWYop16kvgGhanlucK1aqCFuRn\n64w4ZnO4JcRxxcSTAyXdqogprH4ATOMA2de3IIvMvovsuocNEQOgbn8+J6li\n8Dm4gws+WE4AMACyXFbw6a1UGYd+g/UQGDYykn8xVVPuQ785B3/x9lcAkb83\nmjZ9cVOwWkPuhoyeYd1Ty/LRzJI0wKIEQWvFONdnLXrfbDnMjYC+5uzr5W5r\nxnOSeOKGL1jU5NZPA2k7JHADWekFaP4FE9v4WTeQwjBKIfAK2QoEcwLYyD8i\noUWpxnI4iyvxU8guH8lWL+B0fSQqqAWrSrBoWmcfcPtb2hRheK6kW3KBPZwn\nLsXqGNO2zjBV927rVP7+1mfD4HOBB9cR9jteupOdkrh4lKoAKPWlqR4jxE6Z\now7c\r\n=x3NH\r\n-----END PGP SIGNATURE-----\r\n"
},
"maintainers": [{ "name": "fisker", "email": "lionkay@gmail.com" }],
"directories": {},
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/jpeg-buffer-orientation_0.0.0_1553059891151_0.6286552659517253"
},
"_hasShrinkwrap": false
},
"1.0.0": {
"name": "jpeg-buffer-orientation",
"version": "1.0.0",
"description": "get orientation from a jpeg buffer",
"main": "lib/index.common.js",
"module": "lib/index.min.mjs",
"browser": "lib/index.min.js",
"unpkg": "lib/index.min.js",
"jsdelivr": "lib/index.min.js",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/fisker/jpeg-buffer-orientation.git"
},
"author": { "name": "fisker", "email": "lionkay@gmail.com" },
"license": "MIT",
"scripts": {
"build": "npm-run-all build:*",
"build:js": "rollup --config",
"docs": "npm-run-all docs:*",
"docs:js": "cpy lib docs/lib",
"docs:image": "cpy __tests__/fixture docs/images",
"docs:html": "cpy src/index.html docs",
"prettier": "prettier --write",
"dist": "npm-run-all dist:*",
"dist:npm": "np --yolo --no-yarn",
"clean": "rimraf lib docs",
"test-coverage": "jest --coverage",
"lint": "npm-run-all lint:*",
"lint:js": "eslint src/**/*.js --fix",
"release": "run-s clean lint build test docs dist",
"test": "jest"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog-emoji"
}
},
"publishConfig": { "registry": "https://registry.npmjs.org/" },
"devDependencies": {
"@babel/core": "^7.3.4",
"@babel/preset-env": "^7.3.4",
"@commitlint/cli": "^7.5.2",
"@commitlint/config-conventional": "^7.5.0",
"@xwtec/eslint-config": "^3.7.0",
"babel-jest": "^24.5.0",
"cpy-cli": "^2.0.0",
"cz-conventional-changelog-emoji": "^0.1.0",
"eslint": "^5.15.2",
"husky": "^1.3.1",
"jest": "^24.5.0",
"lint-staged": "^8.1.5",
"markdownlint-cli": "^0.14.0",
"np": "^4.0.2",
"npm-run-all": "^4.1.5",
"prettier": "^1.16.4",
"rimraf": "^2.6.3",
"rollup": "^1.6.0",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-filesize": "^6.0.1",
"rollup-plugin-prettier": "^0.6.0",
"rollup-plugin-terser": "^4.0.4"
},
"gitHead": "7c8f6029180cfd4ac22ac01f09694456acdedf29",
"bugs": {
"url": "https://github.com/fisker/jpeg-buffer-orientation/issues"
},
"homepage": "https://github.com/fisker/jpeg-buffer-orientation#readme",
"_id": "jpeg-buffer-orientation@1.0.0",
"_npmVersion": "6.4.1",
"_nodeVersion": "10.15.1",
"_npmUser": { "name": "fisker", "email": "lionkay@gmail.com" },
"dist": {
"integrity": "sha512-Rtqsi3QzdZ4Z+WaACSlgKwpHqAHCVOlNfPeA8MwBWN40d+AUUGVavBO6GVCpCTfn4HO1548WKOz8+WKK4CzThQ==",
"shasum": "644af85e85e1a914c3535701b17e5982b4345882",
"tarball": "https://registry.npmjs.org/jpeg-buffer-orientation/-/jpeg-buffer-orientation-1.0.0.tgz",
"fileCount": 12,
"unpackedSize": 53180,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcke1qCRA9TVsSAnZWagAAetgP+wUE+TTsFLLiXh2O49r0\n9eO7K7xCe7jACd8TtGr9KkQlaN52qm8FjySwo+cW/CUpGpMGNrxt3iy/gK8e\nhckhZH6jv+0bsBmXaaZ0i0rApPS+DHnldCOeCcH546cm009kpBIj9sSNk8Y4\nROnpqWt+epggThF7q4ogwv2rVYtDuBUPyVnnmdZQx+DtyAt4lFliDhMcqjDt\nv1A6sC0uX4gNd8IlwKcybIxp2wChgfsMwsojmInEyscIcAcH8n1S+wQptLu2\n4ercNCKhZrqt9C8Zz69p/RMJf8kGAhC23JuW6F/4v1SpfQsxOeGG7v6hupTj\nFHvSRmIXK3mIltWIv8v+G+BMEAARDp1PZF7TURxStVEPjd/zHLP/cvi3sIYw\nGTEbdVbsvxUM5nHUtesVpCKAZgfoA3rl8xoGsC/x9fYYAQHWkYRqqlNlhVxh\n6mH6VogdIG8T3VVVlxlde3dHbM7zmCC5dF00ztMjrJisd6Cx7Pj/y5qg/5KQ\ngeg+Ytcf7YMMB7AQ/9V3RvPgQcoue/gdGng93nsHgib8csbDihUmct7yaFNQ\nFCuoinLU5DR+qZjLGy7bcYSIn7zXM6CN1MCdDbkz52sD2eG3zfz9mJyPBrey\nGCECLoh9rQSu3Zon85M4dfdwKQwtT0qtCxOhHHJH/Lo0nSV0XBEDWkn+qnc1\nqqsY\r\n=HfFE\r\n-----END PGP SIGNATURE-----\r\n"
},
"maintainers": [{ "name": "fisker", "email": "lionkay@gmail.com" }],
"directories": {},
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/jpeg-buffer-orientation_1.0.0_1553067369550_0.22923552775192269"
},
"_hasShrinkwrap": false
},
"1.0.1": {
"name": "jpeg-buffer-orientation",
"version": "1.0.1",
"description": "get orientation from a jpeg buffer",
"main": "lib/index.common.js",
"module": "lib/index.min.mjs",
"browser": "lib/index.min.js",
"unpkg": "lib/index.min.js",
"jsdelivr": "lib/index.min.js",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/fisker/jpeg-buffer-orientation.git"
},
"author": {
"name": "fisker Cheung",
"email": "lionkay@gmail.com",
"url": "https://www.fiskercheung.com/"
},
"license": "MIT",
"scripts": {
"build": "run-p build:*",
"build:js": "rollup --config",
"docs": "run-p docs:*",
"docs:js": "cpy lib docs/lib",
"docs:image": "cpy __tests__/fixture docs/images",
"docs:html": "cpy src/index.html docs",
"prettier": "prettier **/*.{css,html,js,json,less,md,scss,ts,vue,yaml,yml} --write",
"dist": "run-p dist:*",
"dist:npm": "np --yolo --no-yarn",
"clean": "rimraf lib docs",
"test-coverage": "jest --coverage",
"lint": "run-p lint:*",
"lint:eslint": "eslint **/*.{js,mjs,vue} --fix",
"lint:markdown": "markdownlint **/*.md --ignore \"**/node_modules/**\"",
"release": "run-s clean lint build test docs dist",
"test": "jest"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog-emoji"
}
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"devDependencies": {
"@babel/core": "^7.4.5",
"@babel/preset-env": "^7.4.5",
"@commitlint/cli": "^7.6.1",
"@fisker/commitlint-config": "^1.0.8",
"@fisker/eslint-config": "^1.0.14",
"@fisker/eslint-config-jest": "^1.0.2",
"@fisker/husky-config": "^1.1.0",
"@fisker/lint-staged-config": "^1.0.4",
"@fisker/prettier-config": "^1.0.17",
"babel-jest": "^24.8.0",
"cpy-cli": "^2.0.0",
"cz-conventional-changelog-emoji": "^0.1.0",
"eslint": "^5.16.0",
"husky": "^2.3.0",
"jest": "^24.8.0",
"lint-staged": "^8.1.7",
"markdownlint-cli": "^0.16.0",
"npm-run-all": "^4.1.5",
"prettier": "^1.17.1",
"rimraf": "^2.6.3",
"rollup": "^1.12.3",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-filesize": "^6.0.1",
"rollup-plugin-prettier": "^0.6.0",
"rollup-plugin-terser": "^5.0.0"
},
"sideEffects": false,
"gitHead": "ad2936ba2ec94e468607180980184127b6393129",
"bugs": {
"url": "https://github.com/fisker/jpeg-buffer-orientation/issues"
},
"homepage": "https://github.com/fisker/jpeg-buffer-orientation#readme",
"_id": "jpeg-buffer-orientation@1.0.1",
"_npmVersion": "6.4.1",
"_nodeVersion": "10.15.3",
"_npmUser": { "name": "fisker", "email": "lionkay@gmail.com" },
"dist": {
"integrity": "sha512-6HqbecO5TQLHn0mS+FcdlAa44T2oC7fNxmFtwCZ4+DHWxvEDbPc2VHajsttxECATCEWmak83rkO5RG18fNke3Q==",
"shasum": "b6e2cc85cb16171f7787e68ac8957fde3c4ba7c1",
"tarball": "https://registry.npmjs.org/jpeg-buffer-orientation/-/jpeg-buffer-orientation-1.0.1.tgz",
"fileCount": 13,
"unpackedSize": 58042,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc5mHZCRA9TVsSAnZWagAA6CwP/jyig/OowXYAZJ66uThG\nRQjaN6fgCextNJNibjnew5L9jBZuH4g4wfZMpAFWaSOhVvefeiQJlcQeXu6G\nyi/bwaHePlW6zaf/4wZAf82s2DO0TIPWB6NoaK4GuDhk2MP+diw+JoANE+Np\nRENTPq4x7cZjBnhBJXjoR7OOyl+ASgzhn7iMe3ytqyO+LDNWhDOi+ZFr+9+R\nhcInAbZBFGqLdZxp3V43y5Tw1IN020lepWBrPPbXDlHpDstVoq7OlBlvFCXH\nhrKP2ahNNwGXc7d3Ru81026AwVh05wF92+ElCPB6Gftj5UergcEm5ThkBi4B\nX6dRmjSfp5i41y/kbVreenlh2Kvqvbr6JeZz2VKURj3lzrb4aySHh67h5MmX\nISoUJEHZQIn/ZaJZtv+6dKZH+/BT+Z29ZievAvJ2JKuC7JWXynyR48aM48JW\n7NpHQ1d4IviQ52QZeVAKcQ3pV3dg18e2lmm4iOSn+6QvPR0JiEoROc51vptL\ncSR+ttKWF31V6PHaRVs2bWLgWE62SjaGXx2e4A4SPRJR57+HINRvVU0YFiLm\nngrYIADy3vChuE4MKt1aSQd0FW39wFbwG6p1KuvMQnAeFexxO6C9j2fsakQX\nlsvehrW4hIDNE2Uq0NGb1++n/oZKlsT0RoKjz9uq/FScs6myTXE3mVWJi97e\nRvi6\r\n=NA7u\r\n-----END PGP SIGNATURE-----\r\n"
},
"maintainers": [{ "name": "fisker", "email": "lionkay@gmail.com" }],
"directories": {},
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/jpeg-buffer-orientation_1.0.1_1558602201058_0.8499780717859713"
},
"_hasShrinkwrap": false
},
"2.0.0": {
"name": "jpeg-buffer-orientation",
"version": "2.0.0",
"description": "get orientation from a jpeg buffer",
"main": "lib/index.common.js",
"module": "lib/index.min.mjs",
"browser": "lib/index.min.js",
"unpkg": "lib/index.min.js",
"jsdelivr": "lib/index.min.js",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/fisker/jpeg-buffer-orientation.git"
},
"author": {
"name": "fisker Cheung",
"email": "lionkay@gmail.com",
"url": "https://www.fiskercheung.com/"
},
"license": "MIT",
"scripts": {
"build": "run-p build:*",
"build:js": "rollup --config",
"docs": "run-p docs:*",
"docs:js": "cpy lib docs/lib",
"docs:image": "cpy __tests__/fixture docs/images",
"docs:html": "cpy src/index.html docs",
"dist": "run-p dist:*",
"dist:npm": "np --yolo --no-yarn",
"clean": "rimraf lib docs",
"test-coverage": "jest --coverage",
"lint": "run-p lint:*",
"lint:eslint": "eslint **/*.{js,mjs,vue}",
"lint:markdown": "markdownlint **/*.md --ignore \"**/node_modules/**\"",
"release": "run-s clean lint build test docs format dist",
"test": "jest",
"format": "run-p format:*",
"format:eslint": "yarn lint:eslint --fix",
"format:prettier": "prettier **/*.{css,html,js,json,less,md,scss,ts,vue,yaml,yml} --write"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog-emoji"
}
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"devDependencies": {
"@babel/core": "^7.4.5",
"@babel/preset-env": "^7.4.5",
"@commitlint/cli": "^8.0.0",
"@fisker/commitlint-config": "^1.1.0",
"@fisker/eslint-config": "^1.2.5",
"@fisker/eslint-config-jest": "^1.1.0",
"@fisker/husky-config": "^1.1.0",
"@fisker/lint-staged-config": "^1.0.4",
"@fisker/prettier-config": "^1.0.17",
"babel-jest": "^24.8.0",
"cpy-cli": "^2.0.0",
"cz-conventional-changelog-emoji": "^0.1.0",
"eslint": "^6.0.1",
"husky": "^3.0.0",
"jest": "^24.8.0",
"lint-staged": "^9.0.2",
"markdownlint-cli": "^0.17.0",
"npm-run-all": "^4.1.5",
"prettier": "^1.18.2",
"rimraf": "^2.6.3",
"rollup": "^1.16.4",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-filesize": "^6.1.1",
"rollup-plugin-prettier": "^0.6.0",
"rollup-plugin-terser": "^5.1.0"
},
"sideEffects": false,
"gitHead": "ee58378e15d96ed2acbb5fe134d34ef370c45e2b",
"bugs": {
"url": "https://github.com/fisker/jpeg-buffer-orientation/issues"
},
"homepage": "https://github.com/fisker/jpeg-buffer-orientation#readme",
"_id": "jpeg-buffer-orientation@2.0.0",
"_nodeVersion": "10.16.0",
"_npmVersion": "6.9.0",
"dist": {
"integrity": "sha512-kWcDqvQVMAOiQt0aw4wjm32+YTC+/nsIb3ziBdqtWvuYFKNgw+7InyeI9Zlsb/pzKMwXsDcaOamgCDjD9oX7NA==",
"shasum": "7b36f5750a2703db8852a54ec63a79207d41582d",
"tarball": "https://registry.npmjs.org/jpeg-buffer-orientation/-/jpeg-buffer-orientation-2.0.0.tgz",
"fileCount": 13,
"unpackedSize": 57482,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHXQOCRA9TVsSAnZWagAA92kP/AhzAERKOgVvqhJa7/LQ\nqNC1GJuSLB+koagdYSYEnqfVBcDXnIKCXxAM+XucdthphQjIT/YZxyWMpwVO\nnoGTcBYaMIhRVrkNp5u12qwCp/l/waSp8AkpYxR39EgRpJ/iv5T18hDkeAkv\nlyGL5kvkbMmW905Uk09e7QGLLXKgQcwU45Xx/0EddLJLKkAs/3/NtIoMRxWq\nEii/Zx1+1ZhbnE2BVadNWnwOptbgHjPAQtoBGITU5Jd6jdEIzjCZuPmi2LN4\nSTN+s4moqwjqo7H6SMabxsDmcqJVyvrDg5GwEb9pxxL9npVvh016YLjKJxa9\nYRHerNunt886SUA1FdXJGl3s6Xha+CRiqB6BWBMq6Y+yxE2Yf150MQNd10i7\nQDNO723PyunowGYG4Zs/sva38Wl7jIuYJ9vRoG2TCTzrQFbH4Puj5g/F4OPG\nXunL8NRJKyX1o9q1TLxS401GcI1g8eVWleXGcgb7yEn4X6DLy9/xn12sOEOk\nHne9yfDKsWeYXUBSCr1K0nJK3REz05mFEHQ2aVE95DNIPtVOD7WguCiKjkEf\nvPyV/MOfk+QorYoam9fd+yHffjzJQMN+9TLJ9AYRcGRbB32TfIEt8/yADh7L\nF5d19PYbCfXopWrFukQK/WYV44njO96uCet/Uuj/1cN4+VtENVm0zeulJpfH\npmp1\r\n=6riB\r\n-----END PGP SIGNATURE-----\r\n"
},
"maintainers": [{ "name": "fisker", "email": "lionkay@gmail.com" }],
"_npmUser": { "name": "fisker", "email": "lionkay@gmail.com" },
"directories": {},
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/jpeg-buffer-orientation_2.0.0_1562211341556_0.6252401222436288"
},
"_hasShrinkwrap": false
},
"2.0.1": {
"name": "jpeg-buffer-orientation",
"version": "2.0.1",
"description": "get orientation from a jpeg buffer",
"main": "lib/index.common.js",
"module": "lib/index.min.mjs",
"browser": "lib/index.min.js",
"unpkg": "lib/index.min.js",
"jsdelivr": "lib/index.min.js",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/fisker/jpeg-buffer-orientation.git"
},
"author": {
"name": "fisker Cheung",
"email": "lionkay@gmail.com",
"url": "https://www.fiskercheung.com/"
},
"license": "MIT",
"scripts": {
"build": "run-p build:*",
"build:js": "rollup --config",
"clean": "rimraf lib docs",
"dist": "run-p dist:*",
"dist:npm": "np --yolo --no-yarn",
"docs": "run-p docs:*",
"docs:html": "cpy src/index.html docs",
"docs:image": "cpy __tests__/fixture docs/images",
"docs:js": "cpy lib docs/lib",
"format": "run-p format:*",
"format:eslint": "yarn lint:eslint --fix",
"format:prettier": "prettier \"**/*.{css,html,js,json,less,md,scss,ts,vue,yaml,yml}\" --write",
"lint": "run-p lint:*",
"lint:eslint": "eslint \"**/*.{js,mjs,vue}\"",
"lint:markdown": "markdownlint \"**/*.md\" --ignore \"**/node_modules/**\"",
"lint:prettier": "prettier \"**/*.{css,html,js,json,less,md,scss,ts,vue,yaml,yml}\" --check",
"release": "run-s clean lint build test docs format dist",
"test": "jest",
"test-coverage": "jest --coverage"
},
"config": {
"commitizen": { "path": "./node_modules/cz-conventional-changelog" }
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"devDependencies": {
"@babel/core": "7.5.5",
"@babel/preset-env": "7.5.5",
"@commitlint/cli": "8.1.0",
"@fisker/commitlint-config": "1.1.2",
"@fisker/eslint-config": "1.2.8",
"@fisker/eslint-config-jest": "1.1.4",
"@fisker/husky-config": "1.1.1",
"@fisker/lint-staged-config": "1.0.5",
"@fisker/prettier-config": "1.0.18",
"@fisker/stylelint-config": "1.1.7",
"babel-jest": "24.8.0",
"cpy-cli": "2.0.0",
"cz-conventional-changelog": "3.0.2",
"eslint": "6.1.0",
"husky": "3.0.2",
"jest": "24.8.0",
"lint-staged": "9.2.1",
"markdownlint-cli": "0.17.0",
"npm-run-all": "4.1.5",
"prettier": "1.18.2",
"rimraf": "2.6.3",
"rollup": "1.17.0",
"rollup-plugin-babel": "4.3.3",
"rollup-plugin-filesize": "6.1.1",
"rollup-plugin-prettier": "0.6.0",
"rollup-plugin-terser": "5.1.1"
},
"sideEffects": false,
"gitHead": "6e430511b7a3b28193612718723bceca8b0f63bc",
"bugs": {
"url": "https://github.com/fisker/jpeg-buffer-orientation/issues"
},
"homepage": "https://github.com/fisker/jpeg-buffer-orientation#readme",
"_id": "jpeg-buffer-orientation@2.0.1",
"_nodeVersion": "10.16.0",
"_npmVersion": "6.9.0",
"dist": {
"integrity": "sha512-IJnFZo+qTlZPt28gztDoBaLRY+3wcsIHKxki0vNgD3apZLC0Km8OVk8gJE4CtZJv6T7gx2bOWVWK5TkeJpHz6A==",
"shasum": "b8f1351ee70754c39b92e3c7179cc90fbb40c741",
"tarball": "https://registry.npmjs.org/jpeg-buffer-orientation/-/jpeg-buffer-orientation-2.0.1.tgz",
"fileCount": 13,
"unpackedSize": 57596,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdQXtvCRA9TVsSAnZWagAACB0P/1kUKymbKIvVFm9YvVqZ\nCgIlabOLxEXEflS0i5fAm4vuSlglOc4dv+FEGW28Pf4H6aJ0Er8zg+cDRqCC\nV57zDoNllxmCzwiYCPYR42mVpn3mKttlERZSaaQh9IK+4titHDrtFiDQW6wI\nd7A1eloTVN1GOrjFUZV5mLr8yQHZFNnmvNKyEr4lUhS0lgDcZApnIQpVjA96\nZPORibdoWjjt5jfGKvJOo7YRGHdjUJ3dPOZvC0IMCyop786k9SncRadxu/uV\n/6iNCZ3YI5bGKNMuHh5f3ayxWR4tsSRUyMGYx3+xuAiLTqQoXcdZs+h155yE\n0MbQbRSQwKwKIgnHs64xTAvAfMQlZ/yOvRe2Aq3TZIWxPJMNbouEXWVDvR68\nlB8hmZq1NqwhdiLuKBURFblLWeiknKLWTYuR+e6NMBdbqh6u6Vx+LC+u+zrM\nKsqWJs/GT0vBj0e7AgTrwdLbgL2c9wNernAOLUQ7YDb0RVn5CIiqSyuZD4Wn\nIu983eNQa0RSskYg53UVg3s6nD6O0bF4ceoHntdc+G+Bdt1MkJth5bcPNtY6\nQsxb0v0Yq6Uob9W6WXayxg8eGcYnRG7lU40BuPYrLYbvDF6YxkJd/sUNOThX\nIEdkiiA8ngWAyOMxiEnwquh0bqmYD4OSf9rAnLRhiioVymb6GTVH2IEYsAg8\nru0r\r\n=Q658\r\n-----END PGP SIGNATURE-----\r\n"
},
"maintainers": [{ "name": "fisker", "email": "lionkay@gmail.com" }],
"_npmUser": { "name": "fisker", "email": "lionkay@gmail.com" },
"directories": {},
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/jpeg-buffer-orientation_2.0.1_1564572526461_0.7117217355647429"
},
"_hasShrinkwrap": false
},
"2.0.2": {
"name": "jpeg-buffer-orientation",
"version": "2.0.2",
"description": "get orientation from a jpeg buffer",
"main": "lib/index.common.js",
"module": "lib/index.min.mjs",
"browser": "lib/index.min.js",
"unpkg": "lib/index.min.js",
"jsdelivr": "lib/index.min.js",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/fisker/jpeg-buffer-orientation.git"
},
"author": {
"name": "fisker Cheung",
"email": "lionkay@gmail.com",
"url": "https://www.fiskercheung.com/"
},
"license": "MIT",
"scripts": {
"build": "run-p build:*",
"build:js": "rollup --config",
"clean": "rimraf lib docs",
"dist": "run-p dist:*",
"dist:npm": "np --yolo --no-yarn",
"docs": "run-p docs:*",
"docs:html": "cpy src/index.html docs",
"docs:image": "cpy __tests__/fixture docs/images",
"docs:js": "cpy lib docs/lib",
"format": "run-p format:*",
"format:eslint": "yarn lint:eslint --fix",
"format:prettier": "prettier \"**/*.{css,html,js,json,less,md,scss,ts,vue,yaml,yml}\" --write",
"lint": "run-p lint:*",
"lint:eslint": "eslint \"**/*.{js,mjs,vue}\"",
"lint:markdown": "markdownlint \"**/*.md\" --ignore \"**/node_modules/**\"",
"lint:prettier": "prettier \"**/*.{css,html,js,json,less,md,scss,ts,vue,yaml,yml}\" --check",
"release": "run-s clean lint build test docs format dist",
"test": "jest",
"test-coverage": "jest --coverage"
},
"config": {
"commitizen": { "path": "./node_modules/cz-conventional-changelog" }
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"devDependencies": {
"@babel/core": "7.6.4",
"@babel/preset-env": "7.6.3",
"@commitlint/cli": "8.2.0",
"@fisker/commitlint-config": "1.1.3",
"@fisker/eslint-config": "1.3.4",
"@fisker/eslint-config-jest": "1.1.12",
"@fisker/husky-config": "1.1.3",
"@fisker/lint-staged-config": "1.0.6",
"@fisker/prettier-config": "1.0.21",
"babel-jest": "24.9.0",
"cpy-cli": "2.0.0",
"cz-conventional-changelog": "3.0.2",
"eslint": "6.5.1",
"husky": "3.0.9",
"jest": "24.9.0",
"lint-staged": "9.4.2",
"markdownlint-cli": "0.19.0",
"npm-run-all": "4.1.5",
"nyc": "14.1.1",
"prettier": "1.18.2",
"rimraf": "3.0.0",
"rollup": "1.25.2",
"rollup-plugin-babel": "4.3.3",
"rollup-plugin-filesize": "6.2.1",
"rollup-plugin-prettier": "0.6.0",
"rollup-plugin-terser": "5.1.2"
},
"sideEffects": false,
"gitHead": "906a353d85a51842a2b4b2fde244e0670e61ef94",
"bugs": {
"url": "https://github.com/fisker/jpeg-buffer-orientation/issues"
},
"homepage": "https://github.com/fisker/jpeg-buffer-orientation#readme",
"_id": "jpeg-buffer-orientation@2.0.2",
"_nodeVersion": "10.16.3",
"_npmVersion": "6.9.0",
"dist": {
"integrity": "sha512-ps1FhBCsK16dXNpsFTEbQk359XIYtJ4b66+jhwDSR4+X/Hae1dIPq5337aKo3aasPoV/0m2tOao4Hxeaae8MJA==",
"shasum": "28c8baadb3f9dc1ff48fef97753d27443e240294",
"tarball": "https://registry.npmjs.org/jpeg-buffer-orientation/-/jpeg-buffer-orientation-2.0.2.tgz",
"fileCount": 13,
"unpackedSize": 58999,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdsBeJCRA9TVsSAnZWagAA9dIP/A8LqjM3aPYseuXrGReU\nSSfvHRjLhLlTqnYsl5Z3oAKJTTtqskFJDWBlp1cGqhiM+GdAxSlrziCZNc6u\n6HRAwrCPFMlzrOGZG8iXCOQGn+KtOoOkxeUTjUIugAm2P3/G/OmhflXoW64C\n71Igqae1gtG1u8cFLXM/gvXxVYLbxcAdBF72H4vB9bPhAxfOaJO2ljk/nW0z\nWmGs1IXqp9cyphyiPUukHvEr1YOxGbjGubHEZOPttaOZ01xA3sRpJqm7B0Bx\nQlIhpC5cfcYGiAFY520MvxJwIyDUqPXWgk1yVT9dpHxEUG1Z0j04A/ZZV9B0\nPJxjRI4hqFCElFjLoqq/zBJmf0UCbwJdFJnZHWxIUzJuitLemfyYuNfwcvuP\nkprGeI5Aa4EyHAOCfxIfhcJRjQu3cA+99Dm5Ql3ywQqqsGmMDx6MkOCHgJmo\n0tD8mPt/pZVjWnvmtV0dOnu6Me6VYNwKamWV/qqV4hYzFVhCvoXQRmk1VQ5w\n/896bJbPs3qksbX2nKIMV2XYirRs9PeQUU2ZHiJJrrRc56W9ee10Z7dbOMku\nYsmJIedeMs0hXpvP4jC4Mgx6O5FX8KmXqI8+hegI5dhBTr9PxKUA5ZdV+IIj\nnEEUQEWoSq2bc4iFz/MFLkT5qw3a2oISaK9hyRW+XTAPWp2Ktm2hC91R0Ny9\nCjSV\r\n=jenZ\r\n-----END PGP SIGNATURE-----\r\n"
},
"maintainers": [{ "name": "fisker", "email": "lionkay@gmail.com" }],
"_npmUser": { "name": "fisker", "email": "lionkay@gmail.com" },
"directories": {},
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/jpeg-buffer-orientation_2.0.2_1571821449502_0.004977468991351097"
},
"_hasShrinkwrap": false
},
"2.0.3": {
"name": "jpeg-buffer-orientation",
"version": "2.0.3",
"description": "get orientation from a jpeg buffer",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/fisker/jpeg-buffer-orientation.git"
},
"license": "MIT",
"author": {
"name": "fisker Cheung",
"email": "lionkay@gmail.com",
"url": "https://www.fiskercheung.com/"
},
"sideEffects": false,
"main": "dist/index.common.js",
"jsdelivr": "dist/index.min.js",
"unpkg": "dist/index.min.js",
"module": "dist/index.min.mjs",
"browser": "dist/index.min.js",
"scripts": {
"build": "run-p build:*",
"build:js": "rollup --config",
"clean": "run-p clean:*",
"clean:dist": "del-cli dist docs",
"dist": "run-p dist:*",
"dist:npm": "np --yolo --no-yarn",
"docs": "run-p docs:*",
"docs:html": "cpy src/index.html docs",
"docs:image": "cpy __tests__/fixture docs/images",
"docs:js": "cpy dist docs/dist",
"format": "run-p format:*",
"format:eslint": "yarn lint:eslint --fix",
"format:markdown": "yarn lint:markdown --fix",
"format:package-json": "sort-package-json \"package.json\" \"packages/*/package.json\"",
"format:prettier": "yarn lint:prettier --write",
"lint": "run-p lint:*",
"lint:eslint": "eslint \"**/*.{js,mjs,vue}\"",
"lint:markdown": "markdownlint \"**/*.md\" --ignore \"**/node_modules/**\"",
"lint:package-json": "yarn run format:package-json --check",
"lint:prettier": "prettier \"**/*.{css,html,js,json,less,md,scss,ts,vue,yaml,yml}\" --check",
"release": "run-s clean lint build test docs format dist",
"test": "jest",
"test-coverage": "jest --coverage"
},
"config": {
"commitizen": { "path": "./node_modules/cz-conventional-changelog" }
},
"devDependencies": {
"@babel/core": "7.7.4",
"@babel/preset-env": "7.7.4",
"@commitlint/cli": "8.2.0",
"@fisker/commitlint-config": "1.1.4",
"@fisker/eslint-config": "1.5.1",
"@fisker/eslint-config-jest": "1.2.1",
"@fisker/husky-config": "1.1.5",
"@fisker/lint-staged-config": "1.0.8",
"@fisker/prettier-config": "1.0.24",
"babel-jest": "24.9.0",
"cpy-cli": "2.0.0",
"cz-conventional-changelog": "3.0.2",
"del-cli": "3.0.0",
"eslint": "6.7.2",
"husky": "3.1.0",
"jest": "24.9.0",
"lint-staged": "9.5.0",
"markdownlint-cli": "0.19.0",
"npm-run-all": "4.1.5",
"nyc": "14.1.1",
"prettier": "1.19.1",
"rollup": "1.27.8",
"rollup-plugin-babel": "4.3.3",
"rollup-plugin-filesize": "6.2.1",
"rollup-plugin-prettier": "0.6.0",
"rollup-plugin-terser": "5.1.2",
"sort-package-json": "1.30.0"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"gitHead": "f5819df4eb6ebccc968d371931b31554ade5d436",
"bugs": {
"url": "https://github.com/fisker/jpeg-buffer-orientation/issues"
},
"homepage": "https://github.com/fisker/jpeg-buffer-orientation#readme",
"_id": "jpeg-buffer-orientation@2.0.3",
"_nodeVersion": "10.16.2",
"_npmVersion": "6.9.0",
"dist": {
"integrity": "sha512-lHjA3pL9Z3CcHgwnTMUg10OBNzHLcOuTTn/kro1p8bJLf61Kc0F8eJ47IJvOPWmdo2NgyJK5CoM68LCD3K32Yg==",
"shasum": "4af45cbb82dfe0767e9a8d5ac9101e856c3919d5",
"tarball": "https://registry.npmjs.org/jpeg-buffer-orientation/-/jpeg-buffer-orientation-2.0.3.tgz",
"fileCount": 13,
"unpackedSize": 59245,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd5pXZCRA9TVsSAnZWagAA32MP+wTg26qr54KeHUJdDPZ4\nO9049lxvIS5cGUpOEW1dKxL965jYISP15K1Jj9WDf2CZWoOMOFDj7Z2fZ9kg\n4j4tPyrHeBsmcOIwBXAgheyepFkyNb7FiTNxAXlvUQzMuI0lNsk7dvuTQ33X\nWz/TcovMlupsENM3mvVRDLYy3ThIdi5wezrjahwqdS6o9MBlXDzVv3Gbu7Wn\nc4w5kI9YgzSRRCbZjbOnBYYM09xMFcgGeER5w/OuUuzDYJA9KzK1S+VnlUq2\nKtcxS8e8mW85rGvg00wTVhsi6zV6Od36N1ajVKB+dStzCyCzydyQuMfSpDIa\ni+X1zeyYRiifKl5BMehIH2c+CQuKwcVGtl1Gz0ZqnRYenz2/qMzJeyc+hIhD\nsZmax5M0A3nUaEsPYG4I6E8RAdtH5CwhasrYJ3JC1rOmTlgSWFNfzEApdKC4\nFBnEXC2uGD91r/z/9RkvRHGD+HB65qpN5RjEGAMT7iElHfMDi10F0UfiZ1Lq\nSERrTy/rV+zq5CDF2ZWRz/dbZw4DH00uFYYBjKzm7Rq9Whq3e8tJvC6vhIvh\nFD4EGrNKmRS8C6IBApm9vWfg91ls5G0lAxz796q11doFFuG5Rz0oAbGM9TKa\ndIdf3OkhCkeuWpzE4eHUNM2R9o8Rb9Cm5pAAIEHHjg2/TOGu528KJKAqHD9O\ni5XC\r\n=BEKD\r\n-----END PGP SIGNATURE-----\r\n"
},
"maintainers": [{ "name": "fisker", "email": "lionkay@gmail.com" }],
"_npmUser": { "name": "fisker", "email": "lionkay@gmail.com" },
"directories": {},
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/jpeg-buffer-orientation_2.0.3_1575392728778_0.023808633142333724"
},
"_hasShrinkwrap": false
}
},
"time": {
"created": "2019-03-20T05:31:31.150Z",
"0.0.0": "2019-03-20T05:31:31.255Z",
"modified": "2019-12-03T17:05:32.836Z",
"1.0.0": "2019-03-20T07:36:09.665Z",
"1.0.1": "2019-05-23T09:03:21.205Z",
"2.0.0": "2019-07-04T03:35:41.727Z",
"2.0.1": "2019-07-31T11:28:46.602Z",
"2.0.2": "2019-10-23T09:04:09.659Z",
"2.0.3": "2019-12-03T17:05:28.947Z"
},
"maintainers": [{ "name": "fisker", "email": "lionkay@gmail.com" }],
"description": "get orientation from a jpeg buffer",
"homepage": "https://github.com/fisker/jpeg-buffer-orientation#readme",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/fisker/jpeg-buffer-orientation.git"
},
"author": {
"name": "fisker Cheung",
"email": "lionkay@gmail.com",
"url": "https://www.fiskercheung.com/"
},
"bugs": { "url": "https://github.com/fisker/jpeg-buffer-orientation/issues" },
"license": "MIT",
"readme": "# jpeg-buffer-orientation\n\n[![gzip size](http://img.badgesize.io/https://unpkg.com/jpeg-buffer-orientation/dist/index.min.mjs?compression=gzip&style=flat-square)](http://img.badgesize.io/https://unpkg.com/jpeg-buffer-orientation/dist/index.min.mjs)\n\n[![Travis](https://img.shields.io/travis/fisker/jpeg-buffer-orientation.svg?style=flat-square)](https://travis-ci.org/fisker/jpeg-buffer-orientation)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/f1c92423809b450e871e4812581f8fe6)](https://app.codacy.com/app/fisker/jpeg-buffer-orientation?utm_source=github.com&utm_medium=referral&utm_content=fisker/jpeg-buffer-orientation&utm_campaign=Badge_Grade_Settings)\n[![Coveralls github](https://img.shields.io/coveralls/github/fisker/jpeg-buffer-orientation.svg?style=flat-square)](https://coveralls.io/github/fisker/jpeg-buffer-orientation)\n\n[![devDependencies](https://img.shields.io/david/dev/fisker/jpeg-buffer-orientation.svg?style=flat-square)](https://david-dm.org/fisker/jpeg-buffer-orientation)\n[![Issues](http://img.shields.io/github/issues/fisker/jpeg-buffer-orientation.svg?style=flat-square)](https://github.com/fisker/jpeg-buffer-orientation/issues)\n[![Issues](https://img.shields.io/github/issues-pr/fisker/jpeg-buffer-orientation.svg?style=flat-square)](https://github.com/fisker/jpeg-buffer-orientation/pulls)\n[![GitHub last commit](https://img.shields.io/github/last-commit/fisker/jpeg-buffer-orientation.svg?style=flat-square)](https://github.com/fisker/jpeg-buffer-orientation/commits)\n[![GitHub Release Date](https://img.shields.io/github/release-date/fisker/jpeg-buffer-orientation.svg?style=flat-square)](https://github.com/fisker/jpeg-buffer-orientation/releases)\n\n[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![MIT license](https://img.shields.io/github/license/fisker/jpeg-buffer-orientation.svg?style=flat-square)](http://opensource.org/licenses/MIT)\n\n> get orientation from a jpeg buffer\n\n## Install\n\n```sh\nyarn add --dev jpeg-buffer-orientation\n```\n\n## Usage\n\nin browser\n\n```html\n<script type=\"module\">\n import getOrientation from 'https://unpkg.com/jpeg-buffer-orientation?module'\n\n const myJPEGFile = 'path/to/a/jpeg/file'\n\n // this time we use fetch to get a ArrayBuffer\n\n ;(async () => {\n const reponse = await fetch(myJPEGFile)\n const buffer = await response.arrayBuffer()\n const orientation = getOrientation(buffer)\n\n console.log('orientation', orientation)\n })()\n</script>\n```\n\n[demo](https://fisker.github.com/jpeg-buffer-orientation)\n\nin browser (legacy)\n\n```html\n<script src=\"https://unpkg.com/jpeg-buffer-orientation\"></script>\n<script>\n const blob = someJPEGBlob\n\n // this time we use FileReader to get a ArrayBuffer\n\n const fileReader = new FileReader()\n fileReader.readAsArrayBuffer(blob)\n fileReader.onload = () => {\n console.log(getOrientation(fileReader.result))\n }\n</script>\n```\n\nin node\n\n```js\nimport getOrientation from 'jpeg-buffer-orientation'\n\nconst myJPEGFile = 'path/to/a/jpeg/file'\nconst {buffer} = readFileSync(myJPEGFile)\nconst orientation = getOrientation(buffer)\nconsole.log('orientation', orientation)\n```\n\n## API\n\ngetOrientation(buffer)\n\n- buffer\n\n type: `ArrayBuffer`\n\n- @returns\n\n type: `Number|undefined`\n\n## FYI\n\nthis package is design for use in browser, not optimized for node.\n\n1. accept `Buffer` instead of `ArrayBuffer` should be easier to use.\n2. instead of reading the whole image, just reading head maybe better.\n\n## License\n\nMIT © [fisker Cheung](https://github.com/fisker)\n",
"readmeFilename": "readme.md"
}

1459
info/noty.json Normal file

File diff suppressed because it is too large Load Diff

1636
info/prismjs.json Normal file

File diff suppressed because it is too large Load Diff

35988
info/styled-components.json Normal file

File diff suppressed because one or more lines are too long

688
info/svgstore.json Normal file

@ -0,0 +1,688 @@
{
"_id": "svgstore",
"_rev": "14-5f646a9496caeee910226d7dfc2fd445",
"name": "svgstore",
"description": "Combines mulitple svg files into one.",
"dist-tags": { "latest": "3.0.0-2", "next": "3.0.0-0" },
"versions": {
"1.0.0": {
"name": "svgstore",
"version": "1.0.0",
"description": "Combines mulitple svg files into one.",
"main": "src/svgstore.js",
"scripts": {
"coveralls": "nyc report -r text-lcov | coveralls",
"pretest": "xo src/*.js test/*.js",
"test": "nyc ava -v",
"posttest": "nyc report -r lcov",
"watch": "chokidar '{src,test}/**/*.js' -c 'npm test'"
},
"repository": {
"type": "git",
"url": "https://github.com/shannonmoeller/svgstore.git"
},
"keywords": [
"concat",
"join",
"merge",
"pack",
"path",
"sprite",
"svg",
"svgs",
"svgstore",
"symbol",
"symbols"
],
"author": {
"name": "Shannon Moeller",
"email": "me@shannonmoeller.com",
"url": "http://shannonmoeller.com"
},
"license": "MIT",
"bugs": { "url": "https://github.com/shannonmoeller/svgstore/issues" },
"homepage": "https://github.com/shannonmoeller/svgstore",
"dependencies": { "cheerio": "^0.20.0" },
"devDependencies": {
"ava": "^0.12.0",
"chokidar-cli": "^1.2.0",
"coveralls": "^2.11.6",
"nyc": "^6.0.0",
"xo": "^0.12.1"
},
"engines": { "node": ">= 0.12" },
"gitHead": "23ad86240e00ba80d3ddbc2607ead4916978450a",
"_id": "svgstore@1.0.0",
"_shasum": "92dd8bd140a80e457a642305297e0ab73f1fd5f3",
"_from": ".",
"_npmVersion": "3.6.0",
"_nodeVersion": "5.6.0",
"_npmUser": {
"name": "shannonmoeller",
"email": "me@shannonmoeller.com"
},
"dist": {
"shasum": "92dd8bd140a80e457a642305297e0ab73f1fd5f3",
"tarball": "https://registry.npmjs.org/svgstore/-/svgstore-1.0.0.tgz"
},
"maintainers": [
{ "name": "shannonmoeller", "email": "me@shannonmoeller.com" }
],
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/svgstore-1.0.0.tgz_1457558098823_0.10486977710388601"
},
"directories": {}
},
"1.1.0": {
"name": "svgstore",
"version": "1.1.0",
"description": "Combines mulitple svg files into one.",
"main": "src/svgstore.js",
"scripts": {
"coveralls": "nyc report -r text-lcov | coveralls",
"test": "xo src/*.js test/*.js; nyc ava -v",
"posttest": "nyc report -r lcov",
"watch": "chokidar '{src,test}/**/*.js' -c 'npm test'"
},
"repository": {
"type": "git",
"url": "git+https://github.com/shannonmoeller/svgstore.git"
},
"keywords": [
"concat",
"join",
"merge",
"pack",
"path",
"sprite",
"svg",
"svgs",
"svgstore",
"symbol",
"symbols"
],
"author": {
"name": "Shannon Moeller",
"email": "me@shannonmoeller.com",
"url": "http://shannonmoeller.com"
},
"license": "MIT",
"bugs": { "url": "https://github.com/shannonmoeller/svgstore/issues" },
"homepage": "https://github.com/shannonmoeller/svgstore",
"dependencies": { "cheerio": "^0.20.0", "object-assign": "^4.1.0" },
"devDependencies": {
"ava": "0.15.2",
"chokidar-cli": "^1.2.0",
"coveralls": "^2.11.6",
"nyc": "^7.0.0",
"xo": "^0.16"
},
"engines": { "node": ">= 0.12" },
"gitHead": "7d5bc7cef614b698d57279a5a0b3a33a58bfb264",
"_id": "svgstore@1.1.0",
"_shasum": "a3fb5d731bcc24a70a0bb5303e34dad40500044e",
"_from": ".",
"_npmVersion": "3.10.3",
"_nodeVersion": "6.3.1",
"_npmUser": {
"name": "shannonmoeller",
"email": "me@shannonmoeller.com"
},
"dist": {
"shasum": "a3fb5d731bcc24a70a0bb5303e34dad40500044e",
"tarball": "https://registry.npmjs.org/svgstore/-/svgstore-1.1.0.tgz"
},
"maintainers": [
{ "name": "bsipple", "email": "bsipple57@gmail.com" },
{ "name": "shannonmoeller", "email": "me@shannonmoeller.com" }
],
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/svgstore-1.1.0.tgz_1470660692409_0.16017176560126245"
},
"directories": {}
},
"2.0.0": {
"name": "svgstore",
"version": "2.0.0",
"description": "Combines mulitple svg files into one.",
"main": "src/svgstore.js",
"scripts": {
"coveralls": "nyc report -r text-lcov | coveralls",
"pretest": "xo src/*.js test/*.js",
"test": "nyc ava -v",
"posttest": "nyc report -r lcov",
"watch": "chokidar '{src,test}/**/*.js' -d 1000 -c 'npm test'"
},
"repository": {
"type": "git",
"url": "git+https://github.com/svgstore/svgstore.git"
},
"keywords": [
"concat",
"join",
"merge",
"pack",
"path",
"sprite",
"svg",
"svgs",
"svgstore",
"symbol",
"symbols"
],
"author": {
"name": "Shannon Moeller",
"email": "me@shannonmoeller.com",
"url": "http://shannonmoeller.com"
},
"maintainers": [
{ "name": "bsipple", "email": "bsipple57@gmail.com" },
{ "name": "shannonmoeller", "email": "me@shannonmoeller.com" }
],
"license": "MIT",
"bugs": { "url": "https://github.com/svgstore/svgstore/issues" },
"homepage": "https://github.com/svgstore/svgstore",
"dependencies": { "cheerio": "^0.22.0", "object-assign": "^4.1.0" },
"devDependencies": {
"ava": "0.16.0",
"chokidar-cli": "^1.2.0",
"coveralls": "^2.11.12",
"nyc": "^8.1.0",
"xo": "^0.16"
},
"engines": { "node": ">= 0.12" },
"gitHead": "be4bc5189764deefb77f9db3e98e65ff2ff1eecd",
"_id": "svgstore@2.0.0",
"_shasum": "72d96baf74389a9eb41937fd037f6d18e9c8a395",
"_from": ".",
"_npmVersion": "3.10.8",
"_nodeVersion": "6.9.1",
"_npmUser": {
"name": "shannonmoeller",
"email": "me@shannonmoeller.com"
},
"dist": {
"shasum": "72d96baf74389a9eb41937fd037f6d18e9c8a395",
"tarball": "https://registry.npmjs.org/svgstore/-/svgstore-2.0.0.tgz"
},
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/svgstore-2.0.0.tgz_1481291505877_0.01739357877522707"
},
"directories": {}
},
"2.0.1": {
"name": "svgstore",
"version": "2.0.1",
"description": "Combines mulitple svg files into one.",
"main": "src/svgstore.js",
"scripts": {
"coveralls": "nyc report -r text-lcov | coveralls",
"pretest": "xo src/*.js test/*.js",
"test": "nyc ava -v",
"posttest": "nyc report -r lcov",
"watch": "chokidar '{src,test}/**/*.js' -d 1000 -c 'npm test'"
},
"repository": {
"type": "git",
"url": "git+https://github.com/svgstore/svgstore.git"
},
"keywords": [
"concat",
"join",
"merge",
"pack",
"path",
"sprite",
"svg",
"svgs",
"svgstore",
"symbol",
"symbols"
],
"author": {
"name": "Shannon Moeller",
"email": "me@shannonmoeller.com",
"url": "http://shannonmoeller.com"
},
"maintainers": [
{ "name": "bsipple", "email": "bsipple57@gmail.com" },
{ "name": "shannonmoeller", "email": "me@shannonmoeller.com" }
],
"license": "MIT",
"bugs": { "url": "https://github.com/svgstore/svgstore/issues" },
"homepage": "https://github.com/svgstore/svgstore",
"dependencies": { "cheerio": "^0.22.0", "object-assign": "^4.1.0" },
"devDependencies": {
"ava": "0.16.0",
"chokidar-cli": "^1.2.0",
"coveralls": "^2.11.12",
"nyc": "^8.1.0",
"xo": "^0.16"
},
"engines": { "node": ">= 0.12" },
"gitHead": "2173923027049d4c12f0e09c2458c1798c1686b9",
"_id": "svgstore@2.0.1",
"_shasum": "610bc9aaf00e44b8087907e7b626feb2d1291575",
"_from": ".",
"_npmVersion": "3.10.8",
"_nodeVersion": "6.9.1",
"_npmUser": {
"name": "shannonmoeller",
"email": "me@shannonmoeller.com"
},
"dist": {
"shasum": "610bc9aaf00e44b8087907e7b626feb2d1291575",
"tarball": "https://registry.npmjs.org/svgstore/-/svgstore-2.0.1.tgz"
},
"_npmOperationalInternal": {
"host": "packages-18-east.internal.npmjs.com",
"tmp": "tmp/svgstore-2.0.1.tgz_1481292207125_0.2159856262151152"
},
"directories": {}
},
"2.0.2": {
"name": "svgstore",
"version": "2.0.2",
"description": "Combines mulitple svg files into one.",
"main": "src/svgstore.js",
"scripts": {
"coveralls": "nyc report -r text-lcov | coveralls",
"pretest": "xo src/*.js test/*.js",
"test": "nyc ava -v",
"posttest": "nyc report -r lcov",
"watch": "chokidar '{src,test}/**/*.js' -d 1000 -c 'npm test'"
},
"repository": {
"type": "git",
"url": "git+https://github.com/svgstore/svgstore.git"
},
"keywords": [
"concat",
"join",
"merge",
"pack",
"path",
"sprite",
"svg",
"svgs",
"svgstore",
"symbol",
"symbols"
],
"author": {
"name": "Shannon Moeller",
"email": "me@shannonmoeller.com",
"url": "http://shannonmoeller.com"
},
"maintainers": [
{ "name": "bsipple", "email": "bsipple57@gmail.com" },
{ "name": "shannonmoeller", "email": "me@shannonmoeller.com" }
],
"license": "MIT",
"bugs": { "url": "https://github.com/svgstore/svgstore/issues" },
"homepage": "https://github.com/svgstore/svgstore",
"dependencies": { "cheerio": "^0.22.0", "object-assign": "^4.1.0" },
"devDependencies": {
"ava": "0.16.0",
"chokidar-cli": "^1.2.0",
"coveralls": "^2.11.12",
"nyc": "^8.1.0",
"xo": "^0.16"
},
"engines": { "node": ">= 0.12" },
"gitHead": "eb87eefe81e6fad000ac717b31e1f4fe2aaac6a3",
"_id": "svgstore@2.0.2",
"_shasum": "18954ed1e571c389061ecdd3738baa41e4016cac",
"_from": ".",
"_npmVersion": "3.10.8",
"_nodeVersion": "6.9.1",
"_npmUser": {
"name": "shannonmoeller",
"email": "me@shannonmoeller.com"
},
"dist": {
"shasum": "18954ed1e571c389061ecdd3738baa41e4016cac",
"tarball": "https://registry.npmjs.org/svgstore/-/svgstore-2.0.2.tgz"
},
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/svgstore-2.0.2.tgz_1481307664151_0.29293247195892036"
},
"directories": {}
},
"2.0.3": {
"name": "svgstore",
"version": "2.0.3",
"description": "Combines mulitple svg files into one.",
"main": "src/svgstore.js",
"scripts": {
"coveralls": "nyc report -r text-lcov | coveralls",
"pretest": "xo src/*.js test/*.js",
"test": "nyc ava -v",
"posttest": "nyc report -r lcov",
"watch": "chokidar '{src,test}/**/*.js' -d 1000 -c 'npm test'"
},
"repository": {
"type": "git",
"url": "git+https://github.com/svgstore/svgstore.git"
},
"keywords": [
"concat",
"join",
"merge",
"pack",
"path",
"sprite",
"svg",
"svgs",
"svgstore",
"symbol",
"symbols"
],
"author": {
"name": "Shannon Moeller",
"email": "me@shannonmoeller.com",
"url": "http://shannonmoeller.com"
},
"maintainers": [
{ "name": "bsipple", "email": "bsipple57@gmail.com" },
{ "name": "shannonmoeller", "email": "me@shannonmoeller.com" }
],
"license": "MIT",
"bugs": { "url": "https://github.com/svgstore/svgstore/issues" },
"homepage": "https://github.com/svgstore/svgstore",
"dependencies": { "cheerio": "^0.22.0", "object-assign": "^4.1.0" },
"devDependencies": {
"ava": "0.16.0",
"chokidar-cli": "^1.2.0",
"coveralls": "^2.11.12",
"nyc": "^8.1.0",
"xo": "^0.16"
},
"engines": { "node": ">= 0.12" },
"gitHead": "5bfed8ae5f90b51be29673a90e3a4846b39b3400",
"_id": "svgstore@2.0.3",
"_npmVersion": "5.6.0",
"_nodeVersion": "8.9.4",
"_npmUser": {
"name": "shannonmoeller",
"email": "me@shannonmoeller.com"
},
"dist": {
"integrity": "sha512-K5GcfdH/lZbLyQv2Vi9pDAKUXBLZAn7eRoPGCzV+7gk7Fv/LOB1gLsNfevNSrcapX/q45M8x0XMct9ZjWRFImQ==",
"shasum": "63b3945c02062c3f7710f98ca17a3ea37a5f0e1d",
"tarball": "https://registry.npmjs.org/svgstore/-/svgstore-2.0.3.tgz"
},
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/svgstore-2.0.3.tgz_1517247314326_0.7908548447303474"
},
"directories": {}
},
"3.0.0-0": {
"name": "svgstore",
"version": "3.0.0-0",
"description": "Combines mulitple svg files into one.",
"main": "src/svgstore.js",
"scripts": {
"coveralls": "nyc report -r text-lcov | coveralls",
"pretest": "xo src/*.js test/*.js",
"test": "nyc ava -v",
"posttest": "nyc report -r lcov",
"watch": "chokidar '{src,test}/**/*.js' -d 1000 -c 'npm test'"
},
"repository": {
"type": "git",
"url": "git+https://github.com/svgstore/svgstore.git"
},
"keywords": [
"concat",
"join",
"merge",
"pack",
"path",
"sprite",
"svg",
"svgs",
"svgstore",
"symbol",
"symbols"
],
"author": {
"name": "Shannon Moeller",
"email": "me@shannonmoeller.com",
"url": "http://shannonmoeller.com"
},
"maintainers": [
{ "name": "bsipple", "email": "bsipple57@gmail.com" },
{ "name": "shannonmoeller", "email": "me@shannonmoeller.com" }
],
"license": "MIT",
"bugs": { "url": "https://github.com/svgstore/svgstore/issues" },
"homepage": "https://github.com/svgstore/svgstore",
"dependencies": { "cheerio": "^0.22.0", "object-assign": "^4.1.0" },
"devDependencies": {
"ava": "0.16.0",
"chokidar-cli": "^1.2.0",
"coveralls": "^2.11.12",
"nyc": "^8.1.0",
"xo": "^0.16"
},
"engines": { "node": ">= 0.12" },
"readme": "# svgstore\n\n[![NPM version][npm-img]][npm-url] [![Downloads][downloads-img]][npm-url] [![Build Status][travis-img]][travis-url] [![Coverage Status][coveralls-img]][coveralls-url]\n\nCombines multiple SVG files into one using `<symbol>` elements which you may [`<use>` in your markup](https://css-tricks.com/svg-sprites-use-better-icon-fonts/). Heavily inspired by [`grunt-svgstore`](https://github.com/FWeinb/grunt-svgstore) and [`gulp-svgstore`](https://github.com/w0rm/gulp-svgstore), this is a standalone module that may be [used in any asset pipeline](#future-goals).\n\n## Install\n\n $ npm install --save svgstore\n\n## Usage\n\n```js\nvar svgstore = require('svgstore');\nvar fs = require('fs');\n\nvar sprites = svgstore()\n .add('unicorn', fs.readFileSync('./unicorn.svg', 'utf8'))\n .add('rainbow', fs.readFileSync('./rainbow.svg', 'utf8'));\n\nfs.writeFileSync('./sprites.svg', sprites);\n```\n\nThe resulting file may be consumed in markup as external content.\n\n```html\n<body>\n <svg role=\"img\"><use xlink:href=\"./sprites.svg#unicorn\"/></svg>\n <svg role=\"img\"><use xlink:href=\"./sprites.svg#rainbow\"/></svg>\n</body>\n```\n\nSee the [examples directory](https://github.com/shannonmoeller/svgstore/tree/master/docs/examples) for more detail.\n\n## API\n\n### svgstore([options]): SvgStore\n\n- `options` `{Object}`: [Options for converting SVGs to symbols](#svgstore-options)\n\nCreates a container SVG sprites document.\n\n### .element\n\nThe current [cheerio](https://github.com/cheeriojs/cheerio) instance.\n\n### .add(id, svg [, options]): SvgStore\n\n- `id` `{String}` Unique `id` for this SVG file.\n- `svg` `{String}` Raw source of the SVG file.\n- `options` `{Object}` Same as the [options of `svgstore()`](#svgstore-options), but will only apply to this SVG file's `<symbol>`.\n\nAppends a file to the sprite with the given `id`.\n\n### .toString([options]): String\n\n- `options` `{Object}`\n - `inline` `{Boolean}` (default: `false`) Don't output `<?xml ?>`, `DOCTYPE`, and the `xmlns` attribute.\n\nOutputs sprite as a string of XML.\n\n## <a name=\"svgstore-options\"></a>Options\n\n- `cleanDefs` `{Boolean|Array}` (default: `false`) Remove `style` attributes from SVG definitions, or a list of attributes to remove.\n- `cleanSymbols` `{Boolean|Array}` (default: `false`) Remove `style` attributes from SVG objects, or a list of attributes to remove.\n- `svgAttrs` `{Boolean|Object}` (default: `false`) A map of attributes to set on the root `<svg>` element. If you set an attribute's value to null, you remove that attribute. Values may be functions like jQuery.\n- `symbolAttrs` `{Boolean|Object}` (default: `false`) A map of attributes to set on each `<symbol>` element. If you set an attribute's value to null, you remove that attribute. Values may be functions like jQuery.\n- `copyAttrs` `{Boolean|Array}` (default: `false`) Attributes to have `svgstore` attempt to copy to the newly created `<symbol>` tag from it's source `<svg>` tag. The `viewBox`, `aria-labelledby`, and `role` attributes are always copied.\n- `renameDefs` `{Boolean}` (default: `false`) Rename `defs` content ids to make them inherit files' names so that it would help to avoid defs with same ids in the output file.\n\n## Contributing\n\nStandards for this project, including tests, code coverage, and semantics are enforced with a build tool. Pull requests must include passing tests with 100% code coverage and no linting errors.\n\n### Test\n\n $ npm test\n\n## Future Goals\n\nThe svgstore organization began after it was noticed that the common [build task of converting an `<svg>` into a `<symbol>` tag](https://css-tricks.com/svg-symbol-good-choice-icons/) was being implemented in a similar manner by many different projects across the JavaScript ecosystem.\n\nThe long-term goal for this project, in particular, is to provide a single standalone module that can be plugged in to any asset pipeline, thus allowing pipeline tools to focus on providing clean APIs and interfaces related to their build process integration, rather than implementing/duplicating SVG conversion logic directly.\n\n#### Current build tools using `svgstore`:\n\n* [broccoli-svgstore][broccoli-svgstore]\n* [svgstore-cli][svgstore-cli]\n\n----\n\nMIT © [Shannon Moeller](http://shannonmoeller.com)\n\n[coveralls-img]: http://img.shields.io/coveralls/svgstore/svgstore/master.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/svgstore/svgstore\n[downloads-img]: http://img.shields.io/npm/dm/svgstore.svg?style=flat-square\n[npm-img]: http://img.shields.io/npm/v/svgstore.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/svgstore\n[travis-img]: http://img.shields.io/travis/svgstore/svgstore.svg?style=flat-square\n[travis-url]: https://travis-ci.org/svgstore/svgstore\n[broccoli-svgstore]: https://github.com/svgstore/broccoli-svgstore\n[svgstore-cli]: https://github.com/svgstore/svgstore-cli\n",
"readmeFilename": "readme.md",
"gitHead": "2d02e7b12efd2d709d9e33451695f90444c2dddc",
"_id": "svgstore@3.0.0-0",
"_npmVersion": "5.6.0",
"_nodeVersion": "8.11.4",
"_npmUser": {
"name": "shannonmoeller",
"email": "me@shannonmoeller.com"
},
"dist": {
"integrity": "sha512-hr0V7ZdfvseD+tu66ZB6X5h+eY+5LKMP1lFDR7dVEAnQbgEYBUh/4nM/uN6mIFjzZARsjpq5YsP7bTHIc2H3+w==",
"shasum": "a84965d425ebdf95daf1c52c11407b7018fc79d7",
"tarball": "https://registry.npmjs.org/svgstore/-/svgstore-3.0.0-0.tgz",
"fileCount": 19,
"unpackedSize": 37628,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbrOQKCRA9TVsSAnZWagAAm/QP/ijk4YOr37u/faH1SqPD\nFKfHYmWSzc7bsQolAdiEp8Cvaj/IlZi9xMaFV0w1uVhQJVqUT3RRYnI8DnTu\nhiqtQWpDXI/BqLOVsLZORSfYjSLe26iXxZ2r9NbACzoiisGk5N+vpkZCmRo/\ndOf/D9mnr+RVUo8OYvF2RHdLsG7XUkIiEMZxBHzCkinD6H5b5JQi4Zy8Bp4R\nRZxIL0uLhvCXuyMfkjTpWy2sK8Wdq3zhrvRcBWxt4/x+6brpbZUrswWqH+Cw\nuuJ23VJ1tJ0/5u3I8kGDSCGJUIqZ6za0UoD7I5zfepPCVgURSehukDn6bQJ1\nZbEg4D8AEe8uFrogiQ87Bhk1GNhXkS40c7/6Ml9RB6WD8RsWAmM1EBiEB7hh\n4xZtF52WU65H0NMQ8U+jCmw4HYkKGEDJLQ01nJFDNoD/gVmUqUrhpMkrgXsM\nm70KFGOfAzCK6Tnip9HejWAcMQ7YBSNNawpnMUgKsHfVEFqKrLKT0EAer0DY\nzUyfrthg8ea4jDOHUivccMbDH1JS2OYBBCTtpl7TGHFXaUxvs8/QHnYxi64U\nS8TX7/JQQLr2xCDUanceGOG5H9gyF0XWLZW44BKqxO9Vg7g1Rhff/KUaXRBn\nJNHNFbdpR8EwMCIWS1d66gEBMLED5GbzunbBly430v8/DxNGFK6ppwDVaTaO\nOaws\r\n=JGm8\r\n-----END PGP SIGNATURE-----\r\n"
},
"directories": {},
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/svgstore_3.0.0-0_1538057225624_0.3026307519576523"
},
"_hasShrinkwrap": false
},
"3.0.0-1": {
"name": "svgstore",
"version": "3.0.0-1",
"description": "Combines mulitple svg files into one.",
"main": "src/svgstore.js",
"scripts": {
"coveralls": "nyc report -r text-lcov | coveralls",
"test": "nyc ava -v",
"posttest": "nyc report -r lcov",
"watch": "chokidar '{src,test}/**/*.js' -d 1000 -c 'npm test'"
},
"repository": {
"type": "git",
"url": "git+https://github.com/svgstore/svgstore.git"
},
"keywords": [
"concat",
"join",
"merge",
"pack",
"path",
"sprite",
"svg",
"svgs",
"svgstore",
"symbol",
"symbols"
],
"author": {
"name": "Shannon Moeller",
"email": "me@shannonmoeller.com",
"url": "http://shannonmoeller.com"
},
"maintainers": [
{ "name": "bsipple", "email": "bsipple57@gmail.com" },
{ "name": "shannonmoeller", "email": "me@shannonmoeller.com" }
],
"license": "MIT",
"bugs": { "url": "https://github.com/svgstore/svgstore/issues" },
"homepage": "https://github.com/svgstore/svgstore",
"dependencies": { "cheerio": "^0.22.0", "object-assign": "^4.1.1" },
"devDependencies": {
"ava": "0.25.0",
"chokidar-cli": "^1.2.1",
"coveralls": "^3.0.2",
"nyc": "^13.0.1"
},
"engines": { "node": ">= 0.12" },
"gitHead": "58af91df39d24ded147232684d41ec5ce7a9b7a4",
"_id": "svgstore@3.0.0-1",
"_npmVersion": "5.6.0",
"_nodeVersion": "8.11.4",
"_npmUser": {
"name": "shannonmoeller",
"email": "me@shannonmoeller.com"
},
"dist": {
"integrity": "sha512-8Xic3EybQ8GaTXu7sH4MA7t1MEYuFASwFRMuz9amYf/BoVhCV+r8eCw/+ttWemFPIYEJJC8ZuJkEP7YU4J8ZZQ==",
"shasum": "9a138f8b7ae768157e5fb359da7dcdf8495b713d",
"tarball": "https://registry.npmjs.org/svgstore/-/svgstore-3.0.0-1.tgz",
"fileCount": 19,
"unpackedSize": 37568,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbrOVVCRA9TVsSAnZWagAAl5QP/RqVImxD4JQ/V8SpsQF3\nMxZCVKK0J1DIbgDD1v152BiNbwFi9y/sfABn0S9Nf+fQpLwnZ9Jiw+88r7V1\nGtEG1+QBjOc+f+Ni4kwBNnF7udu4jZc/KzaN/u0fmlxjCtqxtw/Mh9Z7t8Ym\n4MF8LPDv79T9pB5JKNKTErGOXvje6G+8DWVxsFjP3SG4I95Be6GBBc6EUntp\nOhGyh+ahsbqS0hzGUTFdLtanv8RHFsXOIBt2O4x8NiMsYj4g51KS3T3v8kXQ\nSgBnAPUuFizT7ds2Gji2NgZrDMXHXaXE8/JeaEGRbxaOVebgTpULJYhDqniX\nqL/otFkPmpS9llPz3d06Or1r8yYf1ughs47M58pSX+5qh3vsmM0yoUPbyPGH\n9ymxYaukDlSLz8J4TOabp12N6Em5E1mrUjg2itjf7MbPTtLnGos2YHCXrSo8\nb7qv8VcyYWV3WNjb1+cMnIh2HoFFp5X4HXLLHroYYQbAWrg7qtB9B0fkXfiJ\n7JKWo/MqpVacO2RQqpwlJ+Q+f6h/SeI60Y99A8eW/e+Jp6b3rVviirXtIjWe\npusWSugYAz8oYR9eAXCeo76qEeurfjIyOUIsOrmuSfQ/2dJ2L6QaU4cm3GOK\nIz96RgFLraMCvprSU6Z8QNcEFTZ3osuB7O7dddnwMR8cdo8WXUOqCxJ8jLNA\nCx9J\r\n=LgUh\r\n-----END PGP SIGNATURE-----\r\n"
},
"directories": {},
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/svgstore_3.0.0-1_1538057557028_0.6947879244514266"
},
"_hasShrinkwrap": false
},
"3.0.0-2": {
"name": "svgstore",
"version": "3.0.0-2",
"description": "Combines mulitple svg files into one.",
"main": "src/svgstore.js",
"scripts": {
"coveralls": "nyc report -r text-lcov | coveralls",
"test": "nyc ava -v",
"posttest": "nyc report -r lcov",
"watch": "chokidar '{src,test}/**/*.js' -d 1000 -c 'npm test'"
},
"repository": {
"type": "git",
"url": "git+https://github.com/svgstore/svgstore.git"
},
"keywords": [
"concat",
"join",
"merge",
"pack",
"path",
"sprite",
"svg",
"svgs",
"svgstore",
"symbol",
"symbols"
],
"author": {
"name": "Shannon Moeller",
"email": "me@shannonmoeller.com",
"url": "http://shannonmoeller.com"
},
"maintainers": [
{ "name": "bsipple", "email": "bsipple57@gmail.com" },
{ "name": "shannonmoeller", "email": "me@shannonmoeller.com" }
],
"license": "MIT",
"bugs": { "url": "https://github.com/svgstore/svgstore/issues" },
"homepage": "https://github.com/svgstore/svgstore",
"dependencies": { "cheerio": "^0.22.0", "object-assign": "^4.1.1" },
"devDependencies": {
"ava": "0.25.0",
"chokidar-cli": "^1.2.1",
"coveralls": "^3.0.2",
"nyc": "^13.0.1"
},
"engines": { "node": ">= 0.12" },
"gitHead": "8505ce5966bc33f5de8d966b0003ad48816534e2",
"_id": "svgstore@3.0.0-2",
"_npmVersion": "5.6.0",
"_nodeVersion": "8.11.4",
"_npmUser": {
"name": "shannonmoeller",
"email": "me@shannonmoeller.com"
},
"dist": {
"integrity": "sha512-qiR9MvGgCWLuuspa9wFkafE1BrwrtsoFwhsWHt6zFK7vq3TcYKPCKFOVDBa0rAflF7/GI3SFIE+h38l8vFCFgQ==",
"shasum": "0b936d60c5205d5b68efba673a4589f1384620ef",
"tarball": "https://registry.npmjs.org/svgstore/-/svgstore-3.0.0-2.tgz",
"fileCount": 19,
"unpackedSize": 37568,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbrOXECRA9TVsSAnZWagAAobkP/jjXmWcjGP6E3nr4RA8h\nCQMW08EwphlBVo073uWi/2xTIkq7dB+Ml2ssf4a3Kd9A1EBxQhCmajMu4vhB\nfDZsw/3T5R47FFrksmJ3axKrs5RmN2ymHRGIBXJAV91GJJAeDq+02iZHisq6\nXhjeF3GHXjacWbRcx+TdKQru4ZhRjJctRGyVevAiwLF1QdDnGUOIVuSbb4/z\nnU9YjurvdPMykvtyKFZ+IRlFyTEr9rbj76rH81O0hnfAwi1+Kttvm1sfh9kO\n0AJfKx92zCHAMxZGZ+jW7JTapY+xkgTJw2nDP2O3FLQPqUBG06WDIcAakdfP\ntVCbQrrZ8TqEoS7ze6hXXiMrRxBBBgv0/0v1ctoafqc0wGvAvXHq3PXMuf6K\nx5L0D+kiv3xud//1NBB/w2DDwnyTnwCblX7A7BZ0qJDYm/YNERXoZZdIGlnp\nY8VTfCHE0ChrOEli0ZeduMYun7/fDkdIj2iBSVDJ01qs6mY04+WmpJvRt4Ih\n3DL3u1nTIaYjkq4PBa3TOh8htxNb4vZJVLEXQmDkJQI1RJ+tE4BLzgq4b3NZ\n7E/4fiucZZfWWXmYrxE5DrWKeqeXX6yfBdn6dBWvtlTU8M3Xd9FNcxNPq1ep\nRE4mK5SIZ9sWYDaX6D2yns1c276TAcxj2sRHsGe5cV70z5At1AF67zyoJvGs\naf87\r\n=1Wn5\r\n-----END PGP SIGNATURE-----\r\n"
},
"directories": {},
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/svgstore_3.0.0-2_1538057667386_0.4167043390452414"
},
"_hasShrinkwrap": false
}
},
"readme": "# svgstore\n\n[![NPM version][npm-img]][npm-url] [![Downloads][downloads-img]][npm-url] [![Build Status][travis-img]][travis-url] [![Coverage Status][coveralls-img]][coveralls-url]\n\nCombines multiple SVG files into one using `<symbol>` elements which you may [`<use>` in your markup](https://css-tricks.com/svg-sprites-use-better-icon-fonts/). Heavily inspired by [`grunt-svgstore`](https://github.com/FWeinb/grunt-svgstore) and [`gulp-svgstore`](https://github.com/w0rm/gulp-svgstore), this is a standalone module that may be [used in any asset pipeline](#future-goals).\n\n## Install\n\n $ npm install --save svgstore\n\n## Usage\n\n```js\nvar svgstore = require('svgstore');\nvar fs = require('fs');\n\nvar sprites = svgstore()\n .add('unicorn', fs.readFileSync('./unicorn.svg', 'utf8'))\n .add('rainbow', fs.readFileSync('./rainbow.svg', 'utf8'));\n\nfs.writeFileSync('./sprites.svg', sprites);\n```\n\nThe resulting file may be consumed in markup as external content.\n\n```html\n<body>\n <svg role=\"img\"><use xlink:href=\"./sprites.svg#unicorn\"/></svg>\n <svg role=\"img\"><use xlink:href=\"./sprites.svg#rainbow\"/></svg>\n</body>\n```\n\nSee the [examples directory](https://github.com/shannonmoeller/svgstore/tree/master/docs/examples) for more detail.\n\n## API\n\n### svgstore([options]): SvgStore\n\n- `options` `{Object}`: [Options for converting SVGs to symbols](#svgstore-options)\n\nCreates a container SVG sprites document.\n\n### .element\n\nThe current [cheerio](https://github.com/cheeriojs/cheerio) instance.\n\n### .add(id, svg [, options]): SvgStore\n\n- `id` `{String}` Unique `id` for this SVG file.\n- `svg` `{String}` Raw source of the SVG file.\n- `options` `{Object}` Same as the [options of `svgstore()`](#svgstore-options), but will only apply to this SVG file's `<symbol>`.\n\nAppends a file to the sprite with the given `id`.\n\n### .toString([options]): String\n\n- `options` `{Object}`\n - `inline` `{Boolean}` (default: `false`) Don't output `<?xml ?>`, `DOCTYPE`, and the `xmlns` attribute.\n\nOutputs sprite as a string of XML.\n\n## <a name=\"svgstore-options\"></a>Options\n\n- `cleanDefs` `{Boolean|Array}` (default: `false`) Remove `style` attributes from SVG definitions, or a list of attributes to remove.\n- `cleanSymbols` `{Boolean|Array}` (default: `false`) Remove `style` attributes from SVG objects, or a list of attributes to remove.\n- `svgAttrs` `{Boolean|Object}` (default: `false`) A map of attributes to set on the root `<svg>` element. If you set an attribute's value to null, you remove that attribute. Values may be functions like jQuery.\n- `symbolAttrs` `{Boolean|Object}` (default: `false`) A map of attributes to set on each `<symbol>` element. If you set an attribute's value to null, you remove that attribute. Values may be functions like jQuery.\n- `copyAttrs` `{Boolean|Array}` (default: `false`) Attributes to have `svgstore` attempt to copy to the newly created `<symbol>` tag from it's source `<svg>` tag. The `viewBox`, `aria-labelledby`, and `role` attributes are always copied.\n- `renameDefs` `{Boolean}` (default: `false`) Rename `defs` content ids to make them inherit files' names so that it would help to avoid defs with same ids in the output file.\n\n## Contributing\n\nStandards for this project, including tests, code coverage, and semantics are enforced with a build tool. Pull requests must include passing tests with 100% code coverage and no linting errors.\n\n### Test\n\n $ npm test\n\n## Future Goals\n\nThe svgstore organization began after it was noticed that the common [build task of converting an `<svg>` into a `<symbol>` tag](https://css-tricks.com/svg-symbol-good-choice-icons/) was being implemented in a similar manner by many different projects across the JavaScript ecosystem.\n\nThe long-term goal for this project, in particular, is to provide a single standalone module that can be plugged in to any asset pipeline, thus allowing pipeline tools to focus on providing clean APIs and interfaces related to their build process integration, rather than implementing/duplicating SVG conversion logic directly.\n\n#### Current build tools using `svgstore`:\n\n* [broccoli-svgstore][broccoli-svgstore]\n* [svgstore-cli][svgstore-cli]\n\n----\n\nMIT © [Shannon Moeller](http://shannonmoeller.com)\n\n[coveralls-img]: http://img.shields.io/coveralls/svgstore/svgstore/master.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/svgstore/svgstore\n[downloads-img]: http://img.shields.io/npm/dm/svgstore.svg?style=flat-square\n[npm-img]: http://img.shields.io/npm/v/svgstore.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/svgstore\n[travis-img]: http://img.shields.io/travis/svgstore/svgstore.svg?style=flat-square\n[travis-url]: https://travis-ci.org/svgstore/svgstore\n[broccoli-svgstore]: https://github.com/svgstore/broccoli-svgstore\n[svgstore-cli]: https://github.com/svgstore/svgstore-cli\n",
"maintainers": [
{ "name": "bsipple", "email": "bsipple57@gmail.com" },
{ "name": "shannonmoeller", "email": "me@shannonmoeller.com" }
],
"time": {
"modified": "2019-01-05T14:14:17.113Z",
"created": "2016-03-09T21:15:01.151Z",
"1.0.0": "2016-03-09T21:15:01.151Z",
"1.1.0": "2016-08-08T12:51:33.960Z",
"2.0.0": "2016-12-09T13:51:48.339Z",
"2.0.1": "2016-12-09T14:03:27.815Z",
"2.0.2": "2016-12-09T18:21:06.150Z",
"2.0.3": "2018-01-29T17:35:15.538Z",
"3.0.0-0": "2018-09-27T14:07:05.725Z",
"3.0.0-1": "2018-09-27T14:12:37.242Z",
"3.0.0-2": "2018-09-27T14:14:27.548Z"
},
"homepage": "https://github.com/svgstore/svgstore",
"keywords": [
"concat",
"join",
"merge",
"pack",
"path",
"sprite",
"svg",
"svgs",
"svgstore",
"symbol",
"symbols"
],
"repository": {
"type": "git",
"url": "git+https://github.com/svgstore/svgstore.git"
},
"author": {
"name": "Shannon Moeller",
"email": "me@shannonmoeller.com",
"url": "http://shannonmoeller.com"
},
"bugs": { "url": "https://github.com/svgstore/svgstore/issues" },
"license": "MIT",
"readmeFilename": "readme.md",
"users": { "revlis": true, "shanewholloway": true }
}

@ -39,9 +39,12 @@
"text-table": "0.2.0"
},
"devDependencies": {
"create-test-server": "^3.0.1",
"del": "^5.1.0",
"eslint": "6.7.2",
"eslint-config-silverwind": "5.0.3",
"execa": "3.4.0",
"tempy": "^0.3.0",
"versions": "7.0.4"
}
}

64
test.js

@ -3,8 +3,60 @@
const assert = require("assert");
const process = require("process");
const execa = require("execa");
const createTestServer = require("create-test-server");
const tempy = require("tempy");
const fs = require("fs");
const path = require("path");
const del = require("del");
function exit(err) {
const testDir = tempy.directory();
let server;
async function clean() {
await del(testDir, {force: true});
if (server) {
await server.close();
}
}
async function setup() {
server = await createTestServer();
// Server response
for (const packageName of [
"gulp-sourcemaps",
"prismjs",
"svgstore",
"html-webpack-plugin",
"noty",
"jpeg-buffer-orientation",
"styled-components",
"@babel/preset-env",
]) {
const name = packageName.replace(/\//g, "%2f");
const text = fs.readFileSync(path.join(__dirname, "info", `${name}.json`), "utf8");
server.get(
`/${name}`,
text
);
}
const {sslUrl: registry} = server;
// Fake registry
fs.writeFileSync(path.join(testDir, ".npmrc"), `registry=${registry}`);
// Copy fixture
fs.writeFileSync(
path.join(testDir, "test.json"),
fs.readFileSync("test.json")
);
}
async function exit(err) {
await clean();
if (err) {
console.info(err);
}
@ -12,11 +64,19 @@ function exit(err) {
}
async function run(args) {
const {stdout} = await execa("./updates.js", args.split(/\s+/));
const {stdout} = await execa(
path.join(process.cwd(), "./updates.js"),
args.split(/\s+/),
{
cwd: testDir
}
);
return JSON.parse(stdout);
}
async function main() {
await setup();
assert.deepStrictEqual(await run("-j -f test.json"), {
results: {
dependencies: {