{"_id":"unist-builder","_rev":"3276724","name":"unist-builder","description":"unist utility to create a new trees with a nice syntax","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"time":{"modified":"2024-03-21T10:30:25.000Z","created":"2015-09-27T09:06:08.326Z","4.0.0":"2023-07-07T10:30:15.432Z","3.0.1":"2023-01-23T13:10:52.629Z","3.0.0":"2021-04-19T07:04:08.731Z","2.0.3":"2020-02-16T16:04:04.252Z","2.0.2":"2019-11-10T09:50:42.015Z","2.0.1":"2019-10-31T21:51:46.605Z","2.0.0":"2019-10-28T08:22:02.730Z","1.0.4":"2019-05-21T12:15:58.770Z","1.0.3":"2018-08-17T10:33:20.062Z","1.0.2":"2016-06-23T10:33:12.666Z","1.0.1":"2016-01-23T15:04:52.084Z","1.0.0":"2015-09-27T09:06:08.326Z"},"users":{"mrzmmr":true},"author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-builder.git"},"versions":{"4.0.0":{"name":"unist-builder","version":"4.0.0","description":"unist utility to create a new trees with a nice syntax","license":"MIT","keywords":["unist","unist-util","util","utility","tree","ast","build","builder","create","dsl","hyperscript","sugar","syntax"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-builder.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-builder/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"contributors":[{"name":"Eugene Sharygin","email":"eush77@gmail.com"},{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Christian Murphy","email":"christian.murphy.42@gmail.com"}],"sideEffects":false,"type":"module","exports":"./index.js","dependencies":{"@types/unist":"^3.0.0"},"devDependencies":{"@types/mdast":"^4.0.0","@types/node":"^20.0.0","c8":"^8.0.0","prettier":"^2.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","tsd":"^0.28.0","type-coverage":"^2.0.0","typescript":"^5.0.0","xo":"^0.54.0"},"scripts":{"prepack":"npm run build && npm run format","build":"tsc --build --clean && tsc --build && tsd && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"bracketSpacing":false,"semi":false,"singleQuote":true,"tabWidth":2,"trailingComma":"none","useTabs":false},"remarkConfig":{"plugins":["remark-preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"ignoreCatch":true,"strict":true},"xo":{"prettier":true},"gitHead":"117b8e5078b9ebb8197a21181fb72aa27614920c","types":"./index.d.ts","homepage":"https://github.com/syntax-tree/unist-builder#readme","_id":"unist-builder@4.0.0","_nodeVersion":"20.0.0","_npmVersion":"9.7.2","dist":{"shasum":"817b326c015a6f9f5e92bb55b8e8bc5e578fe243","size":4531,"noattachment":false,"key":"/unist-builder/-/unist-builder-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unist-builder/download/unist-builder-4.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-builder_4.0.0_1688725815260_0.0017388055670937153"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-07T10:30:15.432Z","publish_time":1688725815432,"_source_registry_name":"default","_cnpm_publish_time":1688725815432},"3.0.1":{"name":"unist-builder","version":"3.0.1","description":"unist utility to create a new trees with a nice syntax","license":"MIT","keywords":["unist","unist-util","util","utility","tree","ast","build","builder","create","dsl","hyperscript","sugar","syntax"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-builder.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-builder/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"contributors":[{"name":"Eugene Sharygin","email":"eush77@gmail.com"},{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Christian Murphy","email":"christian.murphy.42@gmail.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/unist":"^2.0.0"},"devDependencies":{"@types/mdast":"^3.0.0","@types/node":"^18.0.0","c8":"^7.0.0","prettier":"^2.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","tsd":"^0.25.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.53.0"},"scripts":{"prepack":"npm run build && npm run format","build":"tsc --build --clean && tsc --build && tsd && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true},"gitHead":"d8a99976b4e00c4e6ca46346c033bbeaf8d897a9","homepage":"https://github.com/syntax-tree/unist-builder#readme","_id":"unist-builder@3.0.1","_nodeVersion":"19.3.0","_npmVersion":"9.2.0","dist":{"shasum":"258b89dcadd3c973656b2327b347863556907f58","size":4597,"noattachment":false,"key":"/unist-builder/-/unist-builder-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unist-builder/download/unist-builder-3.0.1.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-builder_3.0.1_1674479452442_0.45139339343287976"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-23T13:10:52.629Z","publish_time":1674479452629,"_cnpm_publish_time":1674479452629},"3.0.0":{"name":"unist-builder","version":"3.0.0","description":"unist utility to create a new trees with a nice syntax","license":"MIT","keywords":["unist","unist-util","util","utility","tree","ast","build","builder","create","dsl","hyperscript","sugar","syntax"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-builder.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-builder/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"contributors":[{"name":"Eugene Sharygin","email":"eush77@gmail.com"},{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Christian Murphy","email":"christian.murphy.42@gmail.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/unist":"^2.0.0"},"devDependencies":{"@types/mdast":"^3.0.0","@types/tape":"^4.0.0","c8":"^7.0.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","rimraf":"^3.0.0","tape":"^5.0.0","tsd":"^0.14.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.38.0"},"scripts":{"prepack":"npm run build && npm run format","build":"rimraf \"*.d.ts\" && tsc && tsd && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"capitalized-comments":"off","import/no-mutable-exports":"off","no-var":"off","prefer-arrow-callback":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true},"gitHead":"b923e609cc4a61d1ae7c1f3aaa082098f42d6308","homepage":"https://github.com/syntax-tree/unist-builder#readme","_id":"unist-builder@3.0.0","_nodeVersion":"15.11.0","_npmVersion":"7.9.0","dist":{"shasum":"728baca4767c0e784e1e64bb44b5a5a753021a04","size":3931,"noattachment":false,"key":"/unist-builder/-/unist-builder-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unist-builder/download/unist-builder-3.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-builder_3.0.0_1618815848578_0.19481555315756527"},"_hasShrinkwrap":false,"publish_time":1618815848731,"_cnpm_publish_time":1618815848731},"2.0.3":{"name":"unist-builder","version":"2.0.3","description":"unist utility to create a new trees with a nice syntax","license":"MIT","keywords":["unist","unist-util","util","utility","tree","ast","build","builder","create","dsl","hyperscript","sugar","syntax"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-builder.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-builder/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"contributors":[{"name":"Eugene Sharygin","email":"eush77@gmail.com"},{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Christian Murphy","email":"christian.murphy.42@gmail.com"}],"types":"types/index.d.ts","dependencies":{},"devDependencies":{"@types/mdast":"^3.0.0","dtslint":"^3.0.0","nyc":"^15.0.0","prettier":"^1.0.0","remark-cli":"^7.0.0","remark-preset-wooorm":"^6.0.0","tape":"^4.0.0","xo":"^0.26.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test-types":"dtslint types","test":"npm run format && npm run test-coverage && npm run test-types"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"38a12a01475391ac118f11330f59ecfeb6c34eed","homepage":"https://github.com/syntax-tree/unist-builder#readme","_id":"unist-builder@2.0.3","_nodeVersion":"13.0.1","_npmVersion":"6.13.7","dist":{"shasum":"77648711b5d86af0942f334397a33c5e91516436","size":3543,"noattachment":false,"key":"/unist-builder/-/unist-builder-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/unist-builder/download/unist-builder-2.0.3.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-builder_2.0.3_1581869044074_0.10902945543770537"},"_hasShrinkwrap":false,"publish_time":1581869044252,"_cnpm_publish_time":1581869044252},"2.0.2":{"name":"unist-builder","version":"2.0.2","description":"Helper for creating unist trees","license":"MIT","keywords":["ast","build","builder","create","dsl","hyperscript","sugar","syntax","tree","unist"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-builder.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-builder/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"contributors":[{"name":"Eugene Sharygin","email":"eush77@gmail.com"},{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Christian Murphy","email":"christian.murphy.42@gmail.com"}],"types":"types/index.d.ts","dependencies":{},"devDependencies":{"@types/mdast":"^3.0.0","dtslint":"^2.0.0","nyc":"^14.0.0","prettier":"^1.0.0","remark-cli":"^7.0.0","remark-preset-wooorm":"^6.0.0","tape":"^4.0.0","xo":"^0.25.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test-types":"dtslint types","test":"npm run format && npm run test-coverage && npm run test-types"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"f0cbefbdd7676f01bfcdeab732bb7d2ddba32c86","homepage":"https://github.com/syntax-tree/unist-builder#readme","_id":"unist-builder@2.0.2","_nodeVersion":"13.0.1","_npmVersion":"6.13.0","dist":{"shasum":"f24abd96f703925f03df175c1e4143f79e348839","size":3537,"noattachment":false,"key":"/unist-builder/-/unist-builder-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/unist-builder/download/unist-builder-2.0.2.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-builder_2.0.2_1573379441837_0.10074012382530717"},"_hasShrinkwrap":false,"publish_time":1573379442015,"_cnpm_publish_time":1573379442015},"2.0.1":{"name":"unist-builder","version":"2.0.1","description":"Helper for creating unist trees","license":"MIT","keywords":["ast","build","builder","create","dsl","hyperscript","sugar","syntax","tree","unist"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-builder.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-builder/issues"},"author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"contributors":[{"name":"Eugene Sharygin","email":"eush77@gmail.com"},{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Christian Murphy","email":"christian.murphy.42@gmail.com"}],"types":"types/index.d.ts","dependencies":{},"devDependencies":{"@types/mdast":"^3.0.0","dtslint":"^1.0.0","nyc":"^14.0.0","prettier":"^1.0.0","remark-cli":"^7.0.0","remark-preset-wooorm":"^6.0.0","tape":"^4.0.0","xo":"^0.25.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test-types":"dtslint types","test":"npm run format && npm run test-coverage && npm run test-types"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"77882173c43c30dcbe70fafa843f7877944dd0db","homepage":"https://github.com/syntax-tree/unist-builder#readme","_id":"unist-builder@2.0.1","_nodeVersion":"13.0.1","_npmVersion":"6.12.0","dist":{"shasum":"ffdb3e70ac51dc5eca8e95f2cf166a3922d8b331","size":3508,"noattachment":false,"key":"/unist-builder/-/unist-builder-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unist-builder/download/unist-builder-2.0.1.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-builder_2.0.1_1572558706458_0.450198403044326"},"_hasShrinkwrap":false,"publish_time":1572558706605,"_cnpm_publish_time":1572558706605},"2.0.0":{"name":"unist-builder","version":"2.0.0","description":"Helper for creating unist trees","license":"MIT","keywords":["ast","build","builder","create","dsl","hyperscript","sugar","syntax","tree","unist"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-builder.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-builder/issues"},"author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"contributors":[{"name":"Eugene Sharygin","email":"eush77@gmail.com"},{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Christian Murphy","email":"christian.murphy.42@gmail.com"}],"types":"types/index.d.ts","dependencies":{"object-assign":"^4.1.0"},"devDependencies":{"@types/mdast":"^3.0.0","dtslint":"^0.9.9","nyc":"^14.0.0","prettier":"^1.0.0","remark-cli":"^7.0.0","remark-preset-wooorm":"^6.0.0","tape":"^4.0.0","xo":"^0.25.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test-types":"dtslint types","test":"npm run format && npm run test-coverage && npm run test-types"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"049c25443b8275cace0bd830c824861109d62c4a","homepage":"https://github.com/syntax-tree/unist-builder#readme","_id":"unist-builder@2.0.0","_nodeVersion":"13.0.1","_npmVersion":"6.12.0","dist":{"shasum":"94d3e2b6ad23bc81c7f31af813b89f34d8bcbc7f","size":3520,"noattachment":false,"key":"/unist-builder/-/unist-builder-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unist-builder/download/unist-builder-2.0.0.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-builder_2.0.0_1572250922561_0.11966691310907307"},"_hasShrinkwrap":false,"publish_time":1572250922730,"_cnpm_publish_time":1572250922730},"1.0.4":{"name":"unist-builder","version":"1.0.4","description":"Helper for creating unist trees","license":"MIT","keywords":["ast","build","builder","create","dsl","hyperscript","sugar","syntax","tree","unist"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-builder.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-builder/issues"},"author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"contributors":[{"name":"Eugene Sharygin","email":"eush77@gmail.com"},{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{"object-assign":"^4.1.0"},"devDependencies":{"nyc":"^14.0.0","prettier":"^1.14.2","remark-cli":"^6.0.0","remark-preset-wooorm":"^5.0.0","tape":"^4.0.0","xo":"^0.24.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"1b1d82f5bbe362e5354b01bae30e4fd2c66a5b77","homepage":"https://github.com/syntax-tree/unist-builder#readme","_id":"unist-builder@1.0.4","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"shasum":"e1808aed30bd72adc3607f25afecebef4dd59e17","size":2864,"noattachment":false,"key":"/unist-builder/-/unist-builder-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/unist-builder/download/unist-builder-1.0.4.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-builder_1.0.4_1558440958639_0.024471935646442677"},"_hasShrinkwrap":false,"publish_time":1558440958770,"_cnpm_publish_time":1558440958770},"1.0.3":{"name":"unist-builder","version":"1.0.3","description":"Helper for creating unist trees","license":"MIT","keywords":["ast","build","builder","create","dsl","hyperscript","sugar","syntax","tree","unist"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-builder.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-builder/issues"},"author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"contributors":[{"name":"Eugene Sharygin","email":"eush77@gmail.com"},{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"files":["index.js"],"dependencies":{"object-assign":"^4.1.0"},"devDependencies":{"nyc":"^12.0.2","prettier":"^1.14.2","remark-cli":"^5.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.2.0","xo":"^0.22.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"d097096b7d8ef1112643ccdeb80d565f1a9bffab","homepage":"https://github.com/syntax-tree/unist-builder#readme","_id":"unist-builder@1.0.3","_npmVersion":"6.3.0","_nodeVersion":"10.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"ab0f9d0f10936b74f3e913521955b0478e0ff036","size":2705,"noattachment":false,"key":"/unist-builder/-/unist-builder-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/unist-builder/download/unist-builder-1.0.3.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-builder_1.0.3_1534501999897_0.9586855246110253"},"_hasShrinkwrap":false,"publish_time":1534502000062,"_cnpm_publish_time":1534502000062},"1.0.2":{"name":"unist-builder","version":"1.0.2","description":"Helper for creating unist trees","author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"license":"MIT","scripts":{"test":"tape test/*.js"},"files":["index.js"],"homepage":"https://github.com/eush77/unist-builder","repository":{"type":"git","url":"git+https://github.com/eush77/unist-builder.git"},"bugs":{"url":"https://github.com/eush77/unist-builder/issues"},"keywords":["ast","build","builder","create","dsl","hyperscript","sugar","syntax","tree","unist"],"dependencies":{"object-assign":"^4.1.0"},"devDependencies":{"tape":"^4.2.0"},"gitHead":"d8d7167dee0ca14aba2fca02dcdec9f5bf0968fb","_id":"unist-builder@1.0.2","_shasum":"8c3b9903ef64bcfb117dd7cf6a5d98fc1b3b27b6","_from":".","_npmVersion":"3.3.3","_nodeVersion":"2.1.0","_npmUser":{"name":"eush77","email":"eush77@gmail.com"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"dist":{"shasum":"8c3b9903ef64bcfb117dd7cf6a5d98fc1b3b27b6","size":1930,"noattachment":false,"key":"/unist-builder/-/unist-builder-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/unist-builder/download/unist-builder-1.0.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/unist-builder-1.0.2.tgz_1466677990572_0.2482887958176434"},"directories":{},"publish_time":1466677992666,"_cnpm_publish_time":1466677992666,"_hasShrinkwrap":false},"1.0.1":{"name":"unist-builder","version":"1.0.1","description":"Helper for creating unist trees","author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"license":"MIT","scripts":{"test":"tape test/*.js"},"files":["index.js"],"homepage":"https://github.com/eush77/unist-builder","repository":{"type":"git","url":"git+https://github.com/eush77/unist-builder.git"},"bugs":{"url":"https://github.com/eush77/unist-builder/issues"},"keywords":["ast","build","builder","create","dsl","hyperscript","sugar","syntax","tree","unist"],"dependencies":{"object.assign":"^4.0.1"},"devDependencies":{"tape":"^4.2.0"},"gitHead":"80383bc23d9a7a6ccb2743a1eabc48440962eb8b","_id":"unist-builder@1.0.1","_shasum":"f5498a249b03eeeab1dcbcca6ac22b31f05bcc26","_from":".","_npmVersion":"3.3.9","_nodeVersion":"5.0.0","_npmUser":{"name":"eush77","email":"eush77@gmail.com"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"dist":{"shasum":"f5498a249b03eeeab1dcbcca6ac22b31f05bcc26","size":1942,"noattachment":false,"key":"/unist-builder/-/unist-builder-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unist-builder/download/unist-builder-1.0.1.tgz"},"directories":{},"publish_time":1453561492084,"_cnpm_publish_time":1453561492084,"_hasShrinkwrap":false},"1.0.0":{"name":"unist-builder","version":"1.0.0","description":"Helper for creating unist trees","author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"license":"MIT","scripts":{"test":"tape test/*.js"},"files":["index.js"],"homepage":"https://github.com/eush77/unist-builder","repository":{"type":"git","url":"git+https://github.com/eush77/unist-builder.git"},"bugs":{"url":"https://github.com/eush77/unist-builder/issues"},"keywords":["ast","build","builder","create","dsl","hyperscript","sugar","syntax","tree","unist"],"dependencies":{"object.assign":"^4.0.1"},"devDependencies":{"tape":"^4.2.0"},"gitHead":"2483e5cbeb8b88541b9b9b1f9d1b3ead68bb2f8b","_id":"unist-builder@1.0.0","_shasum":"1dde30c9502a209f72fccc2df1d6c9e0adf56491","_from":".","_npmVersion":"3.3.1","_nodeVersion":"3.0.0","_npmUser":{"name":"eush77","email":"eush77@gmail.com"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"dist":{"shasum":"1dde30c9502a209f72fccc2df1d6c9e0adf56491","size":1941,"noattachment":false,"key":"/unist-builder/-/unist-builder-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unist-builder/download/unist-builder-1.0.0.tgz"},"directories":{},"publish_time":1443344768326,"_cnpm_publish_time":1443344768326,"_hasShrinkwrap":false}},"readme":"# unist-builder\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n[![Sponsors][sponsors-badge]][collective]\n[![Backers][backers-badge]][collective]\n[![Chat][chat-badge]][chat]\n\n[unist][] utility to create trees with ease.\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When should I use this?](#when-should-i-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`u(type[, props][, children|value])`](#utype-props-childrenvalue)\n    *   [`ChildrenOrValue`](#childrenorvalue)\n    *   [`Props`](#props)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Related](#related)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis package is a hyperscript interface (like `createElement` from React and\n`h` from Vue and such) to help with creating unist trees.\n\n## When should I use this?\n\nYou can use this utility in your project when you generate syntax trees with\ncode.\nIt helps because it replaces most of the repetition otherwise needed in a syntax\ntree with function calls.\n\nYou can instead use [`hastscript`][hastscript] or [`xastscript`][xastscript]\nwhen creating hast (HTML) or xast (XML) nodes.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 16+), install with [npm][]:\n\n```sh\nnpm install unist-builder\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {u} from 'https://esm.sh/unist-builder@4'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {u} from 'https://esm.sh/unist-builder@4?bundle'\n</script>\n```\n\n## Use\n\n```js\nimport {u} from 'unist-builder'\n\nconst tree = u('root', [\n  u('subtree', {id: 1}),\n  u('subtree', {id: 2}, [\n    u('node', [u('leaf', 'leaf 1'), u('leaf', 'leaf 2')]),\n    u('leaf', {id: 3}, 'leaf 3'),\n    u('void', {id: 4})\n  ])\n])\n\nconsole.dir(tree, {depth: undefined})\n```\n\n…yields:\n\n```js\n{\n  type: 'root',\n  children: [\n    {type: 'subtree', id: 1},\n    {\n      type: 'subtree',\n      id: 2,\n      children: [\n        {\n          type: 'node',\n          children: [\n            {type: 'leaf', value: 'leaf 1'},\n            {type: 'leaf', value: 'leaf 2'}\n          ]\n        },\n        {type: 'leaf', id: 3, value: 'leaf 3'},\n        {type: 'void', id: 4}\n      ]\n    }\n  ]\n}\n```\n\n## API\n\nThis package exports the identifier [`u`][u].\nThere is no default export.\n\n### `u(type[, props][, children|value])`\n\nBuild a node.\n\n###### Signatures\n\n*   `u(type[, props], children)` — create a parent ([`Parent`][parent])\n*   `u(type[, props], value)` — create a literal ([`Literal`][literal])\n*   `u(type[, props])` — create a void node (neither parent not literal)\n\n###### Parameters\n\n*   `type` (`string`)\n    — node type\n*   `props` (`Record<string, unknown>`)\n    — fields assigned to node\n*   `children` ([`Array<Node>`][node])\n    — children of node\n*   `value` (`*`)\n    — value of `node` (cast to string)\n\n###### Returns\n\nBuilt node ([`Node`][node]).\n\n### `ChildrenOrValue`\n\nList to use as `children` or value to use as `value` (TypeScript type).\n\n###### Type\n\n```ts\ntype ChildrenOrValue = Array<Node> | string\n```\n\n### `Props`\n\nOther fields to add to the node (TypeScript type).\n\n###### Type\n\n```ts\nexport type Props = Record<string, unknown>\n```\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports the additional types [`ChildrenOrValue`][childrenorvalue] and\n[`Props`][props].\n\n## Compatibility\n\nProjects maintained by the unified collective are compatible with maintained\nversions of Node.js.\n\nWhen we cut a new major release, we drop support for unmaintained versions of\nNode.\nThis means we try to keep the current release line, `unist-builder@^4`,\ncompatible with Node.js 16.\n\n## Related\n\n*   [`hastscript`](https://github.com/syntax-tree/hastscript)\n    — create [hast][] trees\n*   [`xastscript`](https://github.com/syntax-tree/xastscript)\n    — create [xast][] trees\n\n## Contribute\n\nSee [`contributing.md`][contributing] in [`syntax-tree/.github`][health] for\nways to get started.\nSee [`support.md`][support] for ways to get help.\n\nThis project has a [code of conduct][coc].\nBy interacting with this repository, organization, or community you agree to\nabide by its terms.\n\n## License\n\n[MIT][license] © Eugene Sharygin\n\n<!-- Definitions -->\n\n[build-badge]: https://github.com/syntax-tree/unist-builder/workflows/main/badge.svg\n\n[build]: https://github.com/syntax-tree/unist-builder/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/unist-builder.svg\n\n[coverage]: https://codecov.io/github/syntax-tree/unist-builder\n\n[downloads-badge]: https://img.shields.io/npm/dm/unist-builder.svg\n\n[downloads]: https://www.npmjs.com/package/unist-builder\n\n[size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=unist-builder\n\n[size]: https://bundlejs.com/?q=unist-builder\n\n[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg\n\n[backers-badge]: https://opencollective.com/unified/backers/badge.svg\n\n[collective]: https://opencollective.com/unified\n\n[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg\n\n[chat]: https://github.com/syntax-tree/unist/discussions\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[esmsh]: https://esm.sh\n\n[typescript]: https://www.typescriptlang.org\n\n[license]: license\n\n[health]: https://github.com/syntax-tree/.github\n\n[contributing]: https://github.com/syntax-tree/.github/blob/main/contributing.md\n\n[support]: https://github.com/syntax-tree/.github/blob/main/support.md\n\n[coc]: https://github.com/syntax-tree/.github/blob/main/code-of-conduct.md\n\n[unist]: https://github.com/syntax-tree/unist\n\n[node]: https://github.com/syntax-tree/unist#node\n\n[parent]: https://github.com/syntax-tree/unist#parent\n\n[literal]: https://github.com/syntax-tree/unist#literal\n\n[hast]: https://github.com/syntax-tree/hast\n\n[xast]: https://github.com/syntax-tree/xast\n\n[hastscript]: https://github.com/syntax-tree/hastscript\n\n[xastscript]: https://github.com/syntax-tree/xastscript\n\n[u]: #utype-props-childrenvalue\n\n[props]: #props\n\n[childrenorvalue]: #childrenorvalue\n","_attachments":{},"homepage":"https://github.com/syntax-tree/unist-builder#readme","bugs":{"url":"https://github.com/syntax-tree/unist-builder/issues"},"license":"MIT"}