
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
gulp-gapps-rename
Advanced tools
Gulp Plugin to rename files to Google Apps Script compatible names. To be used before uploading files to GApps
If you're developing for Google App Script, you'll soon realize that the platform only supports .gs
and .html
files.
You probably don't want to limit yourself to these 2 file extensions, and that's why this plugin exists.
This gulp plugin helps you with local development of Google App Script projects by renaming your local files to what GApps expects before uploading.
Checkout the Usage section to see how this is done in detail.
$ npm install --save-dev gulp-gapps-rename
const gulp = require('gulp');
const gappsRename = require('gulp-gapps-rename');
gulp.task('default', () => {
gulp.src('src/*')
.pipe(gappsRename())
.pipe(gulp.dest('dist'))
);
The plugin's job is to take in a stream of files and prepare them to be uploaded to a Google App Script project.
It does so by applying the two following type of operations:
This gulp plugin will rename file extensions based on the following rules:
.gs.js
files will be renamed to .gs
.js
files will be renamed to .js.html
.css
files will be renamed to .css.html
This gulp plugin will wrap the content of certain files based on the following rules:
.js
files will be wrapped with a <script>
tag.css
files will be wrapped with a <style>
tagImagine you have the following list of files:
backend.gs.js
scripts.js
styles.css
template.html
After applying the gulp-gapps-rename
plugin, the files will become:
backend.gs # the .js is dropped
scripts.html # The content will be wrapped by a <script> tag
styles.css # The content will be wrapped by a <style> tag
template.html # untouched
This is the main method of the gulp plugin that you should pass to .pipe()
.
The plugin currently does not have any options.
Contributions are welcome!
If you want to contribute, don't hesitate to open a new issue or send a pull request to this repo.
You can run the test by running:
$ npm test
MIT © rodyhaddad
FAQs
Gulp Plugin to rename files to Google Apps Script compatible names. To be used before uploading files to GApps
The npm package gulp-gapps-rename receives a total of 0 weekly downloads. As such, gulp-gapps-rename popularity was classified as not popular.
We found that gulp-gapps-rename 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.