Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

minifaker

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minifaker - npm Package Compare versions

Comparing version 1.31.0 to 1.32.0

dist/cjs/index.js

36

package.json
{
"name": "minifaker",
"version": "1.31.0",
"version": "1.32.0",
"description": "lightweight faker.js",
"types": "./dist/index.d.ts",
"main": "./dist/index",
"browser": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/types/index.d.ts",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
},
"./locales/en": {
"import": "./dist/esm/locales/en/index.js",
"require": "./dist/cjs/locales/en/index.js"
},
"./locales/fr": {
"import": "./dist/esm/locales/fr/index.js",
"require": "./dist/cjs/locales/fr/index.js"
},
"./locales/fr-CA": {
"import": "./dist/esm/locales/fr-CA/index.js",
"require": "./dist/cjs/locales/fr-CA/index.js"
},
"./locales/es": {
"import": "./dist/esm/locales/es/index.js",
"require": "./dist/cjs/locales/es/index.js"
}
},
"files": [

@@ -14,3 +35,3 @@ "dist"

"test": "jest",
"build": "ts-node bundle.ts && tsc ./src/index.ts --declaration --emitDeclarationOnly --downlevelIteration --esModuleInterop --outdir dist",
"build": "ts-node bundle.ts && tsc ./src/index.ts --declaration --emitDeclarationOnly --downlevelIteration --esModuleInterop --outdir ./dist/types",
"prepublishOnly": "npm run build"

@@ -27,3 +48,5 @@ },

"@types/jest": "^27.4.0",
"@types/node": "^17.0.8",
"@types/seedrandom": "^3.0.1",
"crypto-browserify": "^3.12.0",
"esbuild": "^0.14.10",

@@ -39,2 +62,3 @@ "jest": "^27.4.7",

"generate-password": "^1.7.0",
"minifaker": "file:.yalc/minifaker",
"nanoid": "^3.1.30",

@@ -41,0 +65,0 @@ "uuid": "^8.3.2"

10

README.md
# minifaker
Generate fake data.
An alternative to faker.js but with cjs or esm syntax
An alternative to faker.js with both esm and cjs syntax
<https://github.com/Marak/faker.js>

@@ -58,4 +58,4 @@

// There is no default locale import (not even `english`)
import 'minifaker/dist/locales/en' // the first locale import is set as default
import 'minifaker/dist/locales/fr'
import 'minifaker/locales/en' // the first locale import is set as default
import 'minifaker/locales/fr'

@@ -70,3 +70,3 @@ minifaker.firstName({ gender: 'female' }) // female name in english

import { array, name } from 'minifaker'
import 'minifaker/dist/locales/en'
import 'minifaker/locales/en'

@@ -80,3 +80,3 @@ array(50, () => name())

import { word } from 'minifaker'
import 'minifaker/dist/locales/en'
import 'minifaker/locales/en'

@@ -83,0 +83,0 @@ word() // Can be an adjective, adverb, conjunction, interjection, noun, preposition, verb

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