Package Exports
- remark-license
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (remark-license) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
remark-license

Add a license section to a README.
Installation
npm:
npm install remark-licenseremark-license is also available as an AMD, CommonJS, and globals module, uncompressed and compressed.
Usage
Require dependencies:
var remark = require('remark');
var license = require('remark-license');Process a document:
var doc = remark.use(license).process([
'## License',
'',
'Something nondescript.',
''
].join('\n'));Yields:
## License
[MIT](LICENSE) © [Titus Wormer](http://wooorm.com)API
remark.use(license[, options])
Add a license section to heading containing /^licen[cs]e$/i.
Replaces the original content of the section.
Does nothing when no heading is found.
Parameters:
license— This plug-in;options(Object, optional):name(string, optional) — License holder. Detected from thepackage.jsonin the current working directory, supporting bothobjectandstringformat ofauthor. Throws when neither given nor detected.license(string, optional) — SPDX identifier. Detected from thepackage.json’slicensefield in the current working directory. Deprecated license objects are not supported. Throws when neither given nor detected.file(string, optional) — File-name of license file. Detected from the files in the current working directory, in which case the first file matching/^licen[cs]e(?=$|\.)/iis used.url(string, optional) — URL to license holder. Detected from thepackage.jsonin the current working directory, supporting bothobjectandstringformat ofauthor.http://is prepended ifurlstarts without HTTP or HTTPS protocol.