Gathering detailed insights and metrics for unkit
Gathering detailed insights and metrics for unkit
Gathering detailed insights and metrics for unkit
Gathering detailed insights and metrics for unkit
npm install unkit
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
175 Stars
30 Commits
7 Forks
4 Watching
9 Branches
18 Contributors
Updated on 15 Nov 2024
TypeScript (100%)
Cumulative downloads
Total Downloads
Last day
-60%
6
Compared to previous day
Last week
-1.6%
60
Compared to previous week
Last month
79.8%
401
Compared to previous month
Last year
1,781.3%
3,819
Compared to previous year
UnJS standard library
This package aggregates a collection of useful packages from unjs for ease of use.
Install using npm or yarn:
1npm i unkit 2# or 3yarn add unkit
Import a subpath:
1// ESM / Typescript 2import { pascalCase } from 'unkit/string' 3 4// CommonJS 5const { pascalCase } = require('unkit/string')
💡 Note: Please always explicitly install unkit
dependency even if it is already installed by another package in node_modules
.
Check ⬆️ Upgrading Guide for upgrading versions.
Libraries are exposed via semantic subpaths. Refer to each package documentation for available utilities.
/env
Useful environment information of running code.
👉 See unjs/std-env for more information.
1// ESM / Typescript 2import { production, dev } from 'unkit/env' 3 4// CommonJS 5const { production, dev } = require('unkit/env')
/esm
Missing ECMaScript module utils for Node.js
👉 See unjs/mlly for more information.
1// ESM / Typescript 2import { createCommonJS, resolve } from 'unkit/esm'
/fetch
A better fetch API. Works on node, browser, and workers
👉 See unjs/ohmyfetch for more information.
1// ESM / Typescript 2import { $fetch } from 'unkit/fetch' 3 4// CommonJS 5const { $fetch } = require('unkit/fetch')
/http
Helpers for creating HTTP servers
👉 See unjs/h3 and unjs/is-https for more information.
1// ESM / Typescript 2import { useBody, isHTTPS } from 'unkit/http' 3 4// CommonJS 5const { useBody, isHTTPS } = require('unkit/http')
/object
Utilities for working with objects and serialization
👉 See unjs/defu and unjs/destr for more information.
1// ESM / Typescript 2import { defaults, parseJSON } from 'unkit/object' 3 4// CommonJS 5const { defaults, parseJSON } = require('unkit/object')
/promise
Promise utils
👉 See unjs/items-promise for more information.
1// ESM / Typescript 2import { serial, parallel } from 'unkit/promise' 3 4// CommonJS 5const { serial, parallel } = require('unkit/promise')
/string
String manipulation utils
👉 See unjs/scule for more information.
1// ESM / Typescript 2import { snakeCase, upperFirst } from 'unkit/string' 3 4// CommonJS 5const { snakeCase, upperFirst } = require('unkit/string')
/url
Utilities to work with URLs
👉 See unjs/ufo for more information.
1// ESM / Typescript 2import { joinURL, withQuery } from 'unkit/url' 3 4// CommonJS 5const { joinURL, withQuery } = require('unkit/url')
Unkit uses npm dependencies with caret range,
this means when you freshly install unkit
, the latest features and fixes of sub-dependencies are installed. For upgrading we have two choices:
npm up unkit
or yarn upgrade unkit
: This will update the lock-file with minimal risk to the latest versions.package-lock.json
or yarn.lock
and reinstall dependencies with npm i
or yarn
this will update all nested dependencies to the latest.No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
Found 4/24 approved changesets -- score normalized to 1
Reason
1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
18 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More