Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
npm install metautil
const metautil = require('metautil');
random(min: number, max?: number): number
sample(arr: Array<any>): any
ipToInt(ip?: string): number
parseHost(host?: string): string
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
makePrivate(instance: object): object
protect(allowMixins: Array<string>, ...namespaces: Array<object>): void
parseCookies(cookie: string): object
createAbortController(): AbortController
timeout(msec: number, signal?: EventEmitter): Promise<void>
delay(msec: number, signal?: EventEmitter): Promise<void>
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
Copyright (c) 2017-2021 Metarhia contributors.
Metautil is MIT licensed.
Metautil is a part of Metarhia technology stack.
[3.5.13][] - 2021-09-20
FAQs
Metarhia utilities
The npm package metautil receives a total of 122 weekly downloads. As such, metautil popularity was classified as not popular.
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 0 open source maintainers 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.