Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
gulp-i18n-add-locales
Advanced tools
Add placeholder JSON files in target locales for i18n-behavior
Add placeholder JSON files for target locales for i18n-behavior
Project template available at polymer-starter-kit-i18n. On Github Pages (https://t2ym.github.io/polymer-starter-kit-i18n)
<template is="i18n-dom-bind" id="module id">
is searched for id<dom-module id="module id">
is searched for id npm install --save-dev gulp-i18n-add-locales
var gutil = require('gulp-util');
var grepContents = require('gulp-grep-contents');
var size = require('gulp-size');
var i18nAddLocales = require('gulp-i18n-add-locales');
var config = {
// list of target locales to add
locales: gutil.env.targets ? gutil.env.targets.split(/ /) : []
}
// Add locales to I18N-ready elements and pages
gulp.task('locales', function() {
var elements = gulp.src([ 'app/elements/**/*.html' ], { base: 'app' })
.pipe(grepContents(/i18n-behavior.html/))
.pipe(grepContents(/<dom-module /));
var pages = gulp.src([
'app/**/*.html',
'!app/{bower_components,styles,scripts,images,fonts}/**/*'
], { base: 'app' })
.pipe(grepContents(/is=['"]i18n-dom-bind['"]/));
return merge(elements, pages)
.pipe(i18nAddLocales(config.locales))
.pipe(gulp.dest('app'))
.pipe(size({
title: 'locales'
}));
});
i18nAddLocales(locales)
FAQs
Add placeholder JSON files in target locales for i18n-behavior
The npm package gulp-i18n-add-locales receives a total of 0 weekly downloads. As such, gulp-i18n-add-locales popularity was classified as not popular.
We found that gulp-i18n-add-locales 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 a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.