
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
dynamic-api
Advanced tools
An API to import fragmented files within other.
Current version: 1.0.0 Node support: 0.10.x, 0.11.x
var dynamic = require('dynamic-api');
var contentCompiled = dynamic(fileStream, opt);
Install dynamic-api with npm:
$ npm install dynamic-api
You can require the module:
var dynamic = require('dynamic-api');
Return a string of file compiled:
dynamic( path, content [, opt] )
paths = array de path relative
ignoreRepeated = boolean for ignore file repeated or not, default true
Example:
dynamic( path, content, {
paths: [__dirname + '/directory'],
ignoreRepeated: false
});
Import file on .js:
//import("path/file.js");
//import("file2.js");
Import file on .html:
<!--import("path/file.html")-->
<!--import("file2.html")-->
Import file on .css:
/*import("path/file.css")*/
/*import("file2.css")*/
Import file on a file any file:
!import("path/file.txt")
!import("file2.txt")
To contribute to dynamic-api, clone this repo locally and commit your code.
Please check that everything works before opening a pull-request.
Dynamic-api is licensed under the MIT License
FAQs
An API to import fragmented files within other
The npm package dynamic-api receives a total of 7 weekly downloads. As such, dynamic-api popularity was classified as not popular.
We found that dynamic-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.