@1chi/fml.js 中文文档教程
fml.js
https://fmylife.com 的 API 包装器
Features
- Actually maintained
- Uses async/await
- Has support for ESM and CJS
Install
npm i @1chi/fml.js # NPM
yarn add @1chi/fml.js # Yarn
pnpm add @1chi/fml.js # PNPM
Usage
import fml from '@1chi/fml.js'; // import syntax
const fml = require('@1chi/fml.js').default; // require()
// Async/Await
async () => {
const quote = await fml();
console.log(quote);
};
// .then()
fml().then((quote) => console.log(quote));
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
fml.js © Yoshida Tomio,在 Apache-2.0 许可证。
由 1chiSensei 创作和维护。
GitHub @1chiSensei 不和谐 https://discord.gg/zGvtAnGhdP
fml.js
API Wrapper for https://fmylife.com
Features
- Actually maintained
- Uses async/await
- Has support for ESM and CJS
Install
npm i @1chi/fml.js # NPM
yarn add @1chi/fml.js # Yarn
pnpm add @1chi/fml.js # PNPM
Usage
import fml from '@1chi/fml.js'; // import syntax
const fml = require('@1chi/fml.js').default; // require()
// Async/Await
async () => {
const quote = await fml();
console.log(quote);
};
// .then()
fml().then((quote) => console.log(quote));
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
fml.js © Yoshida Tomio, Released under the Apache-2.0 License.
Authored and maintained by 1chiSensei.
GitHub @1chiSensei Discord https://discord.gg/zGvtAnGhdP