0.0.7 • Published 3 years ago

@empreintes/content-provider v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Content Provider

A tiny small script for node.js to load stuff in your code

This project has been designed to get content from text file

Getting Started

This script target nodejs environment

npm install @empreintes/contentprovider
# or
yarn add @empreintes/contentprovider 

Prerequisites

fs module

Usage

basic usage

const {contentProvider} = require('@empreintes/content-provider')

const cp = contentProvider({base_path:'view',file_extension:'html'})
cp('foo.bar.myfile) // return the content
cp('afolder.another.folder.myfile) // return the content etc..

const {contentProvider} = require('@empreintes/content-provider')
contentProvider({ file_extension: "json", base_path: "." })("myfile")

publish

 npm run prepare
 npm publish ./dist [options]

Licence

released under the MIT license.

Versioning

Semantic Versioning for versioning.

Authors

Acknowledgments

  • This is a side project of a side project of a side project (for real)
  • Use in production only if you know what you do.
  • Full synchrone
0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago