How to use the namor.generate function in namor

To help you get started, we’ve selected a few namor examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tannerlinsley / react-table / examples / kitchen-sink / src / makeData.js View on Github external
const newPerson = () => {
  const statusChance = Math.random()
  return {
    firstName: namor.generate({ words: 1, numbers: 0 }),
    lastName: namor.generate({ words: 1, numbers: 0 }),
    age: Math.floor(Math.random() * 30),
    visits: Math.floor(Math.random() * 100),
    progress: Math.floor(Math.random() * 100),
    status:
      statusChance > 0.66
        ? 'relationship'
        : statusChance > 0.33
        ? 'complicated'
        : 'single',
  }
}
github tannerlinsley / react-table / docs / src / stories / CustomWidths.js View on Github external
const data = _.map(_.range(5553), d => {
      return {
        firstName: namor.generate({ words: 1, numbers: 0 }),
        lastName: namor.generate({ words: 1, numbers: 0 }),
        age: Math.floor(Math.random() * 30)
      }
    })
github tannerlinsley / react-table / docs / src / stories / Filtering.js View on Github external
const data = _.map(_.range(5553), d => {
      return {
        firstName: namor.generate({ words: 1, numbers: 0 }),
        lastName: namor.generate({ words: 1, numbers: 0 }),
        age: Math.floor(Math.random() * 30)
      }
    })
github tannerlinsley / react-table / docs / src / stories / CustomComponentProps.js View on Github external
const data = _.map(_.range(5553), d => {
      return {
        firstName: namor.generate({ words: 1, numbers: 0 }),
        lastName: namor.generate({ words: 1, numbers: 0 }),
        age: Math.floor(Math.random() * 30)
      }
    })
github tannerlinsley / react-table / docs / src / stories / FixedHeader.js View on Github external
const data = _.map(_.range(5553), d => {
      return {
        firstName: namor.generate({ words: 1, numbers: 0 }),
        lastName: namor.generate({ words: 1, numbers: 0 }),
        age: Math.floor(Math.random() * 30),
        children: _.map(_.range(10), d => {
          return {
            firstName: namor.generate({ words: 1, numbers: 0 }),
            lastName: namor.generate({ words: 1, numbers: 0 }),
            age: Math.floor(Math.random() * 30)
          }
        })
      }
    })
github tannerlinsley / react-table / docs / src / stories / FunctionalRendering.js View on Github external
const data = _.map(_.range(5553), d => {
      return {
        firstName: namor.generate({ words: 1, numbers: 0 }),
        lastName: namor.generate({ words: 1, numbers: 0 }),
        age: Math.floor(Math.random() * 30)
      }
    })
github tannerlinsley / react-table / docs / src / stories / ControlledTable.js View on Github external
const data = _.map(_.range(5553), d => {
  return {
    firstName: namor.generate({ words: 1, numbers: 0 }),
    lastName: namor.generate({ words: 1, numbers: 0 }),
    age: Math.floor(Math.random() * 30)
  }
})
github l3p-cv / lost / frontend / lost / src / components / Utils.js View on Github external
const newLabel = () => {
  return {
    name: namor.generate({ words: 1, numbers: 0 }),
    description: namor.generate({ words: 3, numbers: 0 }),
    leafId: Math.floor(Math.random() * 30)
  }
}
github tannerlinsley / react-table / docs / src / stories / CustomExpanderPosition.js View on Github external
const data = _.map(_.range(5553), d => {
      return {
        firstName: namor.generate({words: 1, numbers: 0}),
        lastName: namor.generate({words: 1, numbers: 0}),
        age: Math.floor(Math.random() * 30)
      }
    })
github tannerlinsley / react-table / docs / src / stories / PivotingOptions.js View on Github external
const data = _.map(_.range(1000), d => {
      return {
        firstName: namor.generate({words: 1, numbers: 0}),
        lastName: namor.generate({words: 1, numbers: 0}),
        age: Math.floor(Math.random() * 30),
        visits: Math.floor(Math.random() * 100)
      }
    })

namor

A subdomain-safe name generator

MIT
Latest version published 2 years ago

Package Health Score

50 / 100
Full package analysis

Popular namor functions