JSPM

catrawalkar-party-time

3.2.52
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q9053F
  • License MIT

Convert party abbreviations to full names and back again.

Package Exports

  • catrawalkar-party-time

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (catrawalkar-party-time) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

party-time

Build Status Coverage Status

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

var pt = require('party-time'); pt.convert('BJP'); // Bharatiya Janata Party

Resources

Installation

Web browser

You can use the latest release from the unpkg CDN.

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

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

<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 issue or add the party to src/data/parties.json and 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 integrity_check.js.