🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@tkss/rodash

Package Overview
Dependencies
Maintainers
0
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tkss/rodash

A lodash inspired utility for Roku development

latest
Source
npmnpm
Version
0.0.35
Version published
Maintainers
0
Created
Source

image

build status monthly downloads npm version license Slack

Rodash is a Lodash inspired Brightscript/ROPM utility for Roku apps. Currently supporting over 200 utility functions!

This project is not affiliated with Lodash or the Tubitv/rodash project.

Installation

Using ropm

ropm install rodash@npm:@tkss/rodash

API Documentation (In Progress)

https://tkss-software.github.io/rodash/index.html

Usage Examples

Chunk

Brightscript

rodash_chunk(["a", "b", "c", "d"], 2)

Brighterscript

rodash.chunk(["a", "b", "c", "d"], 2)

Returns: [["a", "b"], ["c", "d"]]

Compact

Brightscript

rodash_compact([0, 1, false, 2, "", 3])

Brighterscript

rodash.compact([0, 1, false, 2, "", 3])

Returns: [1, 2, 3]

Shuffle & Slice

Brightscript

rodash_slice(rodash_shuffle([1,2,3,4,5,6,7,8,9,10]), 0, 4)

Brighterscript

rodash.slice(rodash.shuffle([1,2,3,4,5,6,7,8,9,10]), 0, 4)

Returns: [8, 3, 7, 5]

XOR

Brightscript

rodash_xor([[3, 10, 100], [100, 10, 2], [10, 500, 3]])

Brighterscript

rodash.xor([[3, 10, 100], [100, 10, 2], [10, 500, 3]])

Returns: [2, 500]

Brighterscript Support

If imported into a project that leverages the Brighterscript compiler, you can use rodash. lookups with auto-complete. image

Development

Currently in development

Keywords

ropm

FAQs

Package last updated on 27 Nov 2024

Did you know?

Socket

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.

Install

Related posts