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.
@cbourgois/simonsays
Advanced tools
"Jacques a dit" Like.
simonsays
help you: to find translations key used in your project and:
To do it, simonsays
parse your javascript and html files to detect angular-translate
usages.
Simonsays detect :
$translate
and $translate.instant
calls in your javascript files,translate
directives in your HTML files,translate
filter usages in your HTML files.We use @babel/parser
to parse your javascript code in AST and we have ported $interpolate
and $ParseProvider
from AngularJS (code available here).
Simonsays
supports translations defined in JSON or XML files.
With yarn
:
yarn add @cbourgois/simonsays
or
With npm
:
npm install @cbourgois/simonsays
With npx
:
npx @cbourgois/simonsays --help
Compatibles options: --locale
, --module
, --output
.
To check used translations:
simonsays check <sourcePath>
simonsays search <sourcePath> <projectPath>
To search used translations (only used translations will be reported):
simonsays search <sourcePath> <projectPath>
To search used translations and retrieve all (already present translations + used translations):
simonsays search <sourcePath> <projectPath> --all
To overwrite existing translations by the project translations:
simonsays search <sourcePath> <projectPath> --merge
Compatibles options: --all
, --merge
, --locale
, --module
, --output
.
To rewrite JSON translations file:
simonsays rewrite <sourceDir> <projectPath>
To rewrite JSON translations file and prefix translations (AngularJS code and html will be overwritten):
simonsays rewrite <sourceDir> <projectPath> --prefix=ng_
Compatibles options: --all
, --merge
, --locale
, --module
, --output
, --prefix
.
By default, the script parse all the source path and will generate one, and only one translation file.
If you want, you can specify the --module
option to parse/generate translations for each AngularJS module contained in the source path.
For example:
simonsays check <sourcePath> --module
By default, simonsays
target the fr_FR
locale, but you can change it by specifying --locale
option.
For example:
simonsays check <sourcePath> --locale=en_GB
You can specify an output format from the following:
summary
(default) : output a table with the resultstext
: output a table with num of resultsjson
: output a jsonsilent
: no outputFor example:
simonsays search <sourcePath> <projectPath> --output=text
This project embed some portions of AngularJS source code (see ./src/angularjs/**
).
FAQs
Find translations used in AngularJS project
The npm package @cbourgois/simonsays receives a total of 13 weekly downloads. As such, @cbourgois/simonsays popularity was classified as not popular.
We found that @cbourgois/simonsays 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.