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

@siyuan-community/kernelapilist

v1.0.2

Published

思源后端接口列表生成器,生成产物可以用于函数式调用思源后端api

Downloads

2

Readme

功能

从思源的源代码仓库拉取代码,然后一通鼓捣生成一个api列表类

使用

如果你担心列表不够新的话,运行

npm run gen

会生成一个新的index.js

生成之后就可以用了,如果生成失败可能是node连不上GitHub,改host去吧

import kernelAPI from '@siyuan-community/kernelapilist' 
//返回一个初始化好的后端接口列表对象
kernelAPI.sql()

或者你自己配置思源的地址

import {kernelApiList} from '@siyuan-community/kernelapilist' 
let 核心api = new kernelApiList(
            思源伺服ip:window.location.hostname,
        思源伺服端口:'',
        思源伺服协议:"http",
		apitoken:""

)
await 核心api.重命名文档({
  "notebook": "20210831090520-7dvbdv0",
  "path": "/20210902210113-0avi12f.sy",
  "title": "文档新标题"
})

或者这样也行

import {kernelApiList} from '@siyuan-community/kernelapilist' 
let kernelApi = new kernelApiList(
        siYuanIp:window.location.hostname,
        siYuanPort:'',
        siYuanScheme:"http",
		apitoken:""

)
kernelApi.renameDoc(
    {
          "notebook": "20210831090520-7dvbdv0",
  "path": "/20210902210113-0avi12f.sy",
  "title": "文档新标题"
    },
    '',
    (data)=>{
        console.log(data)
    }

)

或者把index.js拿出去用也可以

如果这玩意对你有用

可以去我的爱发电给我买杯咖啡