https://github.com/harrystevens/party-time
Convert party abbreviations to full names and back again.
https://github.com/harrystevens/party-time
Last synced: 18 days ago
JSON representation
Convert party abbreviations to full names and back again.
- Host: GitHub
- URL: https://github.com/harrystevens/party-time
- Owner: HarryStevens
- License: mit
- Created: 2017-07-11T10:17:03.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-01T09:42:28.000Z (about 2 years ago)
- Last Synced: 2025-04-23T21:47:00.606Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/party-time
- Size: 1.32 MB
- Stars: 8
- Watchers: 4
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# party-time
Convert Indian political party abbreviations to full names and back again. [](https://travis-ci.org/HarryStevens/party-time)
")
## Resources
* [API Reference](https://github.com/HarryStevens/party-time/blob/master/API.md)
* [Introduction](http://harryjstevens.com/blog/introducing-party-time-an-npm-package-for-converting-indian-political-party-names/)## Installation
### Web browser
You can use the latest release from the unpkg CDN.
```html```
If you prefer to host the file yourself, download it from the [`build` directory](https://github.com/HindustanTimesLabs/party-time/tree/master/build).
```html```
### npm
```bash
npm i party-time -S
```
```js
var pt = require("party-time");
```## Tests
```bash
npm test
```## Building
```bash
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](https://github.com/HindustanTimesLabs/party-time/issues) or add the party to [`src/data/parties.json`](https://github.com/HindustanTimesLabs/party-time/blob/master/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 scripts/integrity_check.js`.