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

codemaoapi

v1.1.2

Published

Collect apis from codemao

Downloads

36

Readme

CodemaoApi

这是一个nodejs的codemaoapi库,感谢Codemao api提供的文档

npm i codemaoapi

如何使用?

Codemao api

  1. 创建codemao
const _CodemaoApi = require('codemaoapi').CodemaoApi;
const codemao = new _CodemaoApi();
  1. 创建异步函数
async function main(){
    // 将您的代码放入此处(每个codemao api都需要用await!)
    await codemao.login('用户名','密码');
}
main()
    .then(()=>{
        console.log('运行完毕!');
    })
    .catch(console.err);

该api严格按照 bcmcreator的codemao api docs 所编写您可以直接从codemao api docs查看如何使用该模块

提供的api

  1. 登录
codemao.login(identity,password);
  1. 改用户信息、密码
codemao.changeInfo(info);
codemao.changePassword(old_password,password,confirm_password);
  1. 查个人消息、信息、帖子
codemao.findDetails();
codemao.findMessage();
codemao.findInfo();
codemao.findAllBoard();
codemao.findBoard(board_id);
codemao.findPost(post_id);
  1. 发布帖子、回复
codemao.addPost(content,board_id);
codemao.addReply(content,post_id);
codemao.replyReply(content,reply_id);
  1. 删除帖子
codemao.deletePost(post_id);
  1. 事件
codemao.event

|名称|介绍|参数| |:-:|:-:|:-:| |login|登录成功|登录返回值| |loginFailed|登录失败||

Box3 api

  1. 创建box3
const _Box3Api = require('codemaoapi').Box3Api;
const box3 = new _Box3Api();

提供的api

  1. 登录
box3.login(account,password)
  1. 查个人信息
box3.findInfo();
box3.findAvatorUploadTimes();
box3.findAvatorUrl();
  1. 事件
box3.event

|名称|介绍|参数| |:-:|:-:|:-:| |login|登录成功|登录返回值| |loginFailed|登录失败||

ForumText

  1. 创建ForunText
const ForumText = require('codemaoapi').ForumText;
// 创建帖子文本
var post_forum_text = new ForumText({
    // 内容(必填)
    text: '123',

    // 颜色(选填)
    color: 'black',
    // 加粗(选填)
    bold: false,
    // 下划线(选填)
    underline: true,
    // 大小(选填)
    size: 'medium',
    // 位置(选填)
    align: 'left'
});
// 使用默认参数
var post_forum_text2 = new ForumText(ForumText.defultOptions);
// 修改内容
post_forum_text2.options.text = '114514';
// 套娃
post_forum_text.options.text += post_forum_text2.content;
// 发布帖子时的内容
var post_content = post_forum_text.content;