Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@enkidevs/curriculum-helpers

Package Overview
Dependencies
Maintainers
9
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@enkidevs/curriculum-helpers - npm Package Compare versions

Comparing version 1.0.4 to 1.1.0

7

index.js

@@ -1,7 +0,2 @@

const contentTypes = {
MARKDOWN: 'markdown',
INSIGHT: 'insight',
EXERCISE: 'exercise',
QUESTION: 'question'
}
const contentTypes = require('./content-types')

@@ -8,0 +3,0 @@ module.exports = {

13

package.json
{
"name": "@enkidevs/curriculum-helpers",
"version": "1.0.4",
"version": "1.1.0",
"description": "",
"main": "index.js",
"scripts": {},
"scripts": {
"test": "jest --notify"
},
"author": "Nemanja Stojanovic <nemanjacoder@gmail.com>",

@@ -23,2 +25,9 @@ "repository": {

"homepage": "https://github.com/enkidevs/curriculum-processors#readme",
"dependencies": {
"unist-util-assert": "^1.0.1",
"unist-util-map": "^1.0.3"
},
"devDependencies": {
"jest": "^22.4.2"
},
"jest": {

@@ -25,0 +34,0 @@ "testRegex": "/.*__tests__/.*\\.test.js$"

@@ -5,2 +5,54 @@ # Enki Curriculum Compiler String

See [Enki curriculum processors](https://github.com/enkidevs/curriculum-processors) for more details.
See [Enki curriculum processors](https://github.com/enkidevs/curriculum-processors) for more details.
```js
const { contentTypes, compactAst } = require("@enkidevs/curriculum-helpers")
const { getParser } = require("@enkidevs/curriculum-parser")
console.log(
JSON.stringify(
compactAst(
getParser(contentTypes.INSIGHT).parseSync(`---
author: enki
---
# This is an \`example\`
`)
),
null,
2
)
)
```
Logs
```json
{
"type": "root",
"children": [
{
"type": "yaml",
"value": "author: enki",
"data": {
"parsedValue": {
"author": "enki"
}
}
},
{
"type": "headline",
"children": [
{
"type": "text",
"value": "This is an "
},
{
"type": "inlineCode",
"value": "example"
}
]
}
]
}
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc