npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@chuxingpay/basic

v2.0.21

Published

package contains general json data such as currency codes, bed types, facility type, bank list, branch/group list etc.

Downloads

14

Readme

fuxun basic json

CHANGELOG

👉 CHANGELOG

Raw data

  • BankMap (major bank list)

[data] with properties

| Syntax | Description | Sample | | --------------- | ------------------------------ | ----------------------------------------------------------------------------------------------- | | Bedmap | Bed Types | {"name": "其它", "nameEn": "Others", "code": "BT00", "bedCount": 1} | | BreakfastMap | Breakfast | {"name": "无早","nameEn": "No meals","code": 0} | | CurrencyMap | Currency Codes | {"name": "人民币","nameEn": "CNY","code": "CNY","symbol": "¥"} | | ErrorMap | Error Response Code | {"code": "-1","name": "服务器异常,建议稍后再试","nameEn": "Server abnormal, please try later"} | | HttpCodeMap | Http Status code | {"code": 200,"name": "请求成功","nameEn": "OK","description": "The request has succeeded."} | | FacilityMap | Facility Types | {"code": "FCT01", "name": "酒店设施", "nameEn": "Hotel Facilities", "icon": "cuIcon-check1"} | | PaymentMap | Payment Methods | {"code": "union","name": "银联","nameEn": "UnionPay"} | | PhotoMap | Photo Category | {"code": "PC01","name": "外景","nameEn": "Outdoor view"} | | PriceMap | Price Category | {"name": "付迅协议价","nameEn": "付迅协议价","code": "RT02"} | | UnitMap | Room Unit | {"name": "标准房","nameEn": "Standard","code": "RU01"} | | WifiMap | Wifi Category | {"name": "没有网络","nameEn": "No network","code": 0} | | WindowMap | Window Category | {"name": "无窗","nameEn": "No window","code": 0} | | GroupMap | Hotel Group (Search available) | {"name":"洲际","id":1,"src":"zhouJi","nameEn":"IHG"} | | GroupFull | Hotel Group | {"id":10193,"name":"亚朵","nameEn":"亚朵"} | | BrandMap | Hotel Brand | {"id":7,"name":"锦江","level":0,"nameEn":"Jinjiang"} |

Usage

npm i @chuxingpay/basic
// load multiple module
const { CurrencyMap, GroupMap, BrandMap } = require("@chuxingpay/basic");

// load single module (RECOMMENDED !!!)
const HttpCodeMap = require("@chuxingpay/basic/es/HttpCodeMap");
import FacilityMap from "@chuxingpay/basic/es/FacilityMap";
import { CurrencyMap, GroupMap, BrandMap } = from('@chuxingpay/basic')

console.log(CurrencyMap.list)
// output [ { "code": "", "name": "", "nameEn": "" }, ...rest ]

console.log(CurrencyMap.codes)
// output ['CNY', 'USD', ...rest ]

console.log(CurrencyMap.find('USD'))
// output [ { "name": "美元", "nameEn": "USD", "code": "USD", "symbol": "$" } ]

console.log(CurrencyMap.findOne('USD'))
// output { "name": "美元", "nameEn": "USD", "code": "USD", "symbol": "$" }

console.log(CurrencyMap.findOne('nil*'))
// output {}

console.log(GroupMap.list)
// output [ { "id": 0, "name": "", "nameEn": "", "src": "" }, ...rest ]

console.log(BrandMap.findByLevel(0))
// output [{"id": 0, "level": 0, "name": "", "nameEn": ""}]

CurrencyMap reference (ISO 4217 code)