【文件属性】:
文件名称:simplenote:使用es6功能的Simplenote API包装器
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-18 23:09:02
JavaScript
SimpleNote
使用SimpleNote API包装器
例子
import SimpleNote from "./index" ;
var simplenote = new SimpleNote ( 'user' , 'pass' ) ;
simplenote . all ( ) . then ( notes => console . log ( notes ) ) ;
使用babel-node运行示例
原料药
全部([n])
从服务器获取n音符索引。 默认为100。 返回解析为的ES6 Promise。
获取(密钥)
通过键获取笔记的数据。 key对应于索引返回的key 。 返回解析为密钥的JSON的ES6 Promise。
创建(注释)
从注释对象创建一个新的注释。 返回解析为更新的Note对象的ES6 Promise。
示例注释对象:
{
"tags"
【文件预览】:
simplenote-master
----package.json(1017B)
----test()
--------tests.js(2KB)
----Readme.md(1KB)
----LICENSE(1KB)
----Gruntfile.js(1KB)
----src()
--------index.js(7KB)
----.gitignore(23B)
----.jshintrc(60B)
----.editorconfig(150B)