New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@goodrequest/check-locales-script

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@goodrequest/check-locales-script

## Prerequisites - https://www.npmjs.com/package/husky - https://www.npmjs.com/package/i18next-scanner

latest
npmnpm
Version
0.0.2
Version published
Weekly downloads
42
40%
Maintainers
2
Weekly downloads
 
Created
Source

Check locales script runnable in husky pre-commit hook

Prerequisites

  • https://www.npmjs.com/package/husky
  • https://www.npmjs.com/package/i18next-scanner

Setup

  • make sure i18next-scanner.config is set up properly
  • make sure scan command will run before this script

Implementation (example pre-commit file)

#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

i18next-scanner 'src/**/*.ts' && npx GoodRequest/check-locales-script && npx lint-staged

FAQs

Package last updated on 19 Jan 2023

Did you know?

Socket

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.

Install

Related posts