
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
vite-plugin-json5
Advanced tools
Plugin for allowing .json5 and .jsonc files to be loaded.
[!NOTE] This plugin is merely just a wrapper using the json5 package. So all the credits for the parsing goes out to the collaborators of that repository! I just made a plugin that allows files to be parsed using their package.
# PNPM:
pnpm add -D vite-plugin-json5
# Yarn:
yarn add -D vite-plugin-json5
# NPM:
npm install -D vite-plugin-json5
// vite.config.js
import json5Plugin from 'vite-plugin-json5'
// or
import { json5Plugin } from 'vite-plugin-json5'
export default defineConfig({
json5Plugin()
})
You are now able to import files with the .jsonc and .json5 extensions! These will be parsed by the json5 package and turned into a regular js that the app will be able to read and not get confused by.
This plugin accepts the same options as the default JSON parser:
interface Json5Options {
/**
* Generate a named export for every property of the JSON object
* @default true
*/
namedExports?: boolean;
/**
* Generate performant output as JSON.parse("stringified").
* Enabling this will disable namedExports.
* @default false
*/
stringify?: boolean;
}
A guide for setting up the development environment to allow for easy contributions.
Install dependencies:
$ pnpm install
Make changes
Run tests
$ pnpm test
Build when successful
$ pnpm build
Run the playground to test the build
$ pnpm dev
FAQs
Plugin for allowing .json5 and .jsonc files to be loaded.
The npm package vite-plugin-json5 receives a total of 8,139 weekly downloads. As such, vite-plugin-json5 popularity was classified as popular.
We found that vite-plugin-json5 demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.