New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@fiverr/futile

Package Overview
Dependencies
Maintainers
22
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fiverr/futile

Collection of low level ECMAScript helper functions targeting language primitives and native objects

  • 1.4.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
22
Weekly downloads
 
Created
Source

futile

Collection of low level ECMAScript helper functions targeting language primitives and native objects

build status npm package pull requests issues

bitHound Overall Score bitHound Code bitHound Dependencies bitHound Dev Dependencies

Use futile Documentation

Import the library

const futile = require('@fiverr/futile');

futile.shuffle([1, 2, 3]);
futile.interpolate('Hello, ${name}', {name: 'Martin'});

Import individual methods

const shuffle = require('@fiverr/futile/lib/shuffle');
const interpolate = require('@fiverr/futile/lib/interpolate');

shuffle([1, 2, 3]);
interpolate('Hello, ${name}', {name: 'Martin'});

Working with futile repo

Playground

The "playground" directory is a place you can write test modules, and include futile as a module. It's node_modules contains a symlink to the parent directory so you're working with your actual work files.

The content of this directory is gitignored (short of example file and futile virtual module) so feel free to add your sandbox files there

Tests and builds

Lint code
npm run lint
Test some
npm test interpolate
npm test interpolate shuffle
Test all
npm test
Benchmark some
npm run benchmark uri
Benchmark all
npm run benchmark
Coverage
npm run coverage
Rebuild docs
npm run doc

Contributing to futile repo

Each module contains an index file - the exported module, and a test file. Modules should be commented in JSDoc so the automated documentation is up to date.

The lib's index should expose all the collection.

Version management

The version number specify major.minor.patch

TypeContentExample
patchInternal fixPerformance updates, tests, small tweaks
minorInterface change with full backward compatibilityAdding a new function, Bug fix
majorInterface change without full backward compatibilityChanging a function name or output, Removing a function

FAQs

Package last updated on 31 Jul 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc