
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
@kaynooo/utils
Advanced tools
A comprehensive TypeScript utility library with type-safe builders, decorators, and helper functions for modern web development.
# bun (recommended)
bun add @kaynooo/utils
# pnpm
pnpm add @kaynooo/utils
# yarn
yarn add @kaynooo/utils
# npm
npm install @kaynooo/utils
import { declareI18n, declareLogger } from '@kaynooo/utils/builders'
import { Memoize } from '@kaynooo/utils/decorators'
import { ColorConverter } from '@kaynooo/utils/tools'
// Type-safe logging
const logger = declareLogger({ logLevel: 2 })
logger('success', 'Application started')
// Color conversion
const hslColor = ColorConverter.from('hex', '#f0af02').to('hsl')
// Memoization with automatic cache invalidation
class DataService {
@Memoize({ ttl: 5000 })
get expensiveData() {
return fetchDataFromAPI()
}
}
Create configured instances with fluent APIs:
Type-safe translations with dot notation keys:
const { t } = declareI18n({
en: { user: { profile: 'Profile of {username}' } },
fr: { user: { profile: 'Profil de {username}' } }
})
// Full type safety - TypeScript will error on invalid keys/variables
t('en', 'user.profile', { username: 'John' }) // ✅
t('en', 'invalid.key') // ❌ TypeScript error
Check out the examples/ directory for comprehensive usage examples of each utility.
Full API documentation is available at: https://kayno0o.github.io/utils/docs/
# Install dependencies
bun install
# Run tests
bun test
# Build the library
bun run build
# Generate documentation
bun run doc
MIT © Kaynooo
FAQs
A bunch of small utils functions that I use in my TS based projects
The npm package @kaynooo/utils receives a total of 71 weekly downloads. As such, @kaynooo/utils popularity was classified as not popular.
We found that @kaynooo/utils 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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.