shamrin / awesome-js-zerodep

Awesome JavaScript & TypeScript modules which have zero dependency

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

awesome-js-zerodep

Awesome JavaScript & TypeScript modules which have zero dependencies. Well, almost zero, if it have 1 but really good, list it here.

You can check your project for used packages which have zero dependencies with this bash script:

for N in $(npm list --omit peer --omit dev --omit optional --depth 0 --json | jq ".dependencies" | jq 'keys[]' -r); do COUNT=$(cat node_modules/$N/package.json | jq ".dependencies" | jq length); if [ "$COUNT" == "0" ]; then echo $N; fi; done

Generate the line automagically 🪄

Use this script: https://gist.github.com/huksley/0e681e12de92951c7c9d9e83d8e9dbd8

React & Web

summary npm repo package types dependency count last update
Useful hooks for React npm i usehooks-ts GitHub https://img.shields.io/badge/npm/v/usehooks-js-blue types dependenices last update
Modern fetch for web npm i swr GitHub https://img.shields.io/badge/npm/v/swr-blue types dependencies last update
Date time utils npm i date-fns GitHub https://img.shields.io/badge/npm/v/date-fns-blue types dependencies last update
Functional utils npm i ramda GitHub https://img.shields.io/badge/npm/v/ramda-blue types dependencies last update
Data validator npm i validator GitHub https://img.shields.io/badge/npm/v/validator-blue types dependencies last update
ID generator npm i nanoid GitHub https://img.shields.io/badge/npm/v/nanoid-blue types dependencies last update
Compare objects npm i dequal GitHub https://img.shields.io/badge/npm/v/dequal-blue types dependencies last update
Compare versions npm i compare-versions GitHub https://img.shields.io/badge/npm/v/compare-versions-blue types dependencies last update
Good offline font npm i @fontsource/open-sans GitHub https://img.shields.io/badge/npm/v/@fontsource/open-sans-blue types dependencies last update
Converts markdown to JSX npm i markdown-to-jsx GitHub https://img.shields.io/badge/npm/v/markdown-to-jsx-blue types dependencies last update
Typed javascript npm i typescript GitHub https://img.shields.io/badge/npm/v/typescript-blue types dependencies last update
useInView hook to detect when element is in view npm i react-intersection-observer GitHub https://img.shields.io/badge/npm/v/react-intersection-observer-blue types dependencies last update
NextJS state in querystring npm i next-query-state GitHub https://img.shields.io/badge/npm/v/next-query-state-blue types dependencies last update

About

Awesome JavaScript & TypeScript modules which have zero dependency