https://github.com/pardjs/static-content-loader
Staic content loader
https://github.com/pardjs/static-content-loader
Last synced: about 4 hours ago
JSON representation
Staic content loader
- Host: GitHub
- URL: https://github.com/pardjs/static-content-loader
- Owner: pardjs
- License: mit
- Created: 2019-05-27T08:35:51.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T22:44:54.000Z (over 2 years ago)
- Last Synced: 2025-06-03T11:39:11.964Z (about 1 month ago)
- Language: TypeScript
- Homepage: https://pardjs.github.io/static-content-loader/
- Size: 1.8 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Static content loader
[](http://commitizen.github.io/cz-cli/)
[](https://travis-ci.com/pardjs/static-content-loader)
[](https://coveralls.io/github/pardjs/static-content-loader?branch=master)Load static content (.json/.md) from remote and cache in local memory.
---
## Usage
```js
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
```shell
yarn commit # replace `git commit` with help utils
yarn test:watch # run test in watch mode locally
```