{
  "name": "placebo-js",
  "version": "1.0.8",
  "description": "Create elements from CSS selectors",
  "main": "placebo.js",
  "repository": {
    "type": "git",
    "url": "https://github.com/dmnevius/Placebo"
  },
  "keywords": [
    "JavaScript",
    "DOM"
  ],
  "author": {
    "name": "dmnevius"
  },
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/dmnevius/Placebo/issues"
  },
  "homepage": "https://github.com/dmnevius/Placebo",
  "ender": "ender.js",
  "gitHead": "d8a3e77c1a79bbed397f5ab58823b35ca9aeaa30",
  "readme": "# Placebo - Create elements from CSS selectors\r\nCreate elements from CSS selectors\r\n\r\n## Methods\r\n### .place()\r\nPlaces the placebo element in the document:\r\n``` js\r\nplacebo('element').place();\r\n```\r\nOptional parameter parent to append the element(s) to: (default is document.body)\r\n``` js\r\nplacebo('element').place(document.body);\r\n// Also works with other placebo elements\r\nvar parent = placebo('#parent');\r\nplacebo('element').place(parent);\r\n```\r\nFor selectors that modify the order or siblings, Placebo's .place must be used.\r\nThese selectors are \"*\", \",\", \"+\", \"~\", :first-child, :last-child, :nth-child, :nth-last-child, :only-child, :first-of-type, :last-of-type, :nth-of-type, :nth-last-of-type, :only-of-type, :focus, and :target.\r\n\r\n## Features\r\n### Create an element:\r\n``` js\r\nplacebo('element');\r\n```\r\n### Add a class:\r\n``` js\r\nplacebo('.class');\r\n```\r\n### Set id:\r\n``` js\r\nplacebo('#id');\r\n```\r\n### Clone all element:\r\n``` js\r\nplacebo('*');\r\n```\r\n### Create multiple elements:\r\n``` js\r\nplacebo('element, element');\r\n// Or\r\nplacebo('element + element');\r\n```\r\n### Create an element inside another element:\r\n``` js\r\nplacebo('element element');\r\n// Or\r\nplacebo('element > element');\r\n```\r\n### Create multiple elements in reverse order:\r\n``` js\r\nplacebo('element ~ element');\r\n```\r\n### Set empty attribute:\r\n``` js\r\nplacebo('element[attribute]');\r\n```\r\n### Set an attribute:\r\n``` js\r\n// Any of the following will work:\r\nplacebo('element[attribute=value]');\r\nplacebo('element[attribute~=value]');\r\nplacebo('element[attribute|=value]');\r\nplacebo('element[attribute^=value]');\r\nplacebo('element[attribute$=value]');\r\nplacebo('element[attribute*=value]');\r\n```\r\n### Checked input\r\n``` js\r\nplacebo('input:checked');\r\n```\r\n### Disabled input\r\n``` js\r\nplacebo('input:disabled');\r\n```\r\n### Enabled input\r\n``` js\r\nplacebo('input:enabled');\r\n```\r\n### Remove all children\r\n``` js\r\nplacebo('element:empty');\r\n```\r\n### Set as first child\r\n``` js\r\nplacebo('element:first-child');\r\n```\r\n### Set as last child\r\n``` js\r\nplacebo('element:last-child');\r\n```\r\n### Set as nth child\r\n``` js\r\nplacebo('element:nth-child(n)');\r\n```\r\n### Set as nth last child\r\n``` js\r\nplacebo('element:nth-last-child(n)');\r\n```\r\n### Set as only child\r\n``` js\r\nplacebo('element:only-child');\r\n```\r\n### Set as first of type\r\n``` js\r\nplacebo('element:first-of-type');\r\n```\r\n### Set as last of type\r\n``` js\r\nplacebo('element:last-of-type');\r\n```\r\n### Set as nth of type\r\n``` js\r\nplacebo('element:nth-of-type(n)');\r\n```\r\n### Set as nth last of type\r\n``` js\r\nplacebo('element:nth-last-of-type(n)');\r\n```\r\n### Set as only of type\r\n``` js\r\nplacebo('element:only-of-type');\r\n```\r\n### Focus input\r\n``` js\r\nplacebo('input:focus');\r\n```\r\n### Set random valid value\r\n``` js\r\nplacebo('input:in-range');\r\n```\r\n### Set random invalid value\r\n``` js\r\nplacebo('input:out-of-range');\r\n```\r\n### Set language\r\n``` js\r\nplacebo('element:lang(language)');\r\n```\r\n### Set optional input\r\n``` js\r\nplacebo('input:optional');\r\n```\r\n### Set required input\r\n``` js\r\nplacebo('input:required');\r\n```\r\n### Set read-only\r\n``` js\r\nplacebo('input:read-only');\r\n```\r\n### Set read and write\r\n``` js\r\nplacebo('input:read-write');\r\n```\r\n### Set URL anchor to the id of the element\r\n``` js\r\nplacebo('element#id:target');\r\n```\r\n### Unsupported modifiers\r\n:active, ::after, ::before, ::first-letter, ::first-line, :hover, :invalid, :link, :not, :root, ::selection, :valid, :visited are not supported.",
  "readmeFilename": "README.md",
  "_id": "placebo-js@1.0.8",
  "scripts": {},
  "_shasum": "4df210c5be60fdde74c2ae56e26d54543cad790b",
  "_from": "placebo-js@"
}
