nlogo-images

1.7.1 • Public • Published

nlogo-images

Bundles all images and gives you a local (on hard disk) refererence to logos

Be wary of using nlogo-images because it bundles all of the image files which may add quite a bit of weight to your node_modules directory. You may want to use nlogo instead because it gives you a remote URL reference to the logos doesn't instead of bundlingthem as part of the module

npm install nlogo-images
const logos = require('nlogo-images');
const { readFile } = require('fs');

const lodash = logos.get('lodash.partition');
// => {
//      filename: 'lodash.svg',
//      path: '/Users/dave/sites/my-site.com/node_modules/nlogo-images/lodash.svg',
//      url: 'https://nlogo.github.io/images/lodash.svg',
//      author: 'Dave Jeffery <dave@davejeffery.com>'
//    }
await readFile(lodash.path, 'utf8');
// => '<svg width="2500" height="2275">…</svg>'

Readme

Keywords

none

Package Sidebar

Install

npm i nlogo-images

Weekly Downloads

0

Version

1.7.1

License

MIT

Unpacked Size

469 kB

Total Files

51

Last publish

Collaborators

  • davej