lispress
v1.1.5
Published
the core of lispress
Downloads
1
Readme
The core of lispress
Example
<script src="https://cdn.jsdelivr.net/npm/lispress/dist/lispress.min.js"></script>
<script>
lispress.config({
// username: '',
// clientID: '',
// clientSecret: '',
// articles: '',
// article: '',
// background: '',
// avatar: '',
});
lispress.setAvatar('#avatar');
lispress.setUsername('#username');
lispress.setGithubUrl('#githubUrl');
lispress.getArticleContent('Vue3.md')
.then((article) => console.log(article.substring(0, 100)));
// The next two lines can't be used simultaneously. (github api rate limit)
// lispress.getArticlesTitle().then(arr => console.log(arr))
lispress
.getSearchArticlesTitle(['Java', 'test'])
.then((arr) => console.log(arr));
</script>