Displaying 1 to 9 from 9 results

trash - Move files and folders to the trash

  •    Javascript

Works on macOS, Linux, and Windows.In contrast to fs.unlink, del, and rimraf which permanently delete files, this only moves them to the trash, which is much safer and reversible.

trash-cli - Move files and folders to the trash

  •    Javascript

Works on macOS, Linux, and Windows.In contrast to rm which is dangerous and permanently delete files, this only moves them to the trash, which is much safer and reversible. I would also recommend reading my guide on safeguarding rm.

object-pool - Recycle objects with minimal boilerplate with an object pool

  •    Javascript

A generic object pool which you can use for reducing object allocations when you're creating and removing lots of objects in quick succession. Or just to recycle objects, which is handy in cases such as game development.Returns a fresh object from the pool. If there aren't any objects left in the reserve, this will call init to create a new object and then enable on the object to get it set up. Otherwise, this will retrieve an object from the reserve and just call enable on it.

empty-trash - Empty the trash

  •    Javascript

Works on macOS, Linux, and Windows.On macOS, AppleScript is used as it's the only way to do it without incurring permission issues.




redux-recycle - :recycle: higher-order reducer to reset the redux state on certain actions

  •    Javascript

redux-recycle is a reducer enhancer (higher-order reducer), it provides the recycleState function, which takes an existing reducer and an array of actions that will reset the state. Optionally, you can also pass an initial state to reset to.

xdg-trashdir - Get the correct trash path on Linux

  •    Javascript

Returns a Promise that resolves the path to the trash. Get the trash path for a specific file.

vue-virtual-collection - Vue component for efficiently rendering large collection data

  •    Javascript

Vue component for efficiently rendering large collection data. Inspired by react-virtualize. vue-virtual-collection offers two ways of using a VirtualCollection.


dom-scroll-recycler - Created by Philip Quinn via the GitHub Connector

  •    Javascript

A ReactJS wrapper component to limit DOM elements rendered. This component takes in an array of items and calculates the amount of items to render, this can be done simply with the heights of the items and the height of the container or it can be pre calculated by the user and passed as a function with takes the current position and number of elements to show.