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

random-movie-names

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

random-movie-names

Generate one or more TMDB movie names

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

random-movie-names

Generate one or more TMDB movie names

random-movie-names generates random movie names for use as sample text.

Cryptographic-quality randomness is NOT the goal, as speed matters for generating sample text and security does not. Math.random() is used.

Installation:

npm install random-movie-names

Examples:

const randomMovieNames = require('random-movie-names');

console.log(randomMovieNames());
SandCastle

console.log(randomMovieNames(5));
[TheBelkoExperiment', 'TheCircle', 'Containment', 'SisterActBackintheHabit', 'PatientZero']

console.log(randomMovieNames({ min: 5, max: 10 }));
['Selena', 'ActionJackson', 'DragonBallZTheTreeofMight', 'TaleofTales', 'MatthiasMaxime', 'RustCreek']

console.log(randomMovieNames({ exactly: 2 }));
['MeninBlack', 'RestStop']

console.log(randomMovieNames({ exactly: 5, join: ' ' }));
'Cyborg Wer Dreamcatcher ThoseWhoWishMeDead HowtoBeReallyBad'

console.log(randomMovieNames({ exactly: 5, join: '' }));
'NorbitClassofATaleofTwoSistersLovingVincentTheRunningMan'

console.log(randomMovieNames({exactly: 5, maxLength: 4}));
['Away', 'Kids', 'Cujo', 'Hush', 'M']

console.log(randomMovieNames({exactly:5, wordsPerString:2}));
['RoadTripBeerPong', 'SwimmingPool', 'InfidelityinSuburbia', 'TheLightBetweenOceans', 'VampyrosLesbos']


console.log(randomMovieNames({exactly:5, wordsPerString:2, separator:'-'}));
['Mirage', 'Taken', 'Footloose', 'Newsies', 'TheBlairWitchProject']

console.log(randomMovieNames({exactly:5, wordsPerString:2, formatter: (word)=> word.toUpperCase()}));
['BACHELORPARTY', 'NISEKOIFALSELOVE', 'ARENA', 'MALEFICENT', 'INCEPTIONTHECOBOLJOB']

console.log(randomMovieNames({exactly:5, wordsPerString:2, formatter: (word, index)=> {
    return index === 0 ? word.slice(0,1).toUpperCase().concat(word.slice(1)) : word;
}}));
['TrollHunter', 'TheHatefulEight', 'TheGreatWhiteHype', 'TheCandyWitch', 'TheLoveBug']

Keywords

FAQs

Package last updated on 30 Jul 2021

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