1.5.1 • Published 5 years ago

@pardjs/static-content-loader v1.5.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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
1.5.1

5 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago