party-time

2019-12-03 admin

party-time是什么

什么是party-time,Convert party abbreviations to full names and back again.

party-time使用教程帮助文档

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.

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-80341.html

文章标题:party-time

回到顶部