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

adjective-animal

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adjective-animal - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

4

HISTORY.md

@@ -0,1 +1,5 @@

# 1.1.2
* fix empty animal/adjective
# 1.1.1

@@ -2,0 +6,0 @@

@@ -5,5 +5,13 @@ "use strict";

const animals=fs.readFileSync(__dirname+"/animals.txt","utf8").split("\n").map(animal => animal.toLowerCase().trim().replace(" ","-"));
const adjectives=fs.readFileSync(__dirname+"/adjectives.txt","utf8").split("\n").map(animal => animal.toLowerCase().trim().replace(" ","-"));
function fileToArray(fileName)
{
return fs.readFileSync(__dirname+"/"+fileName,"utf8")
.split("\n")
.map(animal => animal.toLowerCase().trim().replace(" ","-"))
.filter(a => a!="");
}
const animals=fileToArray("animals.txt");
const adjectives=fileToArray("adjectives.txt");
function generateName()

@@ -10,0 +18,0 @@ {

2

package.json
{
"name": "adjective-animal",
"version": "1.1.1",
"version": "1.1.2",
"description": "Generate an adjective-animal name !",

@@ -5,0 +5,0 @@ "main": "index.js",

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