{"_id":"@parkhub/create-proto-files-paths-map","_rev":"51-fedd645fbee54e93de19144344be5289","name":"@parkhub/create-proto-files-paths-map","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@parkhub/create-proto-files-paths-map","version":"0.1.0","_id":"@parkhub/create-proto-files-paths-map@0.1.0","maintainers":[{"name":"sirmyztiq","email":"daniel.olivares@parkhub.com"}],"dist":{"shasum":"d9dd72c7022fecb705aeed88265d5f28c89ba807","tarball":"https://registry.npmjs.org/@parkhub/create-proto-files-paths-map/-/create-proto-files-paths-map-0.1.0.tgz","integrity":"sha512-qf8ku79U0TTqQsyQbnAasAV2/1wbfINsOdtBL6lluBryk/gx7btbW6S9FwHkZ+7nDRmQY6f+iyVmhWmNK5YFYw==","signatures":[{"sig":"MEQCICNihiDmIiZGl7ziOk4hPoPEG9EEiEuVg/Izxmm1ADKTAiAy6EN9w/Wneqjt21nZ+pgO4n3C5kWItreyNBUgXQyeoQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"jest":{"verbose":true,"testMatch":["**/__tests__/**/*.test.js?(x)"],"collectCoverage":true,"collectCoverageFrom":["src/**/*.js"],"testPathIgnorePatterns":["/integration/"],"modulePathIgnorePatterns":["dist/*"],"coveragePathIgnorePatterns":["/node_modules/","/dist/"]},"esdoc":{"source":"./src","destination":"./doc"},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"engines":{"node":">=8.0.0"},"parkhub":{"name":"pulse","type":"core"},"scripts":{"docs":"esdoc","lint":"eslint src","test":"jest","build":"babel src --out-dir dist --copy-files && cp ./package.json ./README.md dist","clean":"rm -rf dist coverage","start":"node index.js","todos":"leasot --reporter markdown ./src/** > TODOS.md","commit":"git-cz","release":"yarn test && yarn run clean && yarn run lint && yarn run build","start-dev":"NODE_ENV=development nodemon --exec babel-node ./src/index.js","test:watch":"jest --watchAll","test:integration":"jest -c __tests__/integration/jest-config.json __tests__/integration/coreRunner.test.js"},"_npmUser":{"name":"sirmyztiq","email":"daniel.olivares@parkhub.com"},"_npmVersion":"5.0.3","description":"Create Proto Files Paths Map ===================","directories":{},"_nodeVersion":"8.1.2","dependencies":{"@parkhub/proto-finder":"^0.1.0"},"devDependencies":{"jest":"^20.0.4","pino":"^4.6.0","esdoc":"^0.5.2","eslint":"^3.19.0","leasot":"^4.7.0","nodemon":"^1.11.0","babel-cli":"^6.24.1","babel-jest":"^20.0.3","commitizen":"^2.9.6","babel-eslint":"^7.2.3","eslint-plugin-jest":"^20.0.3","eslint-plugin-babel":"^4.1.1","prettier-eslint-cli":"^4.1.1","eslint-plugin-import":"^2.5.0","cz-conventional-changelog":"^2.0.0","eslint-config-airbnb-base":"^11.2.0","babel-plugin-transform-strict-mode":"^6.24.1","babel-plugin-transform-async-to-generator":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-es2015-modules-commonjs":"^6.24.1"},"_npmOperationalInternal":{"tmp":"tmp/create-proto-files-paths-map-0.1.0.tgz_1498183811036_0.8940789208281785","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@parkhub/create-proto-files-paths-map","version":"0.2.0","_id":"@parkhub/create-proto-files-paths-map@0.2.0","maintainers":[{"name":"bfletcherbiggs","email":"bfletcherbiggs@gmail.com"},{"name":"ggellene","email":"greg.gellene@gmail.com"},{"name":"jonsenterfitt","email":"jon.senterfitt@parkhub.com"},{"name":"loganbfisher","email":"logan@themediaside.com"},{"name":"realtschoegl","email":"matt.tschoegl@parkhub.com"},{"name":"sirmyztiq","email":"daniel.olivares@parkhub.com"},{"name":"thetwosents","email":"jon@belfortagency.com"}],"dist":{"shasum":"07ddb332ab8885dcd6f6ba7ea187c901a178f3fa","tarball":"https://registry.npmjs.org/@parkhub/create-proto-files-paths-map/-/create-proto-files-paths-map-0.2.0.tgz","integrity":"sha512-JtoCqWlNV+RNXbuOJKnx9dw/pXb7BrCXwyU1co1baCpxdNq8Bb7H7BSkAB3cmojg5uOnFq5f91zbvjas0fg9TA==","signatures":[{"sig":"MEQCICFuAf0HGW6tAVVIbqT4WDdHUc//htMF3lzDbbJu6PTqAiA+QLYwA7OwGBfKHYu6NWaYSnwrqbTR/mkQSs38Fq64uA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"jest":{"verbose":true,"testMatch":["**/__tests__/**/*.test.js?(x)"],"collectCoverage":true,"collectCoverageFrom":["src/**/*.js"],"testPathIgnorePatterns":["/integration/"],"modulePathIgnorePatterns":["dist/*"],"coveragePathIgnorePatterns":["/node_modules/","/dist/"]},"esdoc":{"source":"./src","destination":"./doc"},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"engines":{"node":">=8.0.0"},"parkhub":{"name":"pulse","type":"core"},"scripts":{"docs":"esdoc","lint":"eslint src","test":"jest","build":"babel src --out-dir dist --copy-files && cp ./package.json ./README.md dist","clean":"rm -rf dist coverage","start":"node index.js","todos":"leasot --reporter markdown ./src/** > TODOS.md","commit":"git-cz","release":"yarn test && yarn run clean && yarn run lint && yarn run build","start-dev":"NODE_ENV=development nodemon --exec babel-node ./src/index.js","test:watch":"jest --watchAll","test:integration":"jest -c __tests__/integration/jest-config.json __tests__/integration/coreRunner.test.js"},"_npmUser":{"name":"sirmyztiq","email":"daniel.olivares@parkhub.com"},"_npmVersion":"5.0.3","description":"Create Proto Files Paths Map ===================","directories":{},"_nodeVersion":"8.1.2","dependencies":{"@parkhub/proto-finder":"^0.1.0"},"devDependencies":{"jest":"^20.0.4","pino":"^4.6.0","esdoc":"^0.5.2","eslint":"^3.19.0","leasot":"^4.7.0","nodemon":"^1.11.0","babel-cli":"^6.24.1","babel-jest":"^20.0.3","commitizen":"^2.9.6","babel-eslint":"^7.2.3","eslint-plugin-jest":"^20.0.3","eslint-plugin-babel":"^4.1.1","prettier-eslint-cli":"^4.1.1","eslint-plugin-import":"^2.5.0","cz-conventional-changelog":"^2.0.0","eslint-config-airbnb-base":"^11.2.0","babel-plugin-transform-strict-mode":"^6.24.1","babel-plugin-transform-es2015-modules-commonjs":"^6.24.1"},"_npmOperationalInternal":{"tmp":"tmp/create-proto-files-paths-map-0.2.0.tgz_1498196696104_0.10947361635044217","host":"s3://npm-registry-packages"}}},"time":{"created":"2017-06-23T02:10:12.694Z","modified":"2026-09-21T18:05:28.440Z","0.1.0":"2017-06-23T02:10:12.694Z","0.2.0":"2017-06-23T05:44:57.244Z"},"description":"Create Proto Files Paths Map ===================","maintainers":[{"email":"daytonpe14@gmail.com","name":"daytonpe"},{"email":"matt.tschoegl@parkhub.com","name":"realtschoegl"},{"email":"alexander.cauble@gmail.com","name":"accloudcoder"},{"email":"jbrooks02@gmail.com","name":"novym"},{"email":"jebenavidez@outlook.com","name":"justin-ben"},{"email":"thiel.talicuran@parkhub.com","name":"thielt"},{"email":"stephen.emerson@parkhub.com","name":"stephemer"},{"email":"nathaniel.brown@parkhub.com","name":"nathaniel.brown"},{"email":"austin.lewis@justpark.com","name":"austin.lewis.justpark"},{"email":"landon.parris@justpark.com","name":"landon.parris"},{"email":"zoe.chamlee@parkhub.com","name":"zchamlee"},{"email":"joni@bek.io","name":"honi"},{"email":"colinc86@gmail.com","name":"electrocampbell"},{"email":"josh.boyle@justpark.com","name":"joshaboyle"},{"email":"loumonth.jack@justpark.com","name":"loumonth.jack"},{"email":"david.yang@justpark.com","name":"davidyang.justpark"},{"email":"dylan.delarosa@justpark.com","name":"delarosadyljp"},{"email":"rj.ellazar@justpark.com","name":"rjellazar"},{"email":"jack.anthony.wall@gmail.com","name":"j4k"},{"email":"hannah.ismail@parkhub.com","name":"hannahi771"},{"email":"jason@jasonlusk.com","name":"mpalpha"},{"email":"shane.frykholm@justpark.com","name":"mrshanef"}],"readme":"Create Proto Files Paths Map\n===================\n\nGet the full path of protofiles in the nearest ```protos/``` directory in the form of a map keyed by a custom tag of your choosing. Full paths are used by [grpc](https://www.npmjs.com/package/grpc)\n\n\nInstall\n-------------\n\n```(shell)\nnpm install @parkhub/create-proto-files-paths-map\n```\n\n\nUse\n-------------\nSample project directory:\n```\nproject\n└───protos\n│   │   proto_file_one.proto\n│   │   proto_file_two.proto\n└───src\n    │   index.js\n```\n\n```javascript\n\n // index.js\nimport createProtoFilesPathsMap from '@parkhub/create-proto-files-paths-map';\n\nconst protoFiles = [{\n  tag: 'myTag',\n  fileName: 'proto_file_one'\n}, {\n  tag: 'mySecondTag',\n  fileName: 'proto_file_two'\n}];\n\ncreateProtoFileMap(protoFiles)\n  .then(protoFilesMap => {\n    /*\n      protoFilesMap is a map with the following properties:\n        {\n          myTag: /system/path/project/protos/proto_file_one.proto,\n          mySecondTag: /system/path/project/protos/proto_file_two.proto,\n        }\n    */\n\n    const fileOnePath = protoFilesMap.get('myTag');\n    const fileTwoPath = protoFilesMap.get('mySecondTag');\n  });\n```\n","readmeFilename":"README.md"}