Comments (5)
I guess this is a nice-to-have kind of thing.
osi-licenses-full has the full license texts for several licenses. I guess this feature would go through each, calculate some "similarity" score with LICENSE
and then just take a stab at defaulting on whatever license scored the highest?
from init-package-json.
licenses-utils does it by comparing files to static files stored as part of the module.
nlf does it by applying some regex.
Seems like either of these strategies would be fine.
from init-package-json.
The question I would have - where does this come into the hierarchy vs. config:init-license
? Should the presence of a LICENSE
always override the setting?
from init-package-json.
Should the presence of a
LICENSE
always override the setting?
That's the simplest and most intuitive thing to do. Explicit setting of the license in package.json
trumps LICENSE
, LICENSE
trumps init.license
, and init.license
trumps the default (ISC).
from init-package-json.
I actually came here to create an issue for this. I tend to initialize a project with the respective LICENSE
file on GitHub and run npm init -y
afterwards. Would be great if it would detect the license automatically.
If this is something you would be up to have, I would be happy to look into creating a PR for this.
from init-package-json.
Related Issues (20)
- Considering to init ESM default package.json? HOT 1
- package.json
- .github/PULL_REQUEST_TEMPLATE.md
- package.json
- Thanks for downloading Django. To install it, make sure you have Python 3.8 or greater installed. Then run this command from the command prompt: python -m pip install . For more detailed instructions, see docs/intro/install.txt.
- const globalThreshold = 50; // Global code coverage threshold (as a percentage)
- Screenshot 2022-02-17 at 15.58.10
- 18ffa74a4ca5896ef3218a4e2d6999720149e840
- "type": "object",
- N
- Money Pit
- Reporting a vulnerability HOT 1
- netbox/templates/extras/customfield.html
- 8b919b74149af92f4cad76c96080a254a72b7018
- * @npm/cli-team
- LICENSE
- LICENSE
- [BUG] <title>
- [BUG] <title> HOT 1
- [BUG] npm init not working - throws error HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from init-package-json.