π TypeScript utility functions for modern web development
In Deno you can either import code inside a file directly or go through an import map.
- Using imports (or an import map)
Add it to your imports:
# Add the text package
deno add @edouardmisset/text@5Then import it in you files:
// Import the capitalize function
import { capitalize } from '@edouardmisset/text'
console.log(capitalize('hello')) // returns "Hello"- Directly in file
Import it in your file:
// Direct function import in a file using jsr.io (no import map needed)
import { capitalize } from 'jsr:@edouardmisset/text@5.0.0'# Add the text package using a package manager in a node-like environment
# npm
npx jsr add @edouardmisset/text@5
# pnpm
pnpx jsr add @edouardmisset/text@5
# bun
bunx jsr add @edouardmisset/text@5// Import the capitalize function
import { capitalize } from '@edouardmisset/text'
console.log(capitalize('hello')) // returns "Hello"This package was built with JSDoc. The autogenerated docs can be found in each package on jsr.io.
Feel free to report any issues on GitHub π
PR welcome π
See the MIT license for more information.
This project draws inspiration and learns from various resources and projects that have contributed to the JavaScript and TypeScript developer community.
- 30 Seconds of Code
- You-Dont-Need-Lodash-Underscore
- TotalTypeScript
- Deno standard library
- And many others...
I am indebted to these projects and communities for their insights, code examples, and continuous support, which have shaped the development of this utility package.
Thank you βοΈ