{"analyzedAt":"2022-12-23T04:18:20.536Z","collected":{"metadata":{"name":"geostyler-openlayers-parser","scope":"unscoped","version":"4.1.0","description":"GeoStyler Style Parser implementation for OpenLayers styles","keywords":["geostyler","parser","style","openlayers"],"date":"2022-12-22T09:48:56.075Z","publisher":{"username":"kaivolland","email":"kaivolland@yahoo.de"},"maintainers":[{"username":"jansule","email":"suleiman.jan@uni-muenster.de"},{"username":"annarieger","email":"rieger@terrestris.de"},{"username":"terrestris-info","email":"info@terrestris.de"},{"username":"marcjansen","email":"jansen@terrestris.de"},{"username":"kaivolland","email":"kaivolland@yahoo.de"},{"username":"dnlkoch","email":"koch@terrestris.de"},{"username":"ahennr","email":"henn@terrestris.de"},{"username":"buehner","email":"buehner@terrestris.de"},{"username":"hwbllmnn","email":"schmitz@terrestris.de"},{"username":"lukaslohoff","email":"lohoff@terrestris.de"},{"username":"mholthausen","email":"holthausen@terrestris.de"},{"username":"sgoetsch","email":"sgoetsch@terrestris.de"},{"username":"jorzekowsky","email":"orzekowsky@terrestris.de"},{"username":"simonseyock","email":"simonseyock@googlemail.com"},{"username":"hblitza","email":"blitza@terrestris.de"},{"username":"jweskamm","email":"weskamm@terrestris.de"},{"username":"unraveler","email":"rui.nunes1985@gmail.com"},{"username":"chrismayer","email":"geofootballer@googlemail.com"}],"repository":{"type":"git","url":"git+https://github.com/geostyler/geostyler-openlayers-parser.git"},"links":{"npm":"https://www.npmjs.com/package/geostyler-openlayers-parser","homepage":"https://github.com/geostyler/geostyler-openlayers-parser#readme","repository":"https://github.com/geostyler/geostyler-openlayers-parser","bugs":"https://github.com/geostyler/geostyler-openlayers-parser/issues"},"license":"BSD-2-Clause","dependencies":{"color-name":"^1.1.4","geostyler-style":"^7.2.0"},"devDependencies":{"@babel/core":"^7.20.5","@babel/plugin-proposal-class-properties":"^7.18.6","@babel/plugin-proposal-object-rest-spread":"^7.20.2","@babel/polyfill":"^7.12.1","@babel/preset-env":"^7.20.2","@babel/preset-typescript":"^7.18.6","@terrestris/eslint-config-typescript":"^3.1.0","@types/color-name":"^1.1.1","@types/jest":"^29.2.4","@types/node":"^18.11.17","@typescript-eslint/eslint-plugin":"^5.47.0","@typescript-eslint/eslint-plugin-tslint":"^5.47.0","@typescript-eslint/parser":"^5.47.0","babel-jest":"^29.3.1","babel-loader":"^9.1.0","coveralls":"^3.1.1","eslint":"^8.30.0","jest":"^29.3.1","jest-canvas-mock":"^2.4.0","jest-environment-jsdom":"^29.3.1","np":"^7.6.2","ol":"^7.2.2","regenerator-runtime":"^0.13.11","terser-webpack-plugin":"^5.3.6","typescript":"^4.9.4","webpack":"^5.75.0","webpack-cli":"^5.0.1"},"peerDependencies":{"ol":">=7.2"},"releases":[{"from":"2022-11-23T00:00:00.000Z","to":"2022-12-23T00:00:00.000Z","count":2},{"from":"2022-09-24T00:00:00.000Z","to":"2022-12-23T00:00:00.000Z","count":2},{"from":"2022-06-26T00:00:00.000Z","to":"2022-12-23T00:00:00.000Z","count":4},{"from":"2021-12-23T00:00:00.000Z","to":"2022-12-23T00:00:00.000Z","count":7},{"from":"2020-12-23T00:00:00.000Z","to":"2022-12-23T00:00:00.000Z","count":13}],"hasTestScript":true,"hasSelectiveFiles":true,"readme":"# geostyler-openlayers-parser\n\n[![Coverage Status](https://coveralls.io/repos/github/geostyler/geostyler-openlayers-parser/badge.svg?branch=master)](https://coveralls.io/github/geostyler/geostyler-openlayers-parser?branch=master)\n\n[GeoStyler Style](https://github.com/geostyler/geostyler) Parser implementation for OpenLayers styles\n\n### How to use\n\nThe example below shows how to take a raw GeoStyler style, use the OpenLayersParser to parse the style into\nan OpenLayers style, and then apply it to an OpenLayers vector layer.\n\nES6:\n```js\nimport OpenLayersParser from \"geostyler-openlayers-parser\";\nimport OlLayerVector from \"ol/layer/Vector\";\n\nconst pointSimplePoint = {\n  name: \"OL Style\",\n  rules: [\n    {\n      name: \"OL Style Rule 0\",\n      symbolizers: [\n        {\n          kind: \"Mark\",\n          wellKnownName: \"circle\",\n          color: \"#FF0000\",\n          radius: 6\n        }\n      ]\n    }\n  ]\n};\n\nconst parser = new OpenLayersParser();\nconst layer = new OlLayerVector();\n\nparser\n  .writeStyle(pointSimplePoint)\n  .then(({output: olStyle}) => layer.setStyle(olStyle))\n  .catch(error => console.log(error));\n```\n\nBrowser:\n\n```js\nvar pointSimplePoint = {\n  name: \"OL Style\", rules: [{\n    name: \"OL Style Rule 0\",\n    symbolizers: [{\n      kind: \"Mark\",\n      wellKnownName: \"circle\",\n      color: \"#FF0000\",\n      radius: 6\n    }]\n  }]\n};\nvar vectorLayer = new ol.layer.Vector();\nvar parser = new GeoStylerOpenlayersParser.OlStyleParser(ol);\nparser.writeStyle(pointSimplePoint)\n.then(function(style) {\n    if (style.errors) {\n      console.log(style.errors);\n    } else {\n      vectorLayer.setStyle(style.output);\n    }\n});\n```"},"npm":{"downloads":[{"from":"2022-12-22T00:00:00.000Z","to":"2022-12-23T00:00:00.000Z","count":0},{"from":"2022-12-16T00:00:00.000Z","to":"2022-12-23T00:00:00.000Z","count":1101},{"from":"2022-11-23T00:00:00.000Z","to":"2022-12-23T00:00:00.000Z","count":6461},{"from":"2022-09-24T00:00:00.000Z","to":"2022-12-23T00:00:00.000Z","count":17284},{"from":"2022-06-26T00:00:00.000Z","to":"2022-12-23T00:00:00.000Z","count":30946},{"from":"2021-12-23T00:00:00.000Z","to":"2022-12-23T00:00:00.000Z","count":50785}],"starsCount":0},"github":{"starsCount":25,"forksCount":23,"subscribersCount":19,"issues":{"count":657,"openCount":13,"distribution":{"3600":116,"10800":35,"32400":27,"97200":93,"291600":96,"874800":166,"2624400":67,"7873200":27,"23619600":19,"70858800":6,"212576400":5},"isDisabled":false},"contributors":[{"username":"dependabot[bot]","commitsCount":155},{"username":"greenkeeper[bot]","commitsCount":114},{"username":"jansule","commitsCount":74},{"username":"KaiVolland","commitsCount":54},{"username":"chrismayer","commitsCount":21},{"username":"ahennr","commitsCount":15},{"username":"hwbllmnn","commitsCount":13},{"username":"marcjansen","commitsCount":10},{"username":"annarieger","commitsCount":8},{"username":"raitisbe","commitsCount":5},{"username":"LukasLohoff","commitsCount":5},{"username":"weskamm","commitsCount":3},{"username":"jahow","commitsCount":3},{"username":"dnlkoch","commitsCount":3},{"username":"simonseyock","commitsCount":2},{"username":"juburr","commitsCount":2},{"username":"geographika","commitsCount":2},{"username":"pragmaeuge","commitsCount":2},{"username":"nevaldas","commitsCount":1}],"commits":[{"from":"2022-12-16T00:00:00.000Z","to":"2022-12-23T00:00:00.000Z","count":0},{"from":"2022-11-23T00:00:00.000Z","to":"2022-12-23T00:00:00.000Z","count":0},{"from":"2022-09-24T00:00:00.000Z","to":"2022-12-23T00:00:00.000Z","count":0},{"from":"2022-06-26T00:00:00.000Z","to":"2022-12-23T00:00:00.000Z","count":0},{"from":"2021-12-23T00:00:00.000Z","to":"2022-12-23T00:00:00.000Z","count":0}],"statuses":[{"context":"coverage/coveralls","state":"success"}]},"source":{"files":{"readmeSize":1640,"testsSize":66514},"badges":[{"urls":{"original":"https://coveralls.io/repos/github/geostyler/geostyler-openlayers-parser/badge.svg?branch=master","service":"https://coveralls.io/repos/github/geostyler/geostyler-openlayers-parser/badge.svg?branch=master","shields":"https://img.shields.io/coveralls/geostyler/geostyler-openlayers-parser/master.svg","content":"https://img.shields.io/coveralls/geostyler/geostyler-openlayers-parser/master.json"},"info":{"service":"coveralls","type":"coverage","modifiers":{"branch":"master"}}}],"linters":["eslint"],"coverage":0.82,"outdatedDependencies":{"color-name":{"required":"^1.1.4","stable":"2.0.0","latest":"2.0.0"}}}},"evaluation":{"quality":{"carefulness":0.9199999999999999,"tests":0.973,"health":0.75,"branding":0.15},"popularity":{"communityInterest":86,"downloadsCount":5761.333333333333,"downloadsAcceleration":27.253729071537293,"dependentsCount":0},"maintenance":{"releasesFrequency":1,"commitsFrequency":0.9,"openIssues":1,"issuesDistribution":0.9}},"score":{"final":0.6805834193821932,"detail":{"quality":0.981941203042381,"popularity":0.10290056252351262,"maintenance":0.9999596045321417}}}