Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
A simple library to generate TypeScript definition files as well as Firestore rules based on a JSON Schema definition.
A simple library to generate TypeScript definition files as well as Firestore rules based on a JSON Schema definition.
This is a WIP library and currently only generates TypeScript interfaces, as well as may be buggy. Use at your own risk and feel free to contribute!
You can install fbschema via npm:
npm install fbschema
This library expects a JSON Schema for each Firestore collection in the root of your porject in a folder called fbschema
. From there it will generate TypeScript definition files into the a types/fbschema
folder as well as (one day soon) creating a new firestore.rules
file.
You can do this from the command line:
# If you're in the root of your project
npx fbschema
# Or you can pass in a path to your project's root
npx fbschema ~/workspace/my-cool-firebase-project
You can also use this library in your code:
import fbschema from 'fbschema';
// If you're running this code from your project's root
fbschema();
// You can also provide a path to your project's root
fbschema('../');
All code should pass tests, as well as be well documented. Please also see the Commit Message Guidelines for how commit messages should be structured.
FAQs
A simple library to generate TypeScript definition files as well as Firestore rules based on a JSON Schema definition.
The npm package fbschema receives a total of 0 weekly downloads. As such, fbschema popularity was classified as not popular.
We found that fbschema 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 found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.