Code Monkey home page Code Monkey logo

lice-js's People

Contributors

hubertursua avatar jarofghosts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lice-js's Issues

Defaults from package.json

It would be pretty cool if the information chain for generating the license went something like:

(cli options) -> (package.json) -> (what it currently defaults to [ie .gitconfig info and dirname etc])

so that once you npm init you can run lice and get a license generated for you.

i've forked and started work on adding that functionality, but wanted to run it past you for your thoughts.

Error when trying to generate ISC license

Looks like the header in templates.json is null for ISC, and looks like the code tries to access an attribute on that null header at some point

/Users/sean/npm/lib/node_modules/lice-js/licenseTemplate.js:42
        body: bodyHeader.body,
                        ^
TypeError: Cannot read property 'body' of undefined
    at new newTemplate (/Users/sean/npm/lib/node_modules/lice-js/licenseTemplate.js:42:19)
    at Object.createLicense (/Users/sean/npm/lib/node_modules/lice-js/lice.js:20:25)
    at /Users/sean/npm/lib/node_modules/lice-js/bin/cli.js:99:20
    at /Users/sean/npm/lib/node_modules/lice-js/node_modules/async/lib/async.js:551:21
    at /Users/sean/npm/lib/node_modules/lice-js/node_modules/async/lib/async.js:227:13
    at iterate (/Users/sean/npm/lib/node_modules/lice-js/node_modules/async/lib/async.js:134:13)
    at /Users/sean/npm/lib/node_modules/lice-js/node_modules/async/lib/async.js:145:25
    at /Users/sean/npm/lib/node_modules/lice-js/node_modules/async/lib/async.js:229:17
    at /Users/sean/npm/lib/node_modules/lice-js/node_modules/async/lib/async.js:556:34
    at async.series.cleanUpArgs.year (/Users/sean/npm/lib/node_modules/lice-js/bin/cli.js:83:19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.