Added logging, changed some directory structure

This commit is contained in:
2018-01-13 21:33:40 -05:00
parent f079a5f067
commit 8e72ffb917
73656 changed files with 35284 additions and 53718 deletions

View File

@@ -0,0 +1,34 @@
# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]
> Regular expression for matching HTML comments
## Install
```sh
$ npm install --save html-comment-regex
```
## Usage
```js
var htmlCommentRegex = require('html-comment-regex');
htmlCommentRegex.test('<!DOCTYPE html><!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--><html lang="en"><head><meta charset="UTF-8"><title>Document</title></head><body></body></html>');
//=> true
htmlCommentRegex.test('<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Document</title></head><body></body></html>');
//=> false
```
## License
MIT © [Steve Mao](https://github.com/stevemao)
[npm-image]: https://badge.fury.io/js/html-comment-regex.svg
[npm-url]: https://npmjs.org/package/html-comment-regex
[travis-image]: https://travis-ci.org/stevemao/html-comment-regex.svg?branch=master
[travis-url]: https://travis-ci.org/stevemao/html-comment-regex

View File

@@ -0,0 +1,2 @@
'use strict';
module.exports = /<!--([\s\S]*?)-->/g;

View File

@@ -0,0 +1,77 @@
{
"_args": [
[
"html-comment-regex@1.1.1",
"C:\\Users\\deranjer\\go\\src\\github.com\\deranjer\\goTorrent\\torrent-project"
]
],
"_from": "html-comment-regex@1.1.1",
"_id": "html-comment-regex@1.1.1",
"_inBundle": false,
"_integrity": "sha1-ZouTd26q5V696POtRkswekljYl4=",
"_location": "/css-loader/html-comment-regex",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "html-comment-regex@1.1.1",
"name": "html-comment-regex",
"escapedName": "html-comment-regex",
"rawSpec": "1.1.1",
"saveSpec": null,
"fetchSpec": "1.1.1"
},
"_requiredBy": [
"/css-loader/is-svg"
],
"_resolved": "https://registry.npmjs.org/html-comment-regex/-/html-comment-regex-1.1.1.tgz",
"_spec": "1.1.1",
"_where": "C:\\Users\\deranjer\\go\\src\\github.com\\deranjer\\goTorrent\\torrent-project",
"author": {
"name": "Steve Mao",
"email": "maochenyan@gmail.com",
"url": "https://github.com/stevemao"
},
"bugs": {
"url": "https://github.com/stevemao/html-comment-regex/issues"
},
"dependencies": {},
"description": "Regular expression for matching HTML comments",
"devDependencies": {
"jscs": "^1.11.3",
"jshint": "^2.6.3",
"mocha": "*"
},
"files": [
"index.js"
],
"homepage": "https://github.com/stevemao/html-comment-regex",
"keywords": [
"html-comment-regex",
"text",
"string",
"regex",
"regexp",
"re",
"match",
"test",
"find",
"pattern",
"comment",
"comments",
"html",
"HTML",
"HyperText Markup Language"
],
"license": "MIT",
"name": "html-comment-regex",
"repository": {
"type": "git",
"url": "git+https://github.com/stevemao/html-comment-regex.git"
},
"scripts": {
"lint": "jshint *.js --exclude node_modules && jscs *.js",
"test": "npm run-script lint && mocha"
},
"version": "1.1.1"
}