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

pjsk-name-index

v1.4.0

Published

A Chinese and English name index library for Project Sekai

Downloads

32

Readme

pjsk-name-index 使用文档

pjsk-name-index 是一个用于索引《Project Sekai》(下简称“世界计划”)中角色等名称的库。该库包含了所有角色的全称、简称、社团名称、戏称等信息,并提供了一个易于使用的索引表,方便快速查找和转换名称。

安装

在您的项目中安装 pjsk-name-index,您可以使用 npm 或 yarn 命令行工具:

npm install pjsk-name-index

或者

yarn add pjsk-name-index

引入

您可以在使用Node.js的后端或使用任意前端框架的项目中引入 pjsk-name-index。 以下使用Vue.js作为示例: (注:如无特别说明,下文的所有代码均使用Vue.js 3.x编写,且使用了Vue.js单文件组件(SFC)语法)

引入库

在Vue组件中,使用import语句引入pjsk-name-index库:

<script>
import { full_name } from 'pjsk-name-index';
</script>

原生JavaScript引入

在原生JavaScript中,使用<script>标签引入pjsk-name-index库:

<script src="https://unpkg.com/pjsk-name-index/dist/pjskni.min.js"></script>

索引

万能的sekai_index()方法

字段名表

| 字段 | 字段含义 | | ------------ |---------------------| | full_name | 社团英文名称/角色英文名称 | | full_name_cn | 社团中文名称/角色中文名称 | | simple_name | 社团简称/角色简称 | | joke_name_cn | (仅角色)角色戏称(别称) | | full_name_cn_official | (仅社团) 社团中文官方名称 |

pjsk-name-index库中提供了sekai_index()方法,该方法可以根据提供的参数快速索引到对应的角色的其他名称。

用法:

sekai_index('角色全称/团队全称','团队类型(team或character 社团或角色)').期望字段

样例:

import { sekai_index } from 'pjsk-name-index';

console.log(sekai_index("knd","individual").full_name_cn)

// 输出结果: > 宵崎奏

console.log(sekai_index("萌萌飞跃少女团",'team').full_name)
// 输出结果: > MORE MORE JUMP!

请注意,原生引入时,您需要使用 pjskni.sekai_index() 来调用sekai_index方法

手动索引

常量名表

| 常量名称 | 类型 | 含义 | | ------------ | ------------ | ------------ | | full_name | 列表 | 角色英文全名 | | full_name_cn | 列表 | 角色中文全名 | | team_name | 列表 | 社团英文全名 | | team_name_cn | 列表 | 社团中文全名 | | team_name_cn_official | 列表 | 中文官译社团全名 | | simple_name | 列表 | 角色简称 | | simple_team_name | 列表 | 团队简称 | | joke_name_cn | 字典 | 角色戏称(别名) | | character_index | 字典 | 依据简称手动匹配角色中文全名 | | team_index | 字典 | 依据简称手动匹配社团中文全名 | | team_cn_official_index | 字典 | 中文官译社团全名手动匹配社团中文全名 | | team_cn_index | 字典 | 社团中文全名手动匹配中文官译社团全名 |

用法:

import { 需要的常量 } from 'pjsk-name-index';

样例:

import { full_name_cn } from 'pjsk-name-index';

console.log(full_name_cn[0])

// 输出结果: > 初音未来

版权及协议声明

本项目中的所有角色名,社团名版权归属Colorful Palette、SEGA、Crypton Future Media等公司所有,如有侵权请联系 其余逻辑代码均在MIT协议下开源,您可以自由使用。 协议:MIT License