party-time

Convert party abbreviations to full names and back again.

party-time

Convert Indian political party abbreviations to full names and back again.

Resources

Installation

Web browser

You can use the latest release from the unpkg CDN.

<script src="https://unpkg.com/party-time@3.2.58/build/party-time.js"></script>
<script src="https://unpkg.com/party-time@3.2.58/build/party-time.min.js"></script>

If you prefer to host the file yourself, download it from the builddirectory.

<script src="path/to/party-time.js"></script>
<script src="path/to/party-time.min.js"></script>

npm

npm i party-time -S
var pt = require("party-time");

Tests

npm test

Building

npm run build

Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.

If you find a party or abbreviation not in the library, please open up an issueor add the party to src/data/parties.jsonand submit a pull request.

After adding parties, it is a good idea to check if you've added a duplicate. To do that, run node scripts/integrity_check.js.

HomePage

https://github.com/HarryStevens/party-time#readme

Repository

https+https://github.com/HarryStevens/party-time


上一篇:indian-ocean
下一篇:jeezy

相关推荐

官方社区

扫码加入 JavaScript 社区