🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

party-time

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

party-time

Convert party abbreviations to full names and back again.

latest
Source
npmnpm
Version
3.2.58
Version published
Weekly downloads
9
350%
Maintainers
1
Weekly downloads
 
Created
Source

party-time

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

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@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 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 scripts/integrity_check.js.

Keywords

India

FAQs

Package last updated on 23 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts