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
Use this script: https://gist.github.com/huksley/0e681e12de92951c7c9d9e83d8e9dbd8
summary | npm | repo | package | types | dependency count | last update |
---|---|---|---|---|---|---|
Useful hooks for React | npm i usehooks-ts |
GitHub | ||||
Modern fetch for web | npm i swr |
GitHub | ||||
Date time utils | npm i date-fns |
GitHub | ||||
Functional utils | npm i ramda |
GitHub | ||||
Data validator | npm i validator |
GitHub | ||||
ID generator | npm i nanoid |
GitHub | ||||
Compare objects | npm i dequal |
GitHub | ||||
Compare versions | npm i compare-versions |
GitHub | ||||
Good offline font | npm i @fontsource/open-sans |
GitHub | ||||
Converts markdown to JSX | npm i markdown-to-jsx |
GitHub | ||||
Typed javascript | npm i typescript |
GitHub | ||||
useInView hook to detect when element is in view | npm i react-intersection-observer |
GitHub | ||||
NextJS state in querystring | npm i next-query-state |
GitHub |