A partial port of lodash and test suit to TypeScript for the Deno JavaScript runtime.
Repository
Current version released
4 years ago
nodash
A partial port of lodash
and test suit to TypeScript
for the Deno JavaScript runtime.
Project goals:
- mostly identicle port of
lodash
implementation (line-by-line) - mostly identicle port of
lodash
test suite (line-by-line) - port only the parts of
lodash
that are most useful for use in Deno - fully typed for use in TypeScript and passes Deno linter
- can import individual functions (
_
symbol is optional, i.e. “nodash”) - each release tag of
nodash
will reference alodash
release tag
Usage
For the bold:
import {
isEmpty,
isNull,
isUndefined,
} from "https://deno.land/x/nodash/src/mod.ts";
For the familiar:
import * as _ from "https://deno.land/x/nodash/src/mod.ts";
Project status:
- Partial Lang port of all “is” functions (e.g.
isString
,isEmpty
, etc.) - Partial Lang port of “to” functions:
-
toFinite
-
toInteger
-
toNumber
-
toSafeInteger
-
toString
-
- Function
-
debounce
-
throttle
-
- Object
-
get
-
has
-
set
-
unset
-
- String
-
deburr
-
camelCase
-
capitalize
-
kebabCase
-
lowerCase
-
snakeCase
-
startCase
-
upperCase
-
words
-
Contributions
Contributions are welcome. For additional ports, please:
- open an issue w/ proposal
- open a PR w/ code contribution (linked to issue)
- include all relevant tests from lodash (ported)
- pass
deno lint
and rundeno fmt
✨💎✨