1.0.0 • Published 5 years ago

random-images v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

random with imgage

  • effect
    • You can use it to generate many random images,Just for testing
  • use

    • first, install it
    npm install --save -dev random-images
    • and then
    import randomImages from 'random-images'
    randomImages.init(num)

    You just need to pass in the image nums

    • last, it will return you an array of image paths
    ['http://images/1.jpg', 'http://images/2.jpg', ...]
  • 作用

    • 你可以使用它生成一段随机的图片路径用来渲染,可以作为测试使用
  • 使用
    • 首先,npm安装它
    npm install --save -dev random-images
    • 然后,引入并使用
    import randomImages from 'random-images'
    randomImages.init(num)

    你只需要传入所需要的图片数量

    • 最后,它将返回一段图片路径组成的数组
    ['http://images/1.jpg', 'http://images/2.jpg', ...]