{"_id":"f-singleton","_rev":"1-2c2ecf5e3ae12964e4f8e7a6120a38b9","name":"f-singleton","dist-tags":{"latest":"2.5.1"},"versions":{"2.5.1":{"name":"f-singleton","description":"Polymer element that helps implementing singleton pattern declaratively. Common use case is to provide shared state in your elements (e.g. for configuration).","version":"2.5.1","main":"f-singleton.js","author":{"name":"Martynas","email":"martynas@firmfirm.co"},"scripts":{"test":"polymer test --npm","start":"polymer serve --npm"},"keywords":["shared","state","singleton","polymer","web-components"],"homepage":"https://github.com/firmfirm/f-singleton/","dependencies":{"@polymer/polymer":"^3.0.0","finterface-key-value-store":"^2.5.1"},"devDependencies":{"@polymer/iron-component-page":"^3.0.0-pre.18","@webcomponents/webcomponentsjs":"^2.0.0","wct-browser-legacy":"^1.0.1"},"gitHead":"b5c40a155515677167be2c26c3ae3875a583fcd9","_id":"f-singleton@2.5.1","_npmVersion":"5.6.0","_nodeVersion":"9.11.2","_npmUser":{"name":"mkazlauskas","email":"martynas@advancedkiosks.com"},"dist":{"integrity":"sha512-bWo7yREZuXMwAjauY4Hk6Yy5BlI5R3D0zqJN4MONq9ZkM/fERIqMXXQpf+YmFFJQiDkjxY2v7WubW9PM9r6zAA==","shasum":"7963f48e841a12413f36ba26f5e6aabf171877f5","tarball":"https://registry.npmjs.org/f-singleton/-/f-singleton-2.5.1.tgz","fileCount":7,"unpackedSize":41161,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJba/MACRA9TVsSAnZWagAAvGAP/A8vUPHrnrH79uYsJS9p\nkDl/NSrXrNAJ/9YO0wP5zSjqzsQCOuSx7F2HNTvGFTXe1dqGUrhbfeYLxb4V\nl8MMgy403w2trou8SEQH5Kytwb53bLSL6qko14ozSboELSMfkdO4aPMb4eed\nIoeAd4/gS27+1Jm2PypK5MQj7wjtpp1rxRuvBnjJsF2FqN7bMK4rUmfdW15v\npKsmY+JZX3GlG5R8qtOVJsQ+kmJRUzDc1Zsmbg6Tg4JKOKbrfxq6MhpIvsUq\n237VSX/rtEQR2NRziiNLr/NFE8T1RoDw5hGO8j9C7IGWSPhUsBDdxJZ9WRmF\nc4QLa+1R4atiqbOPRlv9qqQtV0XuCaJxdr6/Dk9O1pGqL26uAowW3KL2w5YY\ni8VArEdVCPVCxgg6sADVdcSkKUCfemT5wjrKwOsEckeTjFfoYyRhFDb/p9PX\n+PtoEFqsGuQ5eSjcflJ8FPg6ETXoi6h8LLSoDCc15GCCisZhtQjSKtT4fu19\nq7EyHJGpkZTPo6AdIgdMODkpyFq/CmD+nl2oLu0VsAhXrZ5LGyrDr4xdKv7W\ntfgOGpqQAJqex8cChpeYRiCbSAoYphdZCSvSWW7HD6azKS6n0T4satSqwany\njiAR6p8n4CQTU9BRNk5/jvE8GRup94Aqk6C75QafOp/F7i5MrJY5yMDdLy9p\nhekn\r\n=njX4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD65BM19+7bwXakWUYIsgIT6m/n/0TA7ObSsdL9CPx5gAIhAPeL63AtxpAYVSEjESSDWlpjf+ikrD9amGyy78/YnfeD"}]},"maintainers":[{"name":"mkazlauskas","email":"martynas@advancedkiosks.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/f-singleton_2.5.1_1533801216056_0.7159210867453001"},"_hasShrinkwrap":false}},"time":{"created":"2018-08-09T07:53:36.055Z","2.5.1":"2018-08-09T07:53:36.131Z","modified":"2022-05-02T02:00:02.062Z"},"maintainers":[{"name":"mkazlauskas","email":"martynas@advancedkiosks.com"}],"description":"Polymer element that helps implementing singleton pattern declaratively. Common use case is to provide shared state in your elements (e.g. for configuration).","homepage":"https://github.com/firmfirm/f-singleton/","keywords":["shared","state","singleton","polymer","web-components"],"author":{"name":"Martynas","email":"martynas@firmfirm.co"},"readme":"# `<f-singleton>` [ ![Codeship Status for firmfirm/f-singleton](https://codeship.com/projects/286d0510-bc49-0133-92b3-568b1089e8b8/status?branch=master)](https://codeship.com/projects/136142)\n\nPolymer element that helps implementing singleton pattern declaratively.\n\nCommon use case is to provide shared state in your elements (e.g. for configuration).\n\nUsing ES6 features, so take care in production apps.\n\n  - Try out [live demo](https://firmfirm.github.io/f-singleton/components/f-singleton/demo/).\n  - Learn about element properties and methods in [component page](https://firmfirm.github.io/f-singleton/) (**temporarily not working**).\n\n## Example:\n\n```html\n<f-singleton key=\"myKey\" value=\"something\"></f-singleton>\n<f-singleton key=\"myKey\" value=\"{{myValue}}\"></f-singleton>\n<!-- myValue is now 'something' -->\n<p>[[myValue]]</p>\n```\n\n`key` is a property name to bind `value` to.\nYou can also use deep keys, like `key=\"myObj.myProp\"`.\n\n## Missing Features\n\nThe following Polymer helper methods are **not** implemented for manipulating `data` object directly:\n\n`pop`, `shift`, `unshift`, or `splice`.\n\nIt would also be great to implement \"domains\" so that there could be different\ngroups of singletons.\n\n# Development\n\nFrom here on, documentation will only concern development of this component.\n\n## Dependencies\n\nElement dependencies are managed via [Bower](http://bower.io/). You can\ninstall that via:\n\n    npm install -g bower\n\nThen, go ahead and download the element's dependencies:\n\n    bower install\n\n## Playing With Your Element\n\nIf you wish to work on your element in isolation, we recommend that you use\n[Polyserve](https://github.com/PolymerLabs/polyserve) to keep your element's\nbower dependencies in line. You can install it via:\n\n    npm install -g polyserve\n\nAnd you can run it via:\n\n    polyserve\n\nOnce running, you can preview your element at\n`http://localhost:8080/components/f-singleton/`, where `f-singleton` is the name of the directory containing it.\n\n\n## Testing Your Element\n\nSimply navigate to the `/test` directory of your element to run its tests. If\nyou are using Polyserve: `http://localhost:8080/components/f-singleton/test/`\n\n### web-component-tester\n\nThe tests are compatible with [web-component-tester](https://github.com/Polymer/web-component-tester).\nInstall it via:\n\n    npm install -g web-component-tester\n\nThen, you can run your tests on _all_ of your local browsers via:\n\n    wct\n\n#### WCT Tips\n\n`wct -l chrome` will only run tests in chrome.\n\n`wct -p` will keep the browsers alive after test runs (refresh to re-run).\n\n`wct test/some-file.html` will test only the files you specify.\n","readmeFilename":"README.md"}