How to use the spdx-license-list/spdx-simple.json.map function in spdx-license-list

To help you get started, we’ve selected a few spdx-license-list 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 David-Desmaisons / vue-cli-plugin-component / prompts.js View on Github external
const camelCase = require('camelcase');
const licensesInformation = require('spdx-license-list/spdx-simple.json')
const licenses = licensesInformation.map(name => ({
  name,
  value: name
}));

const prompts = module.exports = [
  {
    type: 'input',
    name: 'componentName',
    message: 'Enter the component name (in PascalCase- no hyphen nor dash):'
  },
  {
    type: 'confirm',
    name: 'useComponentFixture',
    message: 'Use componentFixture to build example?',
    default: true,
    group: 'Example',

spdx-license-list

List of SPDX licenses

CC0-1.0
Latest version published 2 months ago

Package Health Score

78 / 100
Full package analysis