![pnpm 9.5 Introduces Catalogs: Shareable Dependency Version Specifiers](https://cdn.sanity.io/images/cgdhsj6q/production/c06a5b74512bcc6da29d38cef96a454fa947810d-1024x1024.webp?w=400&fit=max&auto=format)
Security News
pnpm 9.5 Introduces Catalogs: Shareable Dependency Version Specifiers
pnpm 9.5 introduces a Catalogs feature, enabling shareable dependency version specifiers, reducing merge conflicts and improving support for monorepos.
metautil
Advanced tools
Changelog
[3.5.24][] - 2022-08-30
isError(instance): boolean
fetch()
Readme
npm install metautil
const metautil = require('metautil');
random(min: number, max?: number): number
sample(arr: Array<any>): any
parseParams(params: string): object
replace(str: string, substr: string, newstr: string): string
split(s: string, separator: string): [string, string]
fileExt(fileName: string): string
parsePath(relPath: string): Array<string>
between(s: string, prefix: string, suffix: string): string
isFirstUpper(s: string): boolean
toLowerCamel(s: string): string
toUpperCamel(s: string): string
isConstant(s: string): boolean
nowDate(date?: Date): string
duration(s: string | number): number
bytesToSize(bytes: number): string
sizeToBytes(size: string): number
namespaceByPath(namespace: object, path: string): object | null
parseDay(s: string): number
parseMonth(s: string): number
parseEvery(s: string): Every
nextEvent(every: Every, date?: Date): number
makePrivate(instance: object): object
protect(allowMixins: Array<string>, ...namespaces: Array<object>): void
createAbortController(): AbortController
timeout(msec: number, signal?: EventEmitter): Promise<void>
delay(msec: number, signal?: EventEmitter): Promise<void>
isError(instance): boolean
ipToInt(ip?: string): number
parseHost(host?: string): string
parseCookies(cookie: string): object
fetch(url: string): Promise<string>
jsonParse(buffer: Buffer): object | null
receiveBody(req: IncomingMessage): Promise<Buffer | null>
cryptoRandom(): number
generateKey(length: number, possible: string): string
crcToken(secret: string, key: string): string
generateToken(secret: string, characters: string, length: number): string
validateToken(secret: string, token: string): boolean
hashPassword(password: string): Promise<string>
validatePassword(password: string, serHash: string): Promise<boolean>
md5(fileName: string): Promise<string>
new Semaphore(concurrency: number, size?: number, timeout?: number)
empty: boolean
enter(): Promise<void>
leave(): void
new Pool()
size: number
available: number
next(): object | null
add(item: object): void
capture(): object | null
release(item: object): void
isFree(item: object): boolean
Copyright (c) 2017-2021 Metarhia contributors.
Metautil is MIT licensed.
Metautil is a part of Metarhia technology stack.
FAQs
Unknown package
We found that metautil 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.
Security News
pnpm 9.5 introduces a Catalogs feature, enabling shareable dependency version specifiers, reducing merge conflicts and improving support for monorepos.
Security News
A threat actor on BreachForums is selling an unverified npm vulnerability for account takeover, but npm has not officially confirmed the existence of this security concern.
Security News
Cyber insurance rates are dropping as the market matures, according to a new report projecting global premiums to reach $43 billion by 2030, driven by international market uptake and growth in the SME sector.