markdown-extensions
Advanced tools
Comparing version 1.1.1 to 2.0.0
16
index.js
@@ -1,2 +0,14 @@ | ||
'use strict'; | ||
module.exports = require('./markdown-extensions.json'); | ||
// TODO: Load the JSON file when Node.js supports that. | ||
const markdownExtension = [ | ||
'md', | ||
'markdown', | ||
'mdown', | ||
'mkdn', | ||
'mkd', | ||
'mdwn', | ||
'mkdown', | ||
'ron', | ||
]; | ||
export default markdownExtension; |
{ | ||
"name": "markdown-extensions", | ||
"version": "1.1.1", | ||
"description": "List of Markdown file extensions", | ||
"license": "MIT", | ||
"repository": "sindresorhus/markdown-extensions", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=0.10.0" | ||
}, | ||
"scripts": { | ||
"test": "ava" | ||
}, | ||
"files": [ | ||
"index.js", | ||
"markdown-extensions.json" | ||
], | ||
"keywords": [ | ||
"markdown", | ||
"md", | ||
"ext", | ||
"extensions", | ||
"extension", | ||
"file", | ||
"json", | ||
"list", | ||
"array" | ||
], | ||
"devDependencies": { | ||
"ava": "*" | ||
} | ||
"name": "markdown-extensions", | ||
"version": "2.0.0", | ||
"description": "List of Markdown file extensions", | ||
"license": "MIT", | ||
"repository": "sindresorhus/markdown-extensions", | ||
"funding": "https://github.com/sponsors/sindresorhus", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "https://sindresorhus.com" | ||
}, | ||
"type": "module", | ||
"exports": { | ||
"types": "./index.d.ts", | ||
"default": "./index.js" | ||
}, | ||
"engines": { | ||
"node": ">=16" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava && tsd" | ||
}, | ||
"files": [ | ||
"index.js", | ||
"index.d.ts", | ||
"markdown-extensions.json" | ||
], | ||
"keywords": [ | ||
"markdown", | ||
"md", | ||
"extensions", | ||
"extension", | ||
"file", | ||
"json", | ||
"list", | ||
"array" | ||
], | ||
"devDependencies": { | ||
"ava": "^5.3.1", | ||
"tsd": "^0.28.1", | ||
"xo": "^0.55.0" | ||
} | ||
} |
@@ -1,27 +0,20 @@ | ||
# markdown-extensions [![Build Status](https://travis-ci.org/sindresorhus/markdown-extensions.svg?branch=master)](https://travis-ci.org/sindresorhus/markdown-extensions) | ||
# markdown-extensions | ||
> List of Markdown file extensions | ||
The list is just a [JSON file](markdown-extensions.json) and can be used wherever. | ||
The list is just a [JSON file](markdown-extensions.json) and can be used anywhere. | ||
## Install | ||
```sh | ||
npm install markdown-extensions | ||
``` | ||
$ npm install --save markdown-extensions | ||
``` | ||
## Usage | ||
```js | ||
var markdownExtensions = require('markdown-extensions'); | ||
import markdownExtensions from 'markdown-extensions'; | ||
console.log(markdownExtensions); | ||
//=> ['md', ...] | ||
//=> ['md', …] | ||
``` | ||
## License | ||
MIT © [Sindre Sorhus](http://sindresorhus.com) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2823
6
42
Yes
3
21