![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
gulp-mock-inject
Advanced tools
#gulp-mock-inject
Auto inject mock test script into html.
##Usage
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<!-- mockinject -->
<!-- endinject -->
</body>
</html>
var gulp = require('gulp'),
inject = require('../src/index');
gulp.task('Inject',function(){
return gulp.src('./test/*.html')
.pipe(inject.server({
script:'123.js'
}))
.pipe(gulp.dest('test'));
});
gulp.task('clearInject',function(){
return gulp.src('./test/*.html')
.pipe(inject.dist())
.pipe(gulp.dest('test'));
});
##API
server(options)
Inject script into html file with designated script.
Html file should have inject sign like:
<!-- mockinject -->
<!-- endinject -->
options.script
Type:String
Path of script.
dist()
Clear injected script for build.
FAQs
Inject mock script into html file for development
The npm package gulp-mock-inject receives a total of 0 weekly downloads. As such, gulp-mock-inject popularity was classified as not popular.
We found that gulp-mock-inject 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.