Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

comments

ljharb208MIT0.3.7

Transform between different comment styles

promiseback, comment, comments, html, comments, multiline, //, /*

readme

comments Version Badge

Build Status dependency status dev dependency status

npm badge

Transform comments in JS files between multiple styles - single-line, multi-line, both, and more to come!

Example

npm install -g comments
comments --style multi --save file_with_single_line_comments.js

Tests

Simply clone the repo, npm install, and run npm test

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

Generated by auto-changelog.

v0.3.7 - 2020-01-14

Commits

  • [Dev Deps] add eslint, remove jscs 38b9d55
  • [meta] add auto-changelog 49d10a6
  • [Tests] use shared travis-ci configs f3c94a0
  • Update extend, tape, covert, jscs 445d330
  • Update tape, jscs dbf4ead
  • [Dev Deps] update jscs, tape 935d9e7
  • All grade A-supported node/iojs versions now ship with an npm that understands ^. 101e9e7
  • [actions] add automatic rebasing / merge commit blocking cfabfb9
  • Test up to io.js v2.2 376eec8
  • Add npm run security 8f9475c
  • Run travis-ci tests on latest 2 iojs versions. 29c15f9
  • [Deps] update promiseback; remove unused extend 83de8b8
  • Only apps should have lockfiles feb628c
  • Test on io.js v2.3 294b0c1
  • Run travis-ci tests on iojs and node v0.12; speed up builds; allow 0.8 failures. 9585f19
  • Update promiseback, tape, jscs 5e4ccac
  • [Tests] use npx aud instead of nsp or npm audit with hoops 395291d
  • [Dev Deps] update tape, covert c4ff5ee
  • [meta] add funding field 3567f0e
  • Test up to io.js v2.5 4407306
  • Update jscs 2557cc0
  • [Dev Deps] update tape b44b1c4
  • Switch from vb.teelaun.ch to versionbadg.es for the npm version badge SVG. 623287f
  • Update tape 20c8205
  • Update extend e76a371
  • Update jscs 62178d5
  • Update tape 05ac0ee
  • Update tape 755304a
  • Test on io.js v3.0 226cc4e

v0.3.6 - 2014-11-02

Commits

v0.3.5 - 2014-09-16

Commits

v0.3.4 - 2014-08-29

Commits

v0.3.3 - 2014-08-14

Commits

v0.3.2 - 2014-08-12

Commits

v0.3.1 - 2014-03-16

Commits

  • Updating dependencies 0a2c429
  • Updating tape and covert d3e1fd6
  • Testing down to node 0.4 b173d1a
  • Revert "Fall back to Path.existsSync for node 0.6." a7a3f68
  • Bumping deps 6d6b358

v0.3.0 - 2013-12-30

Commits

  • Add support for promisebacks. 21ac59c
  • Adding newlines into a comment block. 6094d31
  • Making sure to test the code path where style is not provided. b7a81dd
  • Adding npm run coverage and npm run coverage-quiet 6285358
  • Drop support for node 0.6. 2093b5e
  • Removing unused code. 8d4dfb3
  • Fall back to Path.existsSync for node 0.6. 6d6259e
  • When the style is not provided, default it to none. 2373888
  • Adding npm badge a8d5432
  • Bumping to v0.3.0 debd847
  • Unset strict SSL for node 0.6 in Travis-CI 9e65cfc
  • Commenting out an unused helper method, for now. 0c76699
  • null is already a key; this exercises the || on line 175. 8d0f611
  • Updating tape 5e95e99
  • Updating tape ff5d853
  • Updating tape 388f1c8
  • Updating tape 24285dd
  • Test in node 0.11 too c0a7ea5

v0.2.0 - 2013-09-14

Commits

  • adding singleMulti 449d0b8
  • Multiline comments should not be touched at all when transforming to multi. a5c4d52
  • s/ /\t/g a42a2c4

v0.1.0 - 2013-09-14

Commits

  • Adding support for single c698b87
  • Tests for multiline strings. 838556a
  • Using literalizer.generate instead of my own unlex function. aa4bc82
  • Updating literalizer. a714921

v0.0.1 - 2013-09-07

Commits