@nova-lang/std
v0.6.0
Published
Nova standard library — strings, math, lists, types, control flow, and UI components
Downloads
121
Maintainers
Readme
@nova-lang/std
Nova standard library — strings, math, lists, types, control flow, datetime, encoding, colors, random, functional utilities, charts, and I/O.
Install
npm install @nova-lang/stdUsage
@use "nova/std"Modules
Strings (strings.nv)
str-upper, str-lower, str-trim, str-repeat, str-length, str-slice, str-title, str-pad, str-pad-end, str-starts-with, str-ends-with, str-includes, str-replace, str-replace-all, str-split, str-join, str-camel, str-kebab, str-snake, str-pascal, str-truncate, str-truncate-words, str-indent, str-unindent, str-wrap, str-reverse, str-count, str-count-words, str-count-lines, str-count-chars, str-slug, str-swap-case, str-mask, str-words
Math (math.nv)
math-min, math-max, math-clamp, math-round, math-floor, math-ceil, math-abs, math-pow, math-sqrt, math-percent, math-sum, math-avg, math-range, math-deg2rad, math-rad2deg, math-sin, math-cos, math-tan, math-asin, math-acos, math-atan, math-atan2, math-log, math-log2, math-log10, math-exp, math-factorial, math-is-prime, math-gcd, math-lcm, math-fibonacci, math-is-even, math-is-odd, math-sign, math-mean, math-median, math-mode, math-variance, math-stddev
Lists (lists.nv)
list-length, list-first, list-last, list-get, list-push, list-reverse, list-sort, list-join, list-slice, list-map, list-filter, list-reduce, list-every, list-some, list-includes, list-unique, list-flatten, list-chunk, list-find, list-find-index, list-index-of, list-last-index-of, list-take, list-take-right, list-drop, list-drop-right, list-insert, list-remove, list-remove-item, list-replace, list-zip, list-zip-with, list-unzip, list-sort-by, list-sort-desc, list-shuffle, list-min, list-max, list-sum, list-avg, list-difference, list-intersection, list-union, list-symmetric-difference, list-partition, list-compact, list-nth, list-sample, list-sample-size, list-flat-map
Types (types.nv)
type-of, type-is-string, type-is-number, type-is-boolean, type-is-object, type-is-array, type-is-null, type-is-defined, type-to-string, type-to-number, type-to-boolean, type-json-parse, type-json-stringify, type-default, type-is-function, type-is-date, type-is-promise, type-is-error, type-is-symbol, type-is-empty, type-is-numeric, type-is-integer, type-is-iterable, type-to-int, type-to-float, type-to-array, type-class-name, type-keys, type-values, type-entries, type-has, type-clone, type-clone-deep, type-equal, type-compare
Control Flow (control.nv)
when, unless, switch, try-do, times, repeat, with-default, unless-null, cond, not, match, try-catch, retry, delay, if-else, select, coalesce
DateTime (datetime.nv)
date-now, date-today, date-format, date-year, date-month, date-day, date-hours, date-minutes, date-seconds, date-timestamp, date-add, date-diff, date-is-before, date-is-after, date-is-same, date-relative, date-range, date-weekday, date-weekday-name, date-month-name, date-quarter, date-day-of-year, date-week-number, date-is-leap-year, date-days-in-month, date-start-of, date-end-of, time-format, time-format-pretty, time-elapsed, time-elapsed-pretty
Encoding (encoding.nv)
encode-base64, decode-base64, encode-hex, decode-hex, encode-url, decode-url, encode-html, encode-uri, encode-uri-component, encode-json, decode-json, encode-quoted-printable, encode-rot13, encode-rot47, encode-base32, encode-binary, decode-binary, encode-morse, decode-morse, encode-punycode, encode-soundex
Colors (colors.nv)
color-rgb, color-hex, color-hsl, color-lighten, color-darken, color-alpha, color-mix, color-contrast, color-gradient, color-palette, color-material, color-tailwind, color-brewer, color-okabe-ito, color-rainbow, color-named, color-from-hsl, color-saturate, color-desaturate, color-grayscale, color-invert, color-scale, color-analogous, color-complement, color-triadic, color-random-palette, color-luminance, color-contrast-ratio, color-wcag-pass, color-parse-hex, color-to-rgb, color-to-hsl
Random (random.nv)
random-number, random-float, random-int, random-bool, random-pick, random-pick-n, random-shuffle, random-sample, random-string, random-hex, random-uuid, random-color, random-email, random-weighted, random-normal, random-date, random-phone, random-ip, random-lat, random-lng, random-coin, random-dice, random-password, random-name, random-paragraph
Functional (functional.nv)
pipe, compose, curry, memoize, debounce, throttle, once, negate, identity, constant, noop, tap, times, range, zip, group-by, count-by, partition, flatten, uniq, uniq-by, difference, intersection, union, chunk, compact, without, pipe-async, partial, partial-right, spread, spread-object, pick, omit, flow, attempt, each, map, filter, reduce, is-equal, is-null, is-empty, is-equal-by, both, either, complement, wrap, unwrap
I/O (io.nv)
csv-parse, csv-stringify, csv-headers, csv-rows, csv-column, tsv-parse, tsv-stringify, read-file, write-file, base64-encode, base64-decode, url-encode, url-decode, hex-encode, hex-decode, yaml-inline
JSON (json.nv)
json-parse, json-stringify, json-minify, json-prettify, json-get, json-set, json-keys, json-values, json-entries, json-length, json-has, json-merge, json-pick, json-omit, json-query, json-flatten, json-unflatten, json-deep-merge, json-diff, json-sort, json-group-by, json-count-by
Charts & Plotting (plot.nv)
bar-chart, line-chart, pie-chart, scatter-plot, area-chart, histogram, figure-svg, bar-svg, line-svg, pie-svg, scatter-svg, area-svg
Syntactic Sugar (sugar.nv)
truthy, falsy, present, blank, or, and, nil, presence, coalesce, eq, neq, gt, lt, gte, lte, between, matches, in, instance-of, get, get-in, has, def, pluralize, ordinal, join, truncate, yesno, toggle, implies, inspect, type-label, tap-inspect
UI Components (components.nv)
alert, info-box, warning-box, error-box, success-box, badge, kbd, tag-label, progress, card, tooltip, quote, code-block, figure
License
MIT
