You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
535 B
25 lines
535 B
5 years ago
|
# doctypes
|
||
|
|
||
|
Shorthands for commonly used doctypes
|
||
|
|
||
|
[![Build Status](https://img.shields.io/travis/pugjs/doctypes/master.svg)](https://travis-ci.org/pugjs/doctypes)
|
||
|
[![NPM version](https://img.shields.io/npm/v/doctypes.svg)](https://www.npmjs.org/package/doctypes)
|
||
|
|
||
|
## Installation
|
||
|
|
||
|
npm install doctypes
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
```js
|
||
|
var assert = require('assert');
|
||
|
var doctypes = require('doctypes');
|
||
|
|
||
|
assert(doctypes['html'] === '<!DOCTYPE html>');
|
||
|
assert(doctypes['xml'] === '<?xml version="1.0" encoding="utf-8" ?>');
|
||
|
```
|
||
|
|
||
|
## License
|
||
|
|
||
|
MIT
|