Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
/ includejs Public archive

Manually-ish Include JS files into another JS file.

Notifications You must be signed in to change notification settings

frozeeen/includejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IncludeJS

include JS files into another JS file.

Use the @include to include the JS file.

// somefile.js
const config = "JUSTACONFIG";

// base.js
@include("somefile.js");
console.log(config);

The result should be

// build.js
const config = "JUSTACONFIG";
console.log(config);

How to use

NodeJS

node include.js

or using nodemon to watch file changes inside src folder.

nodemon -w src -e js include.js

Python

Edit the include.py config.

python include.js

But why frozeeen, why?

Why not?

About

Manually-ish Include JS files into another JS file.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published