0.2.0 • Published 4 years ago
@winwin/hexo-editor-sdk v0.2.0
@winwin/hexo-editor-sdk
For server, see @winwin/hexo-editor-server
Installation
npm install --save @winwin/hexo-editor-sdk
Usage
see ./example.js
for simple usage.
const hexoEditorSDK = require('@winwin/hexo-editor-sdk')
// or
// import hexoEditorSDK from '@winwin/hexo-editor-sdk'
const hexoEditorAPI = hexoEditorSDK({
baseUrl: /* path to your hexo-editor-server base */,
axios: /* axios instance */
})
// use API
hexoEditorAPI.hello().then(res => console.log(res.data))