Socket
Book a DemoInstallSign in
Socket

update-license

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

update-license

Update copyright information in a MIT license.

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

update-license NPM version

Update copyright information in a MIT license.

Install with npm

npm i update-license --save

Usage

var license = require('update-license');

Pass a license string with copyright information to update (currently only supports MIT):

var fs = require('fs');
var str = fs.readFileSync('LICENSE-MIT', 'utf8')
license(str);

If you want to change any information, you can pass it on the options:

license(str, {author: 'Foo Bar'});

See update-copyright.

Run tests

Install dev dependencies:

npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright (c) 2015-2015 Jon Schlinkert
Released under the MIT license

This file was generated by verb on February 19, 2015.

Keywords

license

FAQs

Package last updated on 20 Feb 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts