Convert a DOM DocumentType into a string, e.g. "<!DOCTYPE html>"
Browse Source

Publish transpiled version

tags/v0.1.1
Gerben 6 years ago
parent
commit
cd537c404e
4 changed files with 9 additions and 2 deletions
  1. +1
    -0
      .gitignore
  2. +7
    -1
      package.json
  3. +0
    -0
      src/index.js
  4. +1
    -1
      test/index.js

+ 1
- 0
.gitignore View File

@@ -1 +1,2 @@
node_modules
/lib

+ 7
- 1
package.json View File

@@ -2,14 +2,20 @@
"name": "doctype-to-string",
"version": "0.1.0",
"description": "Convert a DOM DocumentType into a string, e.g. \"<!DOCTYPE html>\"",
"main": "index.js",
"main": "lib",
"scripts": {
"build": "babel -d lib src",
"prepublish": "npm run build",
"test": "ava"
},
"author": "Gerben <gerben@treora.com>",
"license": "CC0-1.0",
"files": [
"lib"
],
"devDependencies": {
"ava": "^1.0.0-beta.3",
"babel-cli": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-register": "^6.26.0",
"window": "^4.2.5"


index.js → src/index.js View File


index.test.js → test/index.js View File

@@ -1,7 +1,7 @@
import test from 'ava'
import Window from 'window';

import doctypeToString from '.'
import doctypeToString from '../src'

function makeStubDocument(doctype) {
const window = new Window()

Loading…
Cancel
Save