@pardjs/static-content-loader
TypeScript icon, indicating that this package has built-in type declarations

1.5.1 • Public • Published

Static content loader

Commitizen friendly Build Status Coverage Status

Load static content (.json/.md) from remote and cache in local memory.


Usage

const staticLoader = new StaticContentLodader('https://raw.githubusercontent.com/ole3021/blogs/master/blogs', {
  indexFileName: 'customIndex.json',
  timeout: 4000
})

const indexContent = staticLoader.fetchIndex()

const content = staticLoader.fetchContent('/Knowledge/Pomodoro.md')

Maintain

yarn commit # replace `git commit` with help utils
yarn test:watch # run test in watch mode locally

Readme

Keywords

none

Package Sidebar

Install

npm i @pardjs/static-content-loader

Weekly Downloads

0

Version

1.5.1

License

MIT

Unpacked Size

189 kB

Total Files

11

Last publish

Collaborators

  • goodbai
  • ole3021